BaseMachine<C extends MachineContext, T extends BaseTransition<C>, S extends BaseState<C, T>> class abstract

Implemented types

Constructors

BaseMachine.new()

Properties

context → C
no setter
currentState ↔ S?
getter/setter pairoverride-getter
defaultState → S?
no setter
delegate MachineDelegate<C, T, S>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addState(S newState) → S?
getState(int index) → S?
getTargetState(T trans) → S?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<bool>
Pause machine, current state not change
override
resume() Future<bool>
Resume machine with current state
override
start() Future<bool>
Change current state to 'default'
override
stop() Future<bool>
Change current state to null
override
tick(DateTime now, Duration elapsed) Future<void>
Drive current thread forward
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited