Dsl State Map Event Handler
Functions
Link copied to clipboard
fun automaticPop(targetMap: String, targetState: S, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?)
Link copied to clipboard
fun automaticPush(targetMap: String, targetState: S, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?)
Link copied to clipboard
Defines a transition where an on causes an action but doesn't change the state.
fun onEvent(event: EventState<E, S>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a transition when the state is the currentState and the on is received. The state is changed to the targetState.
fun onEvent(event: E, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a guarded transition where an on causes an action but doesn't change the state and will only be used if the guard expression is met. This will be an internal transition with no change in state.
fun onEvent(event: EventState<E, S>, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a guarded transition. Where the transition will only be used if the guarded expression is met
Link copied to clipboard
fun onEventPop(event: Pair<E, S>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
fun onEventPop(event: E, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
fun onEventPop(event: Pair<E, S>, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
fun onEventPop(event: E, targetMap: String, targetState: S, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
fun onEventPop(event: E, targetMap: String, targetState: S, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Link copied to clipboard
fun onEventPush(event: E, targetMap: String, targetState: S, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a push transition on event for a targetMap and targetState.
fun onEventPush(event: E, targetMap: String, targetState: S, guard: StateGuard<C, A>, action: SyncStateAction<C, A, R>?): DslStateMapEventHandler<S, E, C, A, R>
Defines a push transition on event for a targetMap and targetState when the guard evaluates to true