public class Start extends NodeBase
| Constructor and Description |
|---|
Start(String name)
Create a new start node with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(NodeBase child)
Adds a child to this
NodeBase object. |
void |
addParent(NodeBase parent)
Throws
IllegalStateException as start nodes cannot have parents. |
void |
addParentDefaultConditional(Decision parent)
Throws
IllegalStateException as start nodes cannot have parents. |
void |
addParentWithCondition(Decision parent,
Condition condition)
Throws
IllegalStateException as start nodes cannot have parents. |
void |
clearParents()
Does nothing as start nodes cannot have parents.
|
NodeBase |
getChild()
Returns the child of this
Start object. |
List<NodeBase> |
getChildren()
Returns all the children (whether conditional or not) of this
NodeBase object. |
protected void |
removeChild(NodeBase child)
Removes the specified child from this
NodeBase object. |
void |
removeParent(NodeBase parent)
Throws
IllegalStateException as start nodes cannot have parents. |
public Start(String name)
name - The name of the new start node.public NodeBase getChild()
Start object.NodeBasepublic void addParent(NodeBase parent)
IllegalStateException as start nodes cannot have parents.addParent in class NodeBaseparent - The new parent of this NodeBase object.IllegalStateException - always.public void addParentWithCondition(Decision parent, Condition condition)
IllegalStateException as start nodes cannot have parents.addParentWithCondition in class NodeBaseparent - The new parent of this NodeBase object.condition - The condition which must be true in addition the parent completing successfully for this node
to be executed.IllegalStateException - always.public void addParentDefaultConditional(Decision parent)
IllegalStateException as start nodes cannot have parents.addParentDefaultConditional in class NodeBaseparent - The new parent of this NodeBase object.IllegalStateException - always.public void removeParent(NodeBase parent)
IllegalStateException as start nodes cannot have parents.removeParent in class NodeBaseparent - The new parent of this NodeBase object.IllegalStateException - always.public void clearParents()
clearParents in class NodeBasepublic List<NodeBase> getChildren()
NodeBaseNodeBase object.getChildren in class NodeBaseNodeBase object.protected void addChild(NodeBase child)
NodeBaseNodeBase object. This method should only be used in the implementation of the
NodeBase.addParent(NodeBase) method of a subclass of NodeBase, so that whenever a node is assigned a new
parent, the parent also knows about the child.protected void removeChild(NodeBase child)
NodeBaseNodeBase object. This method should only be used in the implementation of the
NodeBase.removeParent(NodeBase) method of a subclass of NodeBase, so that whenever a child is removed from a
node, the parent also knows about the child having been removed.removeChild in class NodeBasechild - The node to be removed as the child of this NodeBase.Copyright © 2021 Apache Software Foundation. All rights reserved.