SamHot class
Sym to value mapping table within SamModel
All fetching and setting of the symbolic values use this class so that the fetching and setting can be easily tracked so that dependencies can be readily determined.
Although the present examples make no use of it, computed values can be simulated
by creating a target value that is a function of one or more sym
s in the SamHot table.
SAMCAS will automatically track the dependent variables used in computing target value.
When the target value is rendered it should be inside a SamModel.watch scope so that it is
refreshed when the dependent variables change in value.
Constructors
- SamHot()
Properties
- 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
Methods
-
dump(
) → String - list all values for debugging
-
get(
String sym) → Object -
return the SamHot value for key
sym
. -
has(
String sym) → bool -
return true if SamHot contains a key for
sym
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
set(
String sym, Object obj) → void -
set the SamHot key
sym
toobj
value. -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited