Class Variable

java.lang.Object
com.agenarisk.api.model.Variable

public class Variable extends Object
Author:
Eugene Dementiev
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the name of this Variable.
    double
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Variable

      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.
      Parameters:
      node - Node for the Variable
      logicVariable - Logic variable that this Variable represents
  • Method Details

    • getName

      public String getName()
      Get the name of this Variable.
      Returns:
      name of this Variable
    • setName

      public void setName(String newName)
      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