Package pal.treesearch
Class ConstrainedLeafNode
java.lang.Object
pal.treesearch.AbstractLeafNode
pal.treesearch.ConstrainedLeafNode
- All Implemented Interfaces:
ConstrainedNode,GeneralTreeComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface pal.treesearch.ConstrainedNode
ConstrainedNode.HeightAdjustment -
Constructor Summary
ConstructorsConstructorDescriptionConstrainedLeafNode(ParentableConstrainedNode parentNode, Node peer, double height, GeneralConstructionTool tool, ConstraintModel.GroupManager parentGroup) -
Method Summary
Modifier and TypeMethodDescriptionBuild node model base units (eg years)final NodebuildDescendentPALNodeES(ConstraintModel.GroupManager groupManager) Build node with Expected Substitution UnitsvoidgetAllComponents(ArrayList store, Class componentType) getDescendentExtendedConditionals(double extensionHeight, GeneralConstructionTool tool, boolean allowCaching) getDescendentExtendedConditionalsWithAdjustedInternalHeights(double extensionHeight, GeneralConstructionTool tool, ConstrainedNode.HeightAdjustment internalNodeHeightAdjuster, boolean allowCaching) getDescendentFlatConditionals(GeneralConstructionTool tool, boolean allowCaching) Returns null as we can't have children...doubledoublegetMinimumChildSeperation(double currentSeperation) doublefinal doublegetMinimumLeafChildSeperation(double parentHeight) doublefinal doublevoidgetNonSubTreeComponents(ArrayList store, Class componentType) voidgetSubTreeComponents(ArrayList store, Class componentType) voidObtain information regarding the current state of the leaf heights (called when first constructed).voidvoidvoidrecursivelySetParentPivot(PivotNode parentPivot) voidsetupInternalNodeHeights(ConstraintModel.GroupManager groupConstraints) voidtoString(FreeBranch caller) toStringLengths(double parentHeight) Methods inherited from class pal.treesearch.AbstractLeafNode
createNewConstrainedLeafCalculator, createNewFreeLeafCalculator, getLabel, getNumberOfPatterns, getPatternInfo
-
Constructor Details
-
ConstrainedLeafNode
public ConstrainedLeafNode(ParentableConstrainedNode parentNode, Node peer, double height, GeneralConstructionTool tool, ConstraintModel.GroupManager parentGroup)
-
-
Method Details
-
recursivelySetParentPivot
- Specified by:
recursivelySetParentPivotin interfaceConstrainedNode
-
setupInternalNodeHeights
- Specified by:
setupInternalNodeHeightsin interfaceConstrainedNode
-
getMinOriginalDescendentLeafHeight
public double getMinOriginalDescendentLeafHeight()- Specified by:
getMinOriginalDescendentLeafHeightin interfaceConstrainedNode
-
getMaxOriginalDescendentLeafHeight
public double getMaxOriginalDescendentLeafHeight()- Specified by:
getMaxOriginalDescendentLeafHeightin interfaceConstrainedNode
-
getLeftChild
Returns null as we can't have children...- Specified by:
getLeftChildin interfaceConstrainedNode- Returns:
- null
-
getRightChild
- Specified by:
getRightChildin interfaceConstrainedNode
-
recursivelyAdjustNodeHeight
- Specified by:
recursivelyAdjustNodeHeightin interfaceConstrainedNode
-
toStringHeights
- Specified by:
toStringHeightsin interfaceConstrainedNode
-
toStringLengths
- Specified by:
toStringLengthsin interfaceConstrainedNode
-
getMinimumDirectChildDistance
public double getMinimumDirectChildDistance()- Specified by:
getMinimumDirectChildDistancein interfaceConstrainedNode- Returns:
- the minum distance to a child or zero if no children
-
buildDescendentPALNodeBase
Description copied from interface:ConstrainedNodeBuild node model base units (eg years)- Specified by:
buildDescendentPALNodeBasein interfaceConstrainedNode- Returns:
- A normal PAL node
-
buildDescendentPALNodeES
Description copied from interface:ConstrainedNodeBuild node with Expected Substitution Units- Specified by:
buildDescendentPALNodeESin interfaceConstrainedNode- Parameters:
groupManager- The constraints object to do the conversion with- Returns:
- A normal PAL node
-
getMinimumLeafChildSeperation
public final double getMinimumLeafChildSeperation(double parentHeight) - Specified by:
getMinimumLeafChildSeperationin interfaceConstrainedNode
-
rebuildDescendentPattern
-
getDescendentPatternInfo
- Specified by:
getDescendentPatternInfoin interfaceConstrainedNode
-
getSubTreeComponents
- Specified by:
getSubTreeComponentsin interfaceConstrainedNode
-
getNonSubTreeComponents
- Specified by:
getNonSubTreeComponentsin interfaceConstrainedNode
-
getAllComponents
- Specified by:
getAllComponentsin interfaceGeneralTreeComponent
-
getNodeHeight
public final double getNodeHeight()- Specified by:
getNodeHeightin interfaceConstrainedNode
-
getMinimumChildSeperation
public double getMinimumChildSeperation(double currentSeperation) - Specified by:
getMinimumChildSeperationin interfaceConstrainedNode
-
obtainLeafInformation
Description copied from interface:ConstrainedNodeObtain information regarding the current state of the leaf heights (called when first constructed). The resulting heights will, for exampled, be averaged across components and then used as the starting height values (see setLeafHeights...())- Specified by:
obtainLeafInformationin interfaceConstrainedNode- Parameters:
user- An object that uses the height information
-
getDescendentExtendedConditionals
public ConditionalProbabilityStore getDescendentExtendedConditionals(double extensionHeight, GeneralConstructionTool tool, boolean allowCaching) - Specified by:
getDescendentExtendedConditionalsin interfaceConstrainedNode
-
getDescendentExtendedConditionalsWithAdjustedInternalHeights
public ConditionalProbabilityStore getDescendentExtendedConditionalsWithAdjustedInternalHeights(double extensionHeight, GeneralConstructionTool tool, ConstrainedNode.HeightAdjustment internalNodeHeightAdjuster, boolean allowCaching) - Specified by:
getDescendentExtendedConditionalsWithAdjustedInternalHeightsin interfaceConstrainedNode
-
getDescendentFlatConditionals
public ConditionalProbabilityStore getDescendentFlatConditionals(GeneralConstructionTool tool, boolean allowCaching) - Specified by:
getDescendentFlatConditionalsin interfaceConstrainedNode
-
testLikelihood
- Specified by:
testLikelihoodin interfaceConstrainedNode
-
toString
-