Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class AsyncGuardedTransition<S, E, C, A, R>(startState: S, event: E?, targetState: S?, targetMap: String?, automatic: Boolean, type: TransitionType, val guard: StateGuard<C, A>, action: AsyncStateAction<C, A, R>?) : SimpleAsyncTransition<S, E, C, A, R>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AsyncStateMapDefinition<S, E, C, A, R>(val name: String?, val validStates: Set<S>, val invariants: Set<Pair<String, Condition<C>>>, val transitionRules: Map<Pair<S, E>, AsyncTransitionRules<S, E, C, A, R>>, val defaultTransitions: Map<E, DefaultAsyncTransition<S, E, C, A, R>>, val entryActions: Map<S, DefaultEntryExitAction<C, S, A>>, val exitActions: Map<S, DefaultEntryExitAction<C, S, A>>, val defaultActions: Map<S, DefaultAsyncStateAction<C, S, E, A, R>>, val automaticTransitions: Map<S, AsyncTransitionRules<S, E, C, A, R>>, val timerDefinitions: Map<S, AsyncTimerDefinition<S, E, C, A, R>>, val globalDefault: DefaultAsyncStateAction<C, S, E, A, R>?, val defaultEntryAction: DefaultEntryExitAction<C, S, A>?, val defaultExitAction: DefaultEntryExitAction<C, S, A>?, val afterStateChangeAction: AsyncStateChangeAction<C, S>?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class AsyncTransition<S, E, C, A, R>(val targetState: S? = null, val targetMap: String? = null, val automatic: Boolean = false, val type: TransitionType = TransitionType.NORMAL, val action: AsyncStateAction<C, A, R>? = null)
Link copied to clipboard
class AsyncTransitionRules<S, E, C, A, R>(val guardedTransitions: MutableList<AsyncGuardedTransition<S, E, C, A, R>> = mutableListOf(), transition: SimpleAsyncTransition<S, E, C, A, R>? = null)
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
inline fun <S, E, C : Any> asyncStateMachine(validStates: Set<S>, validEvents: Set<E>, contextClass: KClass<out C>, handler: AsyncDslStateMachineHandler<S, E, C, Any, Any>.() -> Unit): AsyncDslStateMachineHandler<S, E, C, Any, Any>
Defines the start of a state machine DSL declaration with Any
as the type of arguments and returns types for events/actions
inline fun <S, E, C : Any, A : Any> asyncStateMachine(validStates: Set<S>, validEvents: Set<E>, contextClass: KClass<out C>, argumentClass: KClass<out A>, handler: AsyncDslStateMachineHandler<S, E, C, A, Any>.() -> Unit): AsyncDslStateMachineHandler<S, E, C, A, Any>
Defines the start of a state machine DSL declaration with Any
as the return type
inline fun <S, E, C : Any, A : Any, R : Any> asyncStateMachine(validStates: Set<S>, validEvents: Set<E>, contextClass: KClass<out C>, argumentClass: KClass<out A>, returnClass: KClass<out R>, handler: AsyncDslStateMachineHandler<S, E, C, A, R>.() -> Unit): AsyncDslStateMachineHandler<S, E, C, A, R>
These function are used to create statemachines where the actions are suspend functions.