SamAction class
The Action Part of the Complex.
This contains the SamAction.fnMap table that maps the possible actions or signals to the function that handles them.
The key to each SamAction.fnMap is a SamModel._enums
entry.
In addition the SamAction.fnMap table is used to map the SamState nap option to the processing method.
Constructors
- SamAction(SamFactory sf)
- Construct SamAction, add SAMCAS internal actions.
Properties
-
fnMap
↔ Map<
String, ActionFunc> -
the function mapping table.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- sf ↔ SamFactory
-
read / write
Methods
-
acceptSignals(
List enums) → void - Add a list of signals that are accepted. [...]
-
addAction(
Object smAction, ActionFunc func) → SamAction - Add an action mapping it from the action code to the handler. [...]
-
applyAction(
SamModel sm, SamReq req) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
saChange(
SamModel sm, SamReq req) → void -
The standard change handler to change a
sym
value in the SamHot table. [...] -
saCheck(
SamModel sm, SamReq req) → void -
The standard check handler to change a
sym
value in the SamHot table. [...] -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited