public class Variable extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Variable(Node node,
uk.co.agena.minerva.util.model.Variable logicVariable)
Creates an instance of Variable for the provided Node, linked to the provided logic Variable.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of this Variable.
|
double |
getValue()
Get the value of this Variable.
|
void |
setName(String newName)
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.
|
protected Variable(Node node, uk.co.agena.minerva.util.model.Variable logicVariable)
node - Node for the VariablelogicVariable - Logic variable that this Variable representspublic String getName()
public void setName(String newName)
newName - new Variable namepublic double getValue()
public void setValue(double newValue)
newValue - new default valueCopyright © 2021. All rights reserved.