new DataTree()

Description
Class that contains all the data structure of the App for all the subsystems. The app state is saved in here. It is connected automatically to UI element and schedule updates on them.

Classes


new DataTree()

Methods


GetVar( varID )

Description
Get the current value and status of the related stateVariable. It returns a proxy to the real stateVariable, this is readonly, as a protection it will throw if you try to assign a value.
Parameters
Name Type Description
varID systemObject identifier of the variable, an object with keys (name,system)

Update( variables )

Description
It upadtes with the variable or the list of variables. This will automatically call UI update of all connected elements.
Parameters
Name Type Description
variables a list or a single systemVariable object with keys (name,system,status,value)

ExistVar( varID )

Description
Checks if the variable exist in the current state tree
Parameters
Name Type Description
varID identifier of the variable, an object with keys (name,system)