public abstract class NodeBase extends Object
ExplicitNode) or be generated control nodes
(for example Fork).
These nodes should not be used directly by the end user.
| Modifier | Constructor and Description |
|---|---|
protected |
NodeBase(String name)
Creates a new
NodeBase object with the given name. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addChild(NodeBase child)
Adds a child to this
NodeBase object. |
abstract void |
addParent(NodeBase parent)
Adds the provided node as a parent of this
NodeBase object. |
abstract void |
addParentDefaultConditional(Decision parent)
Adds the provided node as the default conditional parent of this
NodeBase object. |
abstract void |
addParentWithCondition(Decision parent,
Condition condition)
Adds the provided node as a conditional parent of this
NodeBase object. |
abstract void |
clearParents()
Removes all parents (whether or not conditional) of this
NodeBase object. |
abstract List<NodeBase> |
getChildren()
Returns all the children (whether conditional or not) of this
NodeBase object. |
String |
getName()
Returns the name of this
NodeBase object. |
protected abstract void |
removeChild(NodeBase child)
Removes the specified child from this
NodeBase object. |
abstract void |
removeParent(NodeBase parent)
Removes a parent (whether or not conditional).
|
public String getName()
NodeBase object.NodeBase object.public abstract void addParent(NodeBase parent)
NodeBase object.parent - The new parent of this NodeBase object.public abstract void addParentWithCondition(Decision parent, Condition condition)
NodeBase object.parent - The new conditional parent of this NodeBase object.condition - The condition which must be true in addition the parent completing successfully for this node
to be executed.public abstract void addParentDefaultConditional(Decision parent)
NodeBase object.parent - The new conditional parent of this NodeBase object.public abstract void removeParent(NodeBase parent)
parent - The parent to remove.IllegalStateException - if parent is not the parent of this node.public abstract void clearParents()
NodeBase object.public abstract List<NodeBase> getChildren()
NodeBase object.NodeBase object.protected abstract void addChild(NodeBase child)
NodeBase object. This method should only be used in the implementation of the
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.child - The node to be added as the child of this NodeBase.protected abstract void removeChild(NodeBase child)
NodeBase object. This method should only be used in the implementation of the
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.child - The node to be removed as the child of this NodeBase.Copyright © 2021 Apache Software Foundation. All rights reserved.