BasicStateMachine
public class BasicStateMachine<T> where T : StateProtocol
Undocumented
-
Undocumented
Declaration
Swift
public init(initialState: T, allowTransitionToInitialState: Bool = true)
-
gets the current state.
Declaration
Swift
public func getState() -> T
-
sets the state to a new value.
Declaration
Swift
public func set(state: T)
-
sets the state machine to the initial value.
Declaration
Swift
public func reset()