public interface Block extends Node
Modifier and Type | Interface and Description |
---|---|
static interface |
Block.And
Denotes an And block
|
static interface |
Block.Def
Denotes an deferred choice block
|
static interface |
Block.DefLoop
Denotes an deferred choice loop block
|
static interface |
Block.Or
Denotes an Or block
|
static interface |
Block.PlaceHolder
Denotes an PlaceHolder block
|
static interface |
Block.Seq
Denotes a sequence block
|
static interface |
Block.Xor
Denotes an Xor block
|
static interface |
Block.XorLoop
Denotes a Xor Loop block
|
Modifier and Type | Method and Description |
---|---|
Edge |
addChild(Node child)
adds a child as the new rightmost child of the node
|
Edge |
addChild(Node child,
Expression expression)
adds a child as the new rightmost child of the node
|
Edge |
addChildAt(Node child,
Expression expression,
int index)
adds a child as a new child of the node at the given index.
|
Edge |
addChildAt(Node child,
int index)
adds a child as a new child of the node at the given index.
|
void |
addOutgoingEdge(Edge edge)
Adds an outgoing edge to the node
|
void |
addOutgoingEdgeAt(Edge edge,
int index)
Adds an outgoing edge to the node
|
boolean |
expressionsOfOutgoingEdgesMatter()
returns true if and only if the expressions on outgoing edges matter.
|
java.util.List<Node> |
getChildren()
returns an ordered list of nodes that are the children of this node in
the tree
changes to the collection are NOT reflected in the tree
|
java.util.List<Edge> |
getOutgoingEdges()
returns an immutable (nonempty) list outgoing edges.
|
boolean |
isChangeable()
returns true if and only this block is changeable (note it is false by definition for events)
|
java.util.Iterator<Node> |
iterator()
returns an iterator over the children of a block.
|
int |
numChildren()
returns the number of children.
|
boolean |
orderingOfChildernMatters()
returns true if and only if the ordering of the children as reflected by
the various methods and iterators matter.
|
void |
removeOutgoingEdge(Edge edge)
Removes and outgoing edge from the node
|
void |
setChangeable(boolean changeable)
sets this block to be (non-)changeable
|
Edge |
swapChildAt(Node child,
Expression expression,
int index)
removes the child at the given index and adds a new one in its place.
|
Edge |
swapChildAt(Node child,
int index)
removes the child at the given index and adds a new one in its place.
|
addIncomingEdge, addParent, addParent, addParent, addReadVariable, addRemovableReadVariable, addRemovableWriteVariable, addWriteVariable, getIncomingEdges, getParents, getProcessTree, getReadVariables, getReadVariablesRecursive, getRemovableReadVariables, getRemovableWrittenVariables, getWrittenVariables, getWrittenVariablesRecursive, isLeaf, isRoot, numParents, removeIncomingEdge, removeReadVariable, removeRemovableReadVariable, removeRemovableWriteVariable, removeWriteVariable, setProcessTree, toStringShort
getDependentProperties, getDependentProperty, getDependentProperty, getID, getIndependentProperties, getIndependentProperty, getIndependentProperty, getName, removeDependentProperty, removeDependentProperty, removeIndependentProperty, removeIndependentProperty, setDependentProperty, setDependentProperty, setIndependentProperty, setIndependentProperty, setName
java.util.List<Edge> getOutgoingEdges()
void addOutgoingEdge(Edge edge)
edge
- void removeOutgoingEdge(Edge edge)
edge
- void addOutgoingEdgeAt(Edge edge, int index)
edge
- Edge addChild(Node child, Expression expression)
child
- Edge addChild(Node child)
child
- Edge addChildAt(Node child, Expression expression, int index)
child
- Edge addChildAt(Node child, int index)
child
- Edge swapChildAt(Node child, Expression expression, int index)
child
- Edge swapChildAt(Node child, int index)
child
- java.util.List<Node> getChildren()
java.util.Iterator<Node> iterator()
int numChildren()
boolean orderingOfChildernMatters()
boolean expressionsOfOutgoingEdgesMatter()
boolean isChangeable()
void setChangeable(boolean changeable)
changeable
-