Package dev.inmo.micro_utils.fsm.common

Types

DefaultStatesMachine
Link copied to clipboard
class DefaultStatesMachine(statesManager: StatesManager, handlers: List<StateHandlerHolder<*>>) : StatesMachine

Default realization of StatesMachine. It uses statesManager for incapsulation of States storing and contexts resolving, and uses launchStateHandling for State handling

common
class DefaultStatesMachine(statesManager: StatesManager, handlers: List<StateHandlerHolder<*>>) : StatesMachine

Default realization of StatesMachine. It uses statesManager for incapsulation of States storing and contexts resolving, and uses launchStateHandling for State handling

class DefaultStatesMachine(statesManager: StatesManager, handlers: List<StateHandlerHolder<*>>) : StatesMachine

Default realization of StatesMachine. It uses statesManager for incapsulation of States storing and contexts resolving, and uses launchStateHandling for State handling

State
Link copied to clipboard
interface State
interface State
interface State
StateHandlerHolder
Link copied to clipboard
class StateHandlerHolder<I : State>(inputKlass: KClass<I>, strict: Boolean, delegateTo: StatesHandler<I>) : StatesHandler<State>

Default realization of StatesHandler. It will incapsulate checking of State type in checkHandleable and class casting in handleState

common
class StateHandlerHolder<I : State>(inputKlass: KClass<I>, strict: Boolean, delegateTo: StatesHandler<I>) : StatesHandler<State>

Default realization of StatesHandler. It will incapsulate checking of State type in checkHandleable and class casting in handleState

class StateHandlerHolder<I : State>(inputKlass: KClass<I>, strict: Boolean, delegateTo: StatesHandler<I>) : StatesHandler<State>

Default realization of StatesHandler. It will incapsulate checking of State type in checkHandleable and class casting in handleState

StatesHandler
Link copied to clipboard
fun interface StatesHandler<I : State>
fun interface StatesHandler<I : State>
fun interface StatesHandler<I : State>

Default realization of states handler

StatesMachine
Link copied to clipboard
interface StatesMachine : StatesHandler<State>

Default StatesMachine may startChain and use inside logic for handling States. By default you may use DefaultStatesMachine or build it with dev.inmo.micro_utils.fsm.common.dsl.buildFSM. Implementers MUST NOT start handling until start method will be called

common
interface StatesMachine : StatesHandler<State>

Default StatesMachine may startChain and use inside logic for handling States. By default you may use DefaultStatesMachine or build it with dev.inmo.micro_utils.fsm.common.dsl.buildFSM. Implementers MUST NOT start handling until start method will be called

interface StatesMachine : StatesHandler<State>

Default StatesMachine may startChain and use inside logic for handling States. By default you may use DefaultStatesMachine or build it with dev.inmo.micro_utils.fsm.common.dsl.buildFSM. Implementers MUST NOT start handling until start method will be called

StatesManager
Link copied to clipboard
interface StatesManager
interface StatesManager
interface StatesManager