public class SCState extends java.lang.Object implements ISCState
Constructor and Description |
---|
SCState(ISCRegion parentRegion) |
SCState(ISCRegion parentRegion,
SCStateType type) |
SCState(ISCRegion parentRegion,
SCStateType type,
java.lang.String label) |
SCState(ISCRegion parentRegion,
SCStateType type,
java.lang.String label,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
protected static java.lang.String |
genNewId() |
java.util.List<ISCState> |
getChildren()
Get the children of the current node
|
java.lang.String |
getId() |
java.util.Set<ISCTransition> |
getInvolvedTransitions() |
java.lang.String |
getLabel() |
ISCState |
getParent()
Get the parent of the current node
|
ISCRegion |
getParentRegion() |
java.util.Set<ISCState> |
getPostset() |
java.util.Set<ISCState> |
getPreset() |
SCStateType |
getStateType() |
int |
hashCode() |
boolean |
isEndState() |
boolean |
isInitialState() |
boolean |
isPseudoState() |
java.lang.Iterable<ISCState> |
iteratePostOrder()
Generic Tree traversal, depth-first post-order
|
java.lang.Iterable<ISCState> |
iteratePreOrder()
Generic Tree traversal, depth-first pre-order
|
void |
recordTransition(ISCTransition transition) |
java.lang.String |
toString() |
void |
unrecordTransition(ISCTransition transition) |
void |
visitDepthFirstOrder(Action1<ISCState> preOrderOp,
Action1<ISCState> postOrderOp)
Generic Tree traversal, depth-first order
|
public SCState(ISCRegion parentRegion)
public SCState(ISCRegion parentRegion, SCStateType type)
public SCState(ISCRegion parentRegion, SCStateType type, java.lang.String label)
public SCState(ISCRegion parentRegion, SCStateType type, java.lang.String label, java.lang.String id)
protected static java.lang.String genNewId()
public ISCRegion getParentRegion()
getParentRegion
in interface ISCState
public boolean isPseudoState()
isPseudoState
in interface ISCState
public SCStateType getStateType()
getStateType
in interface ISCState
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<ISCState> getPostset()
getPostset
in interface ISCState
public boolean isInitialState()
isInitialState
in interface ISCState
public boolean isEndState()
isEndState
in interface ISCState
public void recordTransition(ISCTransition transition)
recordTransition
in interface ISCState
public void unrecordTransition(ISCTransition transition)
unrecordTransition
in interface ISCState
public java.util.Set<ISCTransition> getInvolvedTransitions()
getInvolvedTransitions
in interface ISCState
public java.lang.Iterable<ISCState> iteratePreOrder()
ITreeNode
iteratePreOrder
in interface ITreeNode<ISCState>
public java.lang.Iterable<ISCState> iteratePostOrder()
ITreeNode
iteratePostOrder
in interface ITreeNode<ISCState>
public ISCState getParent()
ITreeNode
public java.util.List<ISCState> getChildren()
ITreeNode
getChildren
in interface ITreeNode<ISCState>
public void visitDepthFirstOrder(Action1<ISCState> preOrderOp, Action1<ISCState> postOrderOp)
ITreeNode
visitDepthFirstOrder
in interface ITreeNode<ISCState>
preOrderOp
- called before visiting the children of a tree nodepostOrderOp
- called after visiting the children of a tree node