| Modifier and Type | Method and Description |
|---|---|
Optional<Transition<? extends Object,S,C,D>> |
accept(Object event,
C ctx,
D data)
See if this
State would accept the given event. |
List<S> |
getConnectedNodes()
Retrieve a list of all other states this state is connected to.
|
Optional<BiConsumer<C,D>> |
getEnterAction() |
Optional<BiConsumer<C,D>> |
getExitAction() |
S |
getState()
Retrieve the enum value of the state.
|
boolean |
isFinal()
Check whether or not this state is final.
|
boolean |
isInital()
Check whether or not this state is initial.
|
boolean |
isTransient()
Check whether or not this state is a transient state.
|
S getState()
boolean isInital()
boolean isFinal()
boolean isTransient()
List<S> getConnectedNodes()
Optional<Transition<? extends Object,S,C,D>> accept(Object event, C ctx, D data)
State would accept the given event.event - the event to see if it is accepted by this state or not.State accepts the event, then an the Transition
that ultimatelely was the one accepting the event will be returned. If not, an empty
Optional will be returned.Optional<BiConsumer<C,D>> getEnterAction()
Optional<BiConsumer<C,D>> getExitAction()
Copyright © 2019. All rights reserved.