Package dev. inmo. micro_utils. fsm. common. dsl
Types
FSMBuilder
Link copied to clipboard
class FSMBuilder<T : State>( var statesManager: StatesManager<T> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), val fsmBuilder: (statesManager: StatesManager<T>, states: List<CheckableHandlerHolder<T, T>>) -> StatesMachine<T> = { statesManager, states ->
StatesMachine(
statesManager,
states
)
}, var defaultStateHandler: StatesHandler<T, T>? = StatesHandler { null })
Content copied to clipboard
class FSMBuilder<T : State>( var statesManager: StatesManager<T> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), val fsmBuilder: (statesManager: StatesManager<T>, states: List<CheckableHandlerHolder<T, T>>) -> StatesMachine<T> = { statesManager, states ->
StatesMachine(
statesManager,
states
)
}, var defaultStateHandler: StatesHandler<T, T>? = StatesHandler { null })
Content copied to clipboard
class FSMBuilder<T : State>( var statesManager: StatesManager<T> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), val fsmBuilder: (statesManager: StatesManager<T>, states: List<CheckableHandlerHolder<T, T>>) -> StatesMachine<T> = { statesManager, states ->
StatesMachine(
statesManager,
states
)
}, var defaultStateHandler: StatesHandler<T, T>? = StatesHandler { null })
Content copied to clipboard
Functions
build FSM
Link copied to clipboard
fun <T : State> buildFSM(block: FSMBuilder<T>.() -> Unit): StatesMachine<T>
Content copied to clipboard
fun <T : State> buildFSM(block: FSMBuilder<T>.() -> Unit): StatesMachine<T>
Content copied to clipboard
fun <T : State> buildFSM(block: FSMBuilder<T>.() -> Unit): StatesMachine<T>
Content copied to clipboard