the Subject whose value this ParameterBoolean represents
the localized name of this Parameter
A function with no arguments that returns the value of this Parameter
A function with one argument that sets the value of this Parameter
Optional opt_choices: string
the translated localized strings corresponding to the values (optional)
Optional opt_values: boolean
the booleans corresponding to the choices that the parameter can be set to (optional)
the translated localized strings corresponding to the values
the booleans corresponding to the choices
Returns the value of this Parameter in string form.
the value of this Parameter in string form
Name of this SubjectEvent, either the language-independent name for scripting purposes or the localized name for display to user.
Optional opt_localized: boolean
true means return the localized version of the name;
false which means return the language independent name.
name of this object
Returns the Subject to which this SubjectEvent refers.
the Subject to which this SubjectEvent refers.
Returns the value of this ParameterBoolean.
the value of this ParameterBoolean
Returns the set of values corresponding to getChoices that this Parameter can be set to.
set of values that this Parameter can be set to, in string form.
Returns whether the value is being automatically computed; setting the value of this Parameter has no effect.
Examples of automatically computed Parameters: the variables that give the current energy of a simulation. Another example is when the size of a graph's SimView is under control of an AutoScale.
whether the value is being automatically computed
the English or language-independent version of the name
whether this SubjectEvent has the given name (adjusted to language-independent form)
Sets the choices and values associated with this Parameter.
localized strings giving name of each choice
the values corresponding to each choice
Optional opt_broadcast: boolean
whether to broadcast this change to the Subject's Observers, default is true
values is of different length than
Sets whether the value is being automatically computed. See isComputed.
whether the value is being automatically computed.
Sets the value of this Parameter after converting the given string to the appropriate type (boolean, number or string).
the value to set this Parameter to, in string form
if the string cannot be converted to the needed type
Sets the value of this ParameterBoolean.
the value to set this ParameterBoolean to
Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.
For an object whose main purpose is to represent another Printable object, it is
recommended to include the result of calling
toStringShort on that other object.
For example, calling
toStringShort() on a DisplayShape might return something like
a minimal string representation of this object.
Generated using TypeDoc