StateMachine

public interface interface StateMachine<State, Event>

Common interface for all state machine implementations.

Methods

getState

public Signal<State> getState()

Returns a signal for observing the state of the state mashing.

ReturnValue

Name Description
Signal<State>

signal of with the current state.

onStateEvent

public void onStateEvent(Event state)

Call to react to events emitted.

Parameters

Name Description
Event state

the state emitted.

ReturnValue

Name Description
void

destroy

public void destroy()

Releases all allocated resources.

ReturnValue

Name Description
void