DefState class
The DefState defines the properties of a particular state.
It is stored in SamState.ssMap and is readonly once the model is activated.
The universe of states for a SamModel is derived by inspecting the SamModel._enums
variable
during model activation. States with no entry in SamState.ssMap cause the SE.ss_broken state to be entered.
The DefState is said to be entered when the SamModel transitions into this DefState from a different DefState.
Constructors
Properties
- fncNap ↔ Function
-
non-null specifies nap function to execute wnen state entered.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- objSignal ↔ Object
-
signal to emit assuming there is a parent. fails if no parent.
read / write
- objState ↔ Object
-
Enum value of state from companion Enum
read / write
- objWeakSignal ↔ Object
-
signal to emit if there is a parent. ignored if not.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- strAllow ↔ String
-
What actions this state allows.
read / write
- strIgnore ↔ String
-
What actions this state silently ignores.
read / write
- strNap ↔ String
-
The next action process (nap) function to execute when state entered. [...]
read / write
- strNext ↔ String
-
Valid states this state can transition to. Null implies terminal state.
read / write
- strState ↔ String
-
String representation of state. Has ss prefix.
read / write
Methods
-
allow(
Object elst) → DefState - populate the allowable actions this DefState accepts. [...]
-
ignore(
Object elst) → DefState - populate the allowable actions this DefState ignores. [...]
-
makeStrList(
Object elst) → String -
Internal method to convert a list of values from the
companion
SamModel._enums
into a string representation. [...] -
nap(
) → DefState - Indicate this DefState has a nap function. [...]
-
next(
Object elst) → DefState - populate the allowable states this DefState can transition to. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
signal(
Object estr) → DefState - define the signal this DefState emits when it is entered. [...]
-
toString(
) → String -
convenient String representation of DefState for debugging purposes.
override
-
weakSignal(
Object estr) → DefState - define the signal this DefState emits when it is entered and if SamModel has a parent. [...]
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited