Static
Readonly
TIMEThis name is the reserved name for the time variable.
Add a contiguous block of variables.
language-independent names of variables; these will be underscorized so the English name can be passed in here.
index index of first Variable that was added
if any of the variable names is 'DELETED', or array of names is empty
Deletes a contiguous block of variables.
Delete several variables, but leaves those places in the array as empty spots that
can be allocated in future with addVariables
. Until an empty spot is
reallocated, the name of the variable at that spot has the reserved name 'DELETED' and
should not be used.
index of first variable to delete
number of variables to delete
Returns the value of the time variable, or throws an exception if there is no time variable.
There are no explicit units for the time, so you can regard a time unit as any length of time, as long as it is consistent with other units.
the current simulation time
if there is no time variable
Returns the Variable object at the given index or with the given name
the index or name of the variable; the name can be the English or language independent version of the name
the Variable object at the given index or with the given name
Increments the sequence number for the specified variable(s), which indicates a discontinuity has occurred in the value of this variable. This information is used in a graph to prevent drawing a line between points that have a discontinuity.
Rest
...indexes: number[]the indexes of the variables; if no index given then all variable's sequence numbers are incremented
Sets the specified variable to the given value. Variables are numbered starting at zero. Assumes this is a discontinous change, so the sequence number is incremented unless you specify that this is a continuous change in the variable.
the index of the variable within the array of variables
the value to set the variable to
true
means this new value is continuous with
previous values; false
(the default) means the new value is discontinuous with
previous values, so the sequence number for the variable is incremented
if value is NaN
Sets the value of each variable from the given list of values. When the length of
vars
is less than length of VarsList then the remaining variables are not modified.
Assumes this is a discontinous change, so the sequence number is incremented
unless you specify that this is a continuous change in the variable.
array of state variables
true
means this new value is continuous with
previous values; false
(the default) means the new value is discontinuous with
previous values, so the sequence number for the variable is incremented
if length of vars
exceeds length of VarsList
Generated using TypeDoc
Initializes the list of variables. The names argument must contain the reserved, case-insensitive, 'time' variable.