Package com.agenarisk.api.model
Class Variable
java.lang.Object
com.agenarisk.api.model.Variable
- Author:
- Eugene Dementiev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of this Variable.double
getValue()
Get the value of this Variable.void
Change the name of the Variable to the provided new name.
Will also update formulas, expressions etc.void
setValue
(double newValue) Change the default value of the Variable to the provided new value.
-
Constructor Details
-
Variable
Creates an instance of Variable for the provided Node, linked to the provided logic Variable.- Parameters:
node
- Node for the VariablelogicVariable
- Logic variable that this Variable represents
-
-
Method Details
-
getName
Get the name of this Variable.- Returns:
- name of this Variable
-
setName
Change the name of the Variable to the provided new name.
Will also update formulas, expressions etc.- Parameters:
newName
- new Variable name
-
getValue
public double getValue()Get the value of this Variable.- Returns:
- value of this Variable
-
setValue
public void setValue(double newValue) Change the default value of the Variable to the provided new value.- Parameters:
newValue
- new default value
-