Creates an instance of SessionModel.
registered attribute names (in declaration order)
"date" of previous change. We start at + 2 because we consider that an initialisation is a modification.
parent models (depending on this)
synchronized processes
id unique from server. It doesn't exist at creation but added after a sync of the server
id of the model
map[ id ] = obj for each objects starting from this recursively
{IFlatModelMap}
send data to server
{string}
may be redefined
{string}
may be redefined. by default, add attributes using keys and values (and remove old unused values) must return true if data is changed
{boolean}
called by set. change_level should not be defined by the user (it permits to != change from child of from this)
{ReturnType
add attribute
add attribute
if this has been modified during the preceding round, f will be called If f is a process: process.onchange will be called each time this (or a child of this) will be modified. process.destructor will be called if this is destroyed. ... can be seen as a bind with an object
{Process}
To be redifined in children if needed
{boolean}
{Model}
Do nothing here, TBD in child if needed. Called in rem_attr if have no more parent.
dimensionnality of the object -> 0 for a scalar, 1 for a vector, ...
{number}
{boolean}
return a copy of data in a "standard" representation (e.g. string, number, objects, ...) users are encouraged to use Models as much as possible (meaning that get should not be called for every manipulation), adding methods for manipulation of data if necessary (e.g. toggle, find, ... in Lst, Str, ...). May be redefined for specific types (e.g. Str, Lst, ...)
{*}
return a string which describes the changes in this and children since date
{string}
return true if this has changed since previous synchronisation due to a direct modification (not from a child one)
{boolean}
return true if this (or a child of this) has changed since the previous synchronisation
{boolean}
change attribute named nname to instanceOfModel (use references for comparison)
{void}
returns true if change is not "cosmetic"
{boolean}
remove attribute named name
modify data, using another values, or Model instances. Should not be redefined (but _set should be) returns true if object os modified
{boolean}
add / mod / rem attr to get the same data than o (assumed to be something like { key: val, ... })
modify state according to str. str can be the result of a previous @get_state
dimension of the object -> [] for a scalar, [ length ] for a vector, [ nb_row, nb_cols ] for a matrix...
{(number | number[])}
recommanded to use Process | BindProcess, using Function can lead to error
Generated using TypeDoc