public abstract class TransitionalState extends EnterableState
documentOrderComparator, reverseDocumentOrderComparator| Constructor and Description |
|---|
TransitionalState() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(EnterableState es)
Add a child.
|
void |
addHistory(History h) |
void |
addInvoke(Invoke invoke)
Set the Invoke child.
|
void |
addTransition(Transition transition)
Add a transition to the map of all outgoing transitions for
this state.
|
TransitionalState |
getAncestor(int level)
Get the ancestor of this TransitionalState at specified level
|
List<EnterableState> |
getChildren()
Get the set of child transition targets (may be empty).
|
Datamodel |
getDatamodel()
Get the data model for this transition target.
|
List<History> |
getHistory()
Get the list of history pseudo states for this state.
|
List<Invoke> |
getInvokes()
Get the Invoke children (may be empty).
|
TransitionalState |
getParent()
Get the TransitionalState (State or Parallel) parent.
|
List<Transition> |
getTransitionsList()
Get the outgoing transitions for this state as a java.util.List.
|
List<Transition> |
getTransitionsList(String event)
Get the list of all outgoing transitions from this state, that
will be candidates for being fired on the given event.
|
boolean |
hasHistory()
Does this state have a history pseudo state.
|
void |
setDatamodel(Datamodel datamodel)
Set the data model for this transition target.
|
void |
setParent(TransitionalState parent)
Set the TransitionalState parent
|
protected void |
updateDescendantsAncestors()
Update TransitionTarget descendants their ancestors
|
addOnEntry, addOnExit, getOnEntries, getOnExits, getOrder, isAtomicState, setOrderequals, getId, getNumberOfAncestors, getObservableId, hashCode, isDescendantOf, setId, setObservableId, setParentpublic TransitionalState()
protected void updateDescendantsAncestors()
updateDescendantsAncestors in class TransitionTargetpublic TransitionalState getParent()
getParent in class TransitionTargetpublic final void setParent(TransitionalState parent)
parent - The parent to set.public TransitionalState getAncestor(int level)
getAncestor in class TransitionTargetlevel - the level of the ancestor to return, zero being toppublic final List<Transition> getTransitionsList(String event)
event - The eventpublic final void addTransition(Transition transition)
transition - The transitions to set.public final List<Transition> getTransitionsList()
public final Datamodel getDatamodel()
public final void setDatamodel(Datamodel datamodel)
datamodel - The Datamodel to set.public final void addHistory(History h)
h - History pseudo statepublic final boolean hasHistory()
public final List<History> getHistory()
hasHistory()public final List<Invoke> getInvokes()
public final void addInvoke(Invoke invoke)
invoke - The invoke to set.public final List<EnterableState> getChildren()
protected void addChild(EnterableState es)
es - A child enterable state.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.