S
- the type of stateE
- the type of eventpublic class StateData<S,E>
extends java.lang.Object
StateData
is a data representation of a State
used as an
abstraction between a StateMachineFactory
and a state machine
configuration.Constructor and Description |
---|
StateData(java.lang.Object parent,
java.lang.Object region,
S state,
boolean initial)
Instantiates a new state data.
|
StateData(java.lang.Object parent,
java.lang.Object region,
S state,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions)
Instantiates a new state data.
|
StateData(java.lang.Object parent,
java.lang.Object region,
S state,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions,
boolean initial)
Instantiates a new state data.
|
StateData(S state)
Instantiates a new state data.
|
StateData(S state,
boolean initial)
Instantiates a new state data.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<E> |
getDeferred()
Gets the deferred.
|
java.util.Collection<? extends Action<S,E>> |
getEntryActions()
Gets the entry actions.
|
java.util.Collection<? extends Action<S,E>> |
getExitActions()
Gets the exit actions.
|
Action<S,E> |
getInitialAction() |
java.lang.Object |
getParent()
Gets the parent.
|
PseudoStateKind |
getPseudoStateKind()
Gets the pseudo state kind.
|
java.lang.Object |
getRegion()
Gets the region.
|
S |
getState()
Gets the state.
|
boolean |
isEnd()
Checks if is end.
|
boolean |
isInitial()
Checks if is initial.
|
void |
setDeferred(java.util.Collection<E> deferred)
Sets the deferred.
|
void |
setEnd(boolean end)
Sets the end.
|
void |
setEntryActions(java.util.Collection<? extends Action<S,E>> entryActions)
Sets the entry actions.
|
void |
setExitActions(java.util.Collection<? extends Action<S,E>> exitActions)
Sets the exit actions.
|
void |
setInitial(boolean initial)
Sets the initial.
|
void |
setInitialAction(Action<S,E> action)
Sets the initial action.
|
void |
setParent(java.lang.Object parent)
Sets the parent.
|
void |
setPseudoStateKind(PseudoStateKind pseudoStateKind)
Sets the pseudo state kind.
|
void |
setRegion(java.lang.Object region)
Sets the region.
|
java.lang.String |
toString() |
public StateData(S state)
state
- the statepublic StateData(S state, boolean initial)
state
- the stateinitial
- the initialpublic StateData(java.lang.Object parent, java.lang.Object region, S state, boolean initial)
parent
- the parentregion
- the regionstate
- the stateinitial
- the initialpublic StateData(java.lang.Object parent, java.lang.Object region, S state, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions)
parent
- the parentregion
- the regionstate
- the statedeferred
- the deferredentryActions
- the entry actionsexitActions
- the exit actionspublic StateData(java.lang.Object parent, java.lang.Object region, S state, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions, boolean initial)
parent
- the parentregion
- the regionstate
- the statedeferred
- the deferredentryActions
- the entry actionsexitActions
- the exit actionsinitial
- the initialpublic S getState()
public java.util.Collection<E> getDeferred()
public void setDeferred(java.util.Collection<E> deferred)
deferred
- the new deferredpublic java.util.Collection<? extends Action<S,E>> getEntryActions()
public void setEntryActions(java.util.Collection<? extends Action<S,E>> entryActions)
entryActions
- the entry actionspublic java.util.Collection<? extends Action<S,E>> getExitActions()
public void setExitActions(java.util.Collection<? extends Action<S,E>> exitActions)
exitActions
- the exit actionspublic java.lang.Object getParent()
public void setParent(java.lang.Object parent)
parent
- the new parentpublic java.lang.Object getRegion()
public void setRegion(java.lang.Object region)
region
- the new regionpublic boolean isInitial()
public void setInitial(boolean initial)
initial
- the new initialpublic void setInitialAction(Action<S,E> action)
action
- the actionpublic boolean isEnd()
public void setEnd(boolean end)
end
- the new endpublic PseudoStateKind getPseudoStateKind()
public void setPseudoStateKind(PseudoStateKind pseudoStateKind)
pseudoStateKind
- the new pseudo state kindpublic java.lang.String toString()
toString
in class java.lang.Object