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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> 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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions,
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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions,
boolean initial,
Action<S,E> initialAction)
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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> |
getEntryActions()
Gets the entry actions.
|
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> |
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.
|
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> |
getStateActions()
Gets the state actions.
|
StateMachine<S,E> |
getSubmachine()
Gets the submachine.
|
StateMachineFactory<S,E> |
getSubmachineFactory()
Gets the submachine factory.
|
java.util.Collection<StateData<S,E>> |
getSubmachineStateData()
Gets the submachine state data.
|
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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions)
Sets the entry actions.
|
void |
setExitActions(java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> 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.
|
void |
setStateActions(java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> stateActions)
Sets the state actions.
|
void |
setSubmachine(StateMachine<S,E> submachine)
Sets the submachine.
|
void |
setSubmachine(StateMachineFactory<S,E> submachineFactory)
Sets the submachine factory.
|
void |
setSubmachineFactory(StateMachineFactory<S,E> submachineFactory)
Sets the submachine factory.
|
void |
setSubmachineStateData(java.util.Collection<StateData<S,E>> submachineStateData)
Sets the submachine state data.
|
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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> 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<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions, boolean initial)
parent
- the parentregion
- the regionstate
- the statedeferred
- the deferredentryActions
- the entry actionsexitActions
- the exit actionsinitial
- the initialpublic StateData(java.lang.Object parent, java.lang.Object region, S state, java.util.Collection<E> deferred, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions, boolean initial, Action<S,E> initialAction)
parent
- the parentregion
- the regionstate
- the statedeferred
- the deferredentryActions
- the entry actionsexitActions
- the exit actionsinitial
- the initialinitialAction
- the initial actionpublic S getState()
public java.util.Collection<StateData<S,E>> getSubmachineStateData()
public void setSubmachineStateData(java.util.Collection<StateData<S,E>> submachineStateData)
submachineStateData
- the submachine state datapublic StateMachine<S,E> getSubmachine()
public void setSubmachine(StateMachine<S,E> submachine)
submachine
- the submachinepublic StateMachineFactory<S,E> getSubmachineFactory()
public void setSubmachineFactory(StateMachineFactory<S,E> submachineFactory)
submachineFactory
- the submachine factorypublic void setSubmachine(StateMachineFactory<S,E> submachineFactory)
submachineFactory
- the submachine factorypublic java.util.Collection<E> getDeferred()
public void setDeferred(java.util.Collection<E> deferred)
deferred
- the new deferredpublic java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> getEntryActions()
public void setEntryActions(java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions)
entryActions
- the entry actionspublic java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> getExitActions()
public void setExitActions(java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions)
exitActions
- the exit actionspublic java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> getStateActions()
public void setStateActions(java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> stateActions)
stateActions
- the state 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