edu.indiana.iucbrf.ccbr.conversationblock.selector.flowchart
Class FlowChartNode
java.lang.Object
edu.indiana.iucbrf.ccbr.conversationblock.selector.flowchart.FlowChartNode
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- InstructionFlowChartNode, QuestionFlowChartNode
public abstract class FlowChartNode
- extends java.lang.Object
- implements java.io.Serializable
A FlowChartNode is a single node in a flow chart. It may be a question or an instruction, for example.
- See Also:
- Serialized Form
Field Summary |
protected boolean |
isLeaf
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isLeaf
protected boolean isLeaf
FlowChartNode
protected FlowChartNode()
isLeaf
public boolean isLeaf()
getImmediateNextNode
protected abstract FlowChartNode getImmediateNextNode(Feature answer)
nextNodesIterator
public abstract java.util.Iterator nextNodesIterator()
getFeatureQuestioned
public abstract FeatureKey getFeatureQuestioned()
- Get the key of the feature questioned by this node. May be null, for an InstructionFlowChartNode, for example.
getConversationBlockObject
public abstract ConversationBlock getConversationBlockObject(CCBRDomain domain)
- Get the ConversationBlock object corresponding to this node.
assignChild
public abstract void assignChild(int nextNodeIndex,
FlowChartNode newNode)
- Give this node a child. The nextNodeIndex corresponds to the answer's position in the FSMFeature.