T - state machine typeS - state typeE - event typeC - context typepublic interface TransitionResult<T extends StateMachine<T,S,E,C>,S,E,C>
| Modifier and Type | Method and Description |
|---|---|
List<TransitionResult<T,S,E,C>> |
getAcceptedResults() |
TransitionResult<T,S,E,C> |
getParentResut() |
List<TransitionResult<T,S,E,C>> |
getSubResults() |
ImmutableState<T,S,E,C> |
getTargetState() |
boolean |
isAccepted()
If any transition including all nested transitions is accepted, the parent transition is
accepted accordingly.
|
boolean |
isDeclined()
If all transitions including all nested transitions is declined, the parent transition is
declined accordingly.
|
TransitionResult<T,S,E,C> |
setAccepted(boolean accepted)
Set transition accepted or not.
|
TransitionResult<T,S,E,C> |
setParent(TransitionResult<T,S,E,C> result)
Set parent transition result
|
TransitionResult<T,S,E,C> |
setTargetState(ImmutableState<T,S,E,C> targetState)
Set target state of transition
|
boolean isAccepted()
boolean isDeclined()
TransitionResult<T,S,E,C> setAccepted(boolean accepted)
accepted - ImmutableState<T,S,E,C> getTargetState()
TransitionResult<T,S,E,C> setTargetState(ImmutableState<T,S,E,C> targetState)
targetState - TransitionResult<T,S,E,C> getParentResut()
TransitionResult<T,S,E,C> setParent(TransitionResult<T,S,E,C> result)
result - List<TransitionResult<T,S,E,C>> getSubResults()
Copyright © 2013–2016. All rights reserved.