automatic Push
fun automaticPush(startState: S, targetMap: String, targetState: S, action: SyncStateAction<C, A, R>?)
Creates an automatic push transition when current state is startState for a targetMap and targetState.
Parameters
start State
The transition will apply to the specific state.
target Map
The map after the transition
target State
The state after the transition
action
The optional action will be invoked
fun automaticPush(startState: S, targetMap: String, targetState: S, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?)
Creates an automatic push transition for startState. When the currentState is startState and guard is true the targetMap and targetState will become current after executing the optional action
Parameters
start State
The transition will apply to the specific state.
target Map
The map after the transition
target State
The state after the transition
guard
The expression must be true to trigger the transition
action
The optional action will be invoked