FSMBuilder

class FSMBuilder<T : State>(statesManager: StatesManager<T>, fsmBuilder: (statesManager: StatesManager<T>, states: List<CheckableHandlerHolder<T, T>>) -> StatesMachine<T>, defaultStateHandler: StatesHandler<T, T>?)

Functions

add
Link copied to clipboard
common
fun add(handler: CheckableHandlerHolder<T, T>)
fun <I : T> add(filter: suspend (state: State) -> Boolean, handler: StatesHandler<I, T>)
fun <I : T> add(kClass: KClass<I>, handler: StatesHandler<I, T>)
addStrict
Link copied to clipboard
common
fun <I : T> addStrict(kClass: KClass<I>, handler: StatesHandler<I, T>)
build
Link copied to clipboard
common
fun build(): StatesMachine<T>
doWhen
Link copied to clipboard
common
inline fun <I : T> doWhen(noinline filter: suspend (state: State) -> Boolean, handler: StatesHandler<I, T>)
onStateOrSubstate
Link copied to clipboard
common
inline fun <I : T> onStateOrSubstate(handler: StatesHandler<I, T>)
strictlyOn
Link copied to clipboard
common
inline fun <I : T> strictlyOn(handler: StatesHandler<I, T>)

Properties

defaultStateHandler
Link copied to clipboard
common
var defaultStateHandler: StatesHandler<T, T>?
fsmBuilder
Link copied to clipboard
common
val fsmBuilder: (statesManager: StatesManager<T>, states: List<CheckableHandlerHolder<T, T>>) -> StatesMachine<T>
statesManager
Link copied to clipboard
common
var statesManager: StatesManager<T>