Package pal.treesearch
Class AbstractParentableConstrainedNode
java.lang.Object
pal.treesearch.AbstractParentableConstrainedNode
- All Implemented Interfaces:
ParentableConstrainedNode
- Direct Known Subclasses:
ConstrainedInternalNode,PivotNode
public abstract class AbstractParentableConstrainedNode
extends Object
implements ParentableConstrainedNode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractParentableConstrainedNode(Node peer, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store, GeneralConstraintGroupManager groupManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidadjustNodeHeight(double heightDelta) final Nodefinal NodebuildDescendentPALNodeES(ConstraintModel.GroupManager groupManager) protected final Nodeprotected final Nodefinal voidgetAllComponents(ArrayList store, Class componentType) protected final MolecularClockLikelihoodModel.InternalgetDescendentExtendedConditionals(double extensionHeight, GeneralConstructionTool tool, boolean allowCaching) getDescendentExtendedConditionalsWithAdjustedInternalHeights(double adjustedExtensionHeight, GeneralConstructionTool tool, ConstrainedNode.HeightAdjustment internalNodeHeightAdjuster, boolean allowCaching) getDescendentFlatConditionals(GeneralConstructionTool tool, boolean allowCaching) protected final doublegetDescendentLogLikelihood(GeneralConstructionTool tool, boolean allowCaching) final PatternInfofinal ConstrainedNodeprotected final PatternInfoprotected final ConditionalProbabilityStoregetLeftDescendentExtendedConditionals(double specifiedHeight, GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended left child conditionals to a particular heightprotected final ConditionalProbabilityStoregetLeftDescendentExtendedConditionals(GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended left child conditionals to height of this nodeprotected final doubledoubledoubledoublegetMinimumChildSeperation(double currentSeparation) doubleprotected final doublefinal doublegetMinimumLeafChildSeperation(double parentHeight) doublefinal doubleabstract voidgetNonSubTreeComponents(ArrayList store, Class componentType) voidgetNonSubTreeOfChildComponents(ArrayList store, Class componentType, ConstrainedNode childCaller) final ConstrainedNodeprotected final PatternInfoprotected final ConditionalProbabilityStoregetRightDescendentExtendedConditionals(double specifiedHeight, GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended left child conditionals to a particular heightprotected final ConditionalProbabilityStoregetRightDescendentExtendedConditionals(GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended right child conditionals to height of this nodefinal voidgetSubTreeComponents(ArrayList store, Class componentType) booleanisLeftChild(ConstrainedNode node) Investigate if given node is left node (and not right)voidfinal voidvoidprotected final voidrecursivelySetChildrenParentPivot(PivotNode parentPivot) protected final voidsetNodeHeight(double nodeHeight) final voidsetupInternalNodeHeights(ConstraintModel.GroupManager groupConstraints) final Stringprotected final Stringfinal StringtoStringLengths(double parentHeight) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pal.treesearch.ParentableConstrainedNode
getAscendentExtended, getAscendentFlat, getAscendentPatternInfo
-
Constructor Details
-
AbstractParentableConstrainedNode
protected AbstractParentableConstrainedNode(Node peer, GeneralConstructionTool tool, GeneralConstraintGroupManager.Store store, GeneralConstraintGroupManager groupManager)
-
-
Method Details
-
obtainConstrainedExternalCalculator
-
getMinOriginalDescendentLeafHeight
public double getMinOriginalDescendentLeafHeight() -
getMaxOriginalDescendentLeafHeight
public double getMaxOriginalDescendentLeafHeight() -
getMinimumDirectChildDistance
public double getMinimumDirectChildDistance() -
toStringHeights
-
toStringLengths
-
toStringLengths
-
getNodeHeight
public final double getNodeHeight()- Specified by:
getNodeHeightin interfaceParentableConstrainedNode
-
getMinimumChildSeperation
public double getMinimumChildSeperation() -
getMinimumChildSeperation
public double getMinimumChildSeperation(double currentSeparation) -
getMinimumLeafChildSeperation
protected final double getMinimumLeafChildSeperation() -
getMinimumLeafChildSeperation
public final double getMinimumLeafChildSeperation(double parentHeight) -
setupInternalNodeHeights
-
getDescendentPatternInfo
-
rebuildDescendentPattern
-
getRightChildPatternInfo
-
getLeftChildPatternInfo
-
setNodeHeight
protected final void setNodeHeight(double nodeHeight) -
adjustNodeHeight
protected final void adjustNodeHeight(double heightDelta) -
recursivelyAdjustNodeHeight
-
getLeftChild
-
getRightChild
-
buildLeftDecendentPALNodeBase
-
buildRightDecendentPALNodeBase
-
buildDescendentPALNodeBase
-
buildDescendentPALNodeES
-
recursivelySetChildrenParentPivot
-
getLeftDescendentExtendedConditionals
protected final ConditionalProbabilityStore getLeftDescendentExtendedConditionals(GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended left child conditionals to height of this node- Parameters:
tool- The construction tool- Returns:
- the extended conditionals
-
getLeftDescendentExtendedConditionals
protected final ConditionalProbabilityStore getLeftDescendentExtendedConditionals(double specifiedHeight, GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended left child conditionals to a particular height- Parameters:
specifiedHeight- The desired height of extensiontool- The construction tool- Returns:
- the extended conditionals
-
getRightDescendentExtendedConditionals
protected final ConditionalProbabilityStore getRightDescendentExtendedConditionals(GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended right child conditionals to height of this node- Parameters:
tool- The construction tool- Returns:
- the extended conditionals
-
getRightDescendentExtendedConditionals
protected final ConditionalProbabilityStore getRightDescendentExtendedConditionals(double specifiedHeight, GeneralConstructionTool tool, boolean allowCaching) Obtain conditionals by extended left child conditionals to a particular height- Parameters:
specifiedHeight- The desired height of extensiontool- The construction tool- Returns:
- the extended conditionals
-
getConstrainedInternal
-
getDescendentLogLikelihood
protected final double getDescendentLogLikelihood(GeneralConstructionTool tool, boolean allowCaching) -
getMaxChildHeight
protected final double getMaxChildHeight() -
getDescendentExtendedConditionals
public ConditionalProbabilityStore getDescendentExtendedConditionals(double extensionHeight, GeneralConstructionTool tool, boolean allowCaching) -
getDescendentExtendedConditionalsWithAdjustedInternalHeights
public ConditionalProbabilityStore getDescendentExtendedConditionalsWithAdjustedInternalHeights(double adjustedExtensionHeight, GeneralConstructionTool tool, ConstrainedNode.HeightAdjustment internalNodeHeightAdjuster, boolean allowCaching) -
getDescendentFlatConditionals
public ConditionalProbabilityStore getDescendentFlatConditionals(GeneralConstructionTool tool, boolean allowCaching) -
getSubTreeComponents
-
getAllComponents
-
getNonSubTreeOfChildComponents
public void getNonSubTreeOfChildComponents(ArrayList store, Class componentType, ConstrainedNode childCaller) - Specified by:
getNonSubTreeOfChildComponentsin interfaceParentableConstrainedNode
-
isLeftChild
Investigate if given node is left node (and not right)- Parameters:
node- the node to investigate- Returns:
- true if left, false if right
- Throws:
IllegalArgumentException- if node is neither left nor right
-
obtainLeafInformation
-
getNonSubTreeComponents
-