Click or drag to resize

SetVariableModel Class

The SetVariable class is used to perform mathematical expressions within a mathematical model.
Inheritance Hierarchy

Namespace:  Livit.Learn.Model.Simulator
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class SetVariableModel : ActionModel

The SetVariableModel type exposes the following members.

Constructors
  NameDescription
Public methodSetVariableModel
Initializes a new instance of the SetVariableModel class
Top
Properties
  NameDescription
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyConditions (Inherited from ConditionsDependantModel.)
Public propertyConditionTimeout (Inherited from ConditionsDependantModel.)
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyDebugOutput
Logs the value of this variable to the engine console after each calculation.
Public propertyExpression
Defines the mathematical expression to calculate the variable.
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyGlobalOrderIndex (Inherited from ActionModel.)
Public propertyHashedPath (Inherited from ActionModel.)
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyIgnoreInPH (Inherited from ActionModel.)
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyIsRunning (Inherited from ActionModel.)
Public propertyIsTransient (Inherited from ActionModel.)
Public propertyIsTransientInstance (Inherited from ActionModel.)
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyValue
Define value to be set into a variable.
Public propertyVariable
Defines a name for the variable, which can be used in following equations.
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
Examples
XML
<SetVariable Variable="y" Expression="1" />
<SetVariable Variable="x" Expression="5*23^2+0.5E-6+log(3)+if(y==1,1,0)+random(0,10)" />
See Also