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 Node
buildDescendentPALNodeES
(ConstraintModel.GroupManager groupManager) Build node with Expected Substitution Unitsvoid
getAllComponents
(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...double
double
getMinimumChildSeperation
(double currentSeperation) double
final double
getMinimumLeafChildSeperation
(double parentHeight) double
final double
void
getNonSubTreeComponents
(ArrayList store, Class componentType) void
getSubTreeComponents
(ArrayList store, Class componentType) void
Obtain information regarding the current state of the leaf heights (called when first constructed).void
void
void
recursivelySetParentPivot
(PivotNode parentPivot) void
setupInternalNodeHeights
(ConstraintModel.GroupManager groupConstraints) void
toString
(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:
recursivelySetParentPivot
in interfaceConstrainedNode
-
setupInternalNodeHeights
- Specified by:
setupInternalNodeHeights
in interfaceConstrainedNode
-
getMinOriginalDescendentLeafHeight
public double getMinOriginalDescendentLeafHeight()- Specified by:
getMinOriginalDescendentLeafHeight
in interfaceConstrainedNode
-
getMaxOriginalDescendentLeafHeight
public double getMaxOriginalDescendentLeafHeight()- Specified by:
getMaxOriginalDescendentLeafHeight
in interfaceConstrainedNode
-
getLeftChild
Returns null as we can't have children...- Specified by:
getLeftChild
in interfaceConstrainedNode
- Returns:
- null
-
getRightChild
- Specified by:
getRightChild
in interfaceConstrainedNode
-
recursivelyAdjustNodeHeight
- Specified by:
recursivelyAdjustNodeHeight
in interfaceConstrainedNode
-
toStringHeights
- Specified by:
toStringHeights
in interfaceConstrainedNode
-
toStringLengths
- Specified by:
toStringLengths
in interfaceConstrainedNode
-
getMinimumDirectChildDistance
public double getMinimumDirectChildDistance()- Specified by:
getMinimumDirectChildDistance
in interfaceConstrainedNode
- Returns:
- the minum distance to a child or zero if no children
-
buildDescendentPALNodeBase
Description copied from interface:ConstrainedNode
Build node model base units (eg years)- Specified by:
buildDescendentPALNodeBase
in interfaceConstrainedNode
- Returns:
- A normal PAL node
-
buildDescendentPALNodeES
Description copied from interface:ConstrainedNode
Build node with Expected Substitution Units- Specified by:
buildDescendentPALNodeES
in 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:
getMinimumLeafChildSeperation
in interfaceConstrainedNode
-
rebuildDescendentPattern
-
getDescendentPatternInfo
- Specified by:
getDescendentPatternInfo
in interfaceConstrainedNode
-
getSubTreeComponents
- Specified by:
getSubTreeComponents
in interfaceConstrainedNode
-
getNonSubTreeComponents
- Specified by:
getNonSubTreeComponents
in interfaceConstrainedNode
-
getAllComponents
- Specified by:
getAllComponents
in interfaceGeneralTreeComponent
-
getNodeHeight
public final double getNodeHeight()- Specified by:
getNodeHeight
in interfaceConstrainedNode
-
getMinimumChildSeperation
public double getMinimumChildSeperation(double currentSeperation) - Specified by:
getMinimumChildSeperation
in interfaceConstrainedNode
-
obtainLeafInformation
Description copied from interface:ConstrainedNode
Obtain 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:
obtainLeafInformation
in interfaceConstrainedNode
- Parameters:
user
- An object that uses the height information
-
getDescendentExtendedConditionals
public ConditionalProbabilityStore getDescendentExtendedConditionals(double extensionHeight, GeneralConstructionTool tool, boolean allowCaching) - Specified by:
getDescendentExtendedConditionals
in interfaceConstrainedNode
-
getDescendentExtendedConditionalsWithAdjustedInternalHeights
public ConditionalProbabilityStore getDescendentExtendedConditionalsWithAdjustedInternalHeights(double extensionHeight, GeneralConstructionTool tool, ConstrainedNode.HeightAdjustment internalNodeHeightAdjuster, boolean allowCaching) - Specified by:
getDescendentExtendedConditionalsWithAdjustedInternalHeights
in interfaceConstrainedNode
-
getDescendentFlatConditionals
public ConditionalProbabilityStore getDescendentFlatConditionals(GeneralConstructionTool tool, boolean allowCaching) - Specified by:
getDescendentFlatConditionals
in interfaceConstrainedNode
-
testLikelihood
- Specified by:
testLikelihood
in interfaceConstrainedNode
-
toString
-