public class State extends TransitionalState
documentOrderComparator, reverseDocumentOrderComparator| Constructor and Description |
|---|
State()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(EnterableState es)
Adds an EnterableState (State, Final or Parallel) child
|
String |
getFirst()
Get the initial state's ID.
|
Initial |
getInitial()
Get the initial state.
|
boolean |
isAtomicState()
Check whether this is an atomic state.
|
boolean |
isComposite()
Check whether this is a composite state (UML terminology).
|
boolean |
isRegion()
Checks whether it is a region state (directly nested to parallel - UML
terminology).
|
boolean |
isSimple()
Check whether this is a simple (leaf) state (UML terminology).
|
void |
setFirst(String target)
Set the initial state by its ID string.
|
void |
setInitial(Initial target)
Set the initial state.
|
addHistory, addInvoke, addTransition, getAncestor, getChildren, getDatamodel, getHistory, getInvokes, getParent, getTransitionsList, getTransitionsList, hasHistory, setDatamodel, setParent, updateDescendantsAncestorsaddOnEntry, addOnExit, getOnEntries, getOnExits, getOrder, setOrderequals, getId, getNumberOfAncestors, getObservableId, hashCode, isDescendantOf, setId, setObservableId, setParentpublic State()
public final Initial getInitial()
public final void setInitial(Initial target)
target - The target to set.public final String getFirst()
public final void setFirst(String target)
target - The initial target's ID to set.public final boolean isAtomicState()
An atomic state is a state of type Final or of type State without children,
isAtomicState in class EnterableStatepublic final boolean isSimple()
public final boolean isComposite()
public final boolean isRegion()
Parallelpublic final void addChild(EnterableState es)
addChild in class TransitionalStatees - the child to addCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.