Package pal.treesearch
Class FreeInternalNode
java.lang.Object
pal.treesearch.FreeInternalNode
- All Implemented Interfaces:
FreeNode,GeneralTreeComponent
-
Constructor Summary
ConstructorsConstructorDescriptionFreeInternalNode(Node i, FreeBranch parentFreeBranch, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store) -
Method Summary
Modifier and TypeMethodDescriptionbuildPALNodeBase(double branchLength, FreeBranch caller) buildPALNodeES(double branchLength, FreeBranch caller) extract(FreeBranch caller) Instruct the node to extract itself from the two connections that aren't the caller One of the other two connections will become redunant.voidgetAllComponents(ArrayList store, Class componentType) voidgetAllComponents(ArrayList store, Class componentType, FreeBranch caller) Recurse to all neighbours but callergetExtendedConditionalProbabilities(double distance, FreeBranch callerConnection, UnconstrainedLikelihoodModel.External externalCalculator, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) getExtendedConditionalProbabilities(double distance, FreeBranch callerConnection, GeneralConstructionTool tool) getFlatConditionalProbabilities(FreeBranch callerConnection, UnconstrainedLikelihoodModel.External externalCalculator, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) getFlatConditionalProbabilities(FreeBranch callerConnection, GeneralConstructionTool tool) getLeftBranch(FreeBranch caller) getLeftExtendedConditionalProbabilities(FreeBranch callingConnection, UnconstrainedLikelihoodModel.External external, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) getLeftPatternInfo(GeneralConstructionTool tool, FreeBranch caller) getPatternInfo(GeneralConstructionTool tool, FreeBranch caller) getRightBranch(FreeBranch caller) getRightExtendedConditionalProbabilities(FreeBranch callingConnection, UnconstrainedLikelihoodModel.External external, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) getRightPatternInfo(GeneralConstructionTool tool, FreeBranch caller) booleanhasConnection(FreeBranch c, FreeBranch caller) booleanvoidmark()voidsetConnectingBranches(FreeBranch[] store, int number) voidswapConnection(FreeBranch original, FreeBranch newConnection) Should not do anything but swap branches aroundvoidswapConnection(FreeBranch original, FreeNode nodeToReplace, FreeBranch newConnection) Should preserve tree integrityvoidtestLikelihood(FreeBranch caller, GeneralConstructionTool tool) toString(FreeBranch caller) void
-
Constructor Details
-
FreeInternalNode
public FreeInternalNode(Node i, FreeBranch parentFreeBranch, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store)
-
-
Method Details
-
mark
public void mark() -
undoToMark
public void undoToMark() -
hasDirectConnection
- Specified by:
hasDirectConnectionin interfaceFreeNode
-
hasConnection
- Specified by:
hasConnectionin interfaceFreeNode
-
testLikelihood
- Specified by:
testLikelihoodin interfaceFreeNode
-
setConnectingBranches
- Specified by:
setConnectingBranchesin interfaceFreeNode
-
getLeftBranch
- Specified by:
getLeftBranchin interfaceFreeNode
-
getRightBranch
- Specified by:
getRightBranchin interfaceFreeNode
-
extract
Description copied from interface:FreeNodeInstruct the node to extract itself from the two connections that aren't the caller One of the other two connections will become redunant. -
swapConnection
Description copied from interface:FreeNodeShould preserve tree integrity- Specified by:
swapConnectionin interfaceFreeNode
-
swapConnection
Description copied from interface:FreeNodeShould not do anything but swap branches around- Specified by:
swapConnectionin interfaceFreeNode
-
getPatternInfo
- Specified by:
getPatternInfoin interfaceFreeNode
-
buildPALNodeES
- Specified by:
buildPALNodeESin interfaceFreeNode
-
buildPALNodeBase
- Specified by:
buildPALNodeBasein interfaceFreeNode
-
toString
-
getAllComponents
- Specified by:
getAllComponentsin interfaceGeneralTreeComponent
-
getAllComponents
Description copied from interface:FreeNodeRecurse to all neighbours but caller- Specified by:
getAllComponentsin interfaceFreeNode
-
getLeftExtendedConditionalProbabilities
public ConditionalProbabilityStore getLeftExtendedConditionalProbabilities(FreeBranch callingConnection, UnconstrainedLikelihoodModel.External external, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) -
getRightExtendedConditionalProbabilities
public ConditionalProbabilityStore getRightExtendedConditionalProbabilities(FreeBranch callingConnection, UnconstrainedLikelihoodModel.External external, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) -
getLeftPatternInfo
- Specified by:
getLeftPatternInfoin interfaceFreeNode- Returns:
- Get the pattern info for the relative left (from the caller's perspective), or null if not left pattern info
-
getRightPatternInfo
- Specified by:
getRightPatternInfoin interfaceFreeNode- Returns:
- Get the pattern info for the relative right (from the caller's perspective), or null if not right pattern info
-
getFlatConditionalProbabilities
public ConditionalProbabilityStore getFlatConditionalProbabilities(FreeBranch callerConnection, UnconstrainedLikelihoodModel.External externalCalculator, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) -
getFlatConditionalProbabilities
public ConditionalProbabilityStore getFlatConditionalProbabilities(FreeBranch callerConnection, GeneralConstructionTool tool) - Specified by:
getFlatConditionalProbabilitiesin interfaceFreeNode
-
getExtendedConditionalProbabilities
public ConditionalProbabilityStore getExtendedConditionalProbabilities(double distance, FreeBranch callerConnection, UnconstrainedLikelihoodModel.External externalCalculator, ConditionalProbabilityStore resultStore, GeneralConstructionTool tool) - Specified by:
getExtendedConditionalProbabilitiesin interfaceFreeNode
-
getExtendedConditionalProbabilities
public ConditionalProbabilityStore getExtendedConditionalProbabilities(double distance, FreeBranch callerConnection, GeneralConstructionTool tool) - Specified by:
getExtendedConditionalProbabilitiesin interfaceFreeNode
-