ConstrainedNode
, GeneralTreeComponent
public class ConstrainedLeafNode extends AbstractLeafNode implements ConstrainedNode
ConstrainedNode.HeightAdjustment
Constructor | Description |
---|---|
ConstrainedLeafNode(ParentableConstrainedNode parentNode,
Node peer,
double height,
GeneralConstructionTool tool,
ConstraintModel.GroupManager parentGroup) |
createNewConstrainedLeafCalculator, createNewFreeLeafCalculator, getLabel, getNumberOfPatterns, getPatternInfo
public ConstrainedLeafNode(ParentableConstrainedNode parentNode, Node peer, double height, GeneralConstructionTool tool, ConstraintModel.GroupManager parentGroup)
public void recursivelySetParentPivot(PivotNode parentPivot)
recursivelySetParentPivot
in interface ConstrainedNode
public void setupInternalNodeHeights(ConstraintModel.GroupManager groupConstraints)
setupInternalNodeHeights
in interface ConstrainedNode
public double getMinOriginalDescendentLeafHeight()
getMinOriginalDescendentLeafHeight
in interface ConstrainedNode
public double getMaxOriginalDescendentLeafHeight()
getMaxOriginalDescendentLeafHeight
in interface ConstrainedNode
public ConstrainedNode getLeftChild()
getLeftChild
in interface ConstrainedNode
public ConstrainedNode getRightChild()
getRightChild
in interface ConstrainedNode
public void recursivelyAdjustNodeHeight(ConstrainedNode.HeightAdjustment heightDelta)
recursivelyAdjustNodeHeight
in interface ConstrainedNode
public java.lang.String toStringHeights()
toStringHeights
in interface ConstrainedNode
public java.lang.String toStringLengths(double parentHeight)
toStringLengths
in interface ConstrainedNode
public double getMinimumDirectChildDistance()
getMinimumDirectChildDistance
in interface ConstrainedNode
public Node buildDescendentPALNodeBase()
ConstrainedNode
buildDescendentPALNodeBase
in interface ConstrainedNode
public final Node buildDescendentPALNodeES(ConstraintModel.GroupManager groupManager)
ConstrainedNode
buildDescendentPALNodeES
in interface ConstrainedNode
groupManager
- The constraints object to do the conversion withpublic final double getMinimumLeafChildSeperation(double parentHeight)
getMinimumLeafChildSeperation
in interface ConstrainedNode
public void rebuildDescendentPattern(GeneralConstructionTool tool)
public PatternInfo getDescendentPatternInfo(GeneralConstructionTool tool)
getDescendentPatternInfo
in interface ConstrainedNode
public void getSubTreeComponents(java.util.ArrayList store, java.lang.Class componentType)
getSubTreeComponents
in interface ConstrainedNode
public void getNonSubTreeComponents(java.util.ArrayList store, java.lang.Class componentType)
getNonSubTreeComponents
in interface ConstrainedNode
public void getAllComponents(java.util.ArrayList store, java.lang.Class componentType)
getAllComponents
in interface GeneralTreeComponent
public final double getNodeHeight()
getNodeHeight
in interface ConstrainedNode
public double getMinimumChildSeperation(double currentSeperation)
getMinimumChildSeperation
in interface ConstrainedNode
public void obtainLeafInformation(HeightInformationUser user)
ConstrainedNode
obtainLeafInformation
in interface ConstrainedNode
user
- An object that uses the height informationpublic ConditionalProbabilityStore getDescendentExtendedConditionals(double extensionHeight, GeneralConstructionTool tool, boolean allowCaching)
getDescendentExtendedConditionals
in interface ConstrainedNode
public ConditionalProbabilityStore getDescendentExtendedConditionalsWithAdjustedInternalHeights(double extensionHeight, GeneralConstructionTool tool, ConstrainedNode.HeightAdjustment internalNodeHeightAdjuster, boolean allowCaching)
getDescendentExtendedConditionalsWithAdjustedInternalHeights
in interface ConstrainedNode
public ConditionalProbabilityStore getDescendentFlatConditionals(GeneralConstructionTool tool, boolean allowCaching)
getDescendentFlatConditionals
in interface ConstrainedNode
public void testLikelihood(GeneralConstructionTool tool)
testLikelihood
in interface ConstrainedNode
public java.lang.String toString(FreeBranch caller)