Class DecisionTreeCondition
- java.lang.Object
-
- com.aquima.interactions.dtree.impl.AbstractNode
-
- com.aquima.interactions.dtree.impl.DecisionTreeCondition
-
- All Implemented Interfaces:
Serializable
public class DecisionTreeCondition extends AbstractNode
Decision tree node representing a condition.- Since:
- 5.0
- Author:
- F. van der Meer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DecisionTreeCondition​(InitializationLookup lookup, IDecisionTree decisionTree, AbstractNode parent, IDecisionTreeNodeDS nodeDS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractNode[]
getChildren()
This method returns an array containing the child nodes.boolean
isCondition()
This method returns a boolean indicating if this node represents a condition node.String
toString()
-
Methods inherited from class com.aquima.interactions.dtree.impl.AbstractNode
getCondition, getQuestionAttribute, getTree, isActionNode, isAssetAction, isAttributeAction, isContainerAction, isSubtreeAction, toAssetAction, toAttributeAction, toContainerAction, toSubtreeAction
-
-
-
-
Constructor Detail
-
DecisionTreeCondition
protected DecisionTreeCondition​(InitializationLookup lookup, IDecisionTree decisionTree, AbstractNode parent, IDecisionTreeNodeDS nodeDS) throws InitializationException
- Throws:
InitializationException
-
-
Method Detail
-
getChildren
public AbstractNode[] getChildren()
Description copied from class:AbstractNode
This method returns an array containing the child nodes.
Note: This method is public to allow test-case access, but should not be used outside the tree engine.
- Specified by:
getChildren
in classAbstractNode
- Returns:
- an array containing the child nodes.
-
isCondition
public boolean isCondition()
Description copied from class:AbstractNode
This method returns a boolean indicating if this node represents a condition node.- Overrides:
isCondition
in classAbstractNode
- Returns:
- a boolean indicating if this node represents a condition node.
-
toString
public String toString()
- Overrides:
toString
in classAbstractNode
-
-