Class NumericVariable

All Implemented Interfaces:
NumericExpression, Serializable

public class NumericVariable extends ArithmeticExpression
This class defines the methods to manipulate a numeric variable.
Since:
4.0
See Also:
Serialized Form
  • Field Details

    • DURATION

      public static final int DURATION
      The index of the duration variable.
      See Also:
      Constant Field Values
  • Constructor Details

    • NumericVariable

      public NumericVariable(NumericVariable other)
      Create a new numeric variable from an other. This constructor creates a deep copy of the object in parameter.
      Parameters:
      other - the other numeric variable to be copied.
    • NumericVariable

      public NumericVariable(int index)
      Create a new numeric variable.
      Parameters:
      index - the index of this numeric fluent that represents this variable.
    • NumericVariable

      public NumericVariable(int index, double value)
      Creates a new numeric variable for a specified numeric fluent and value.
      Parameters:
      index - the index of this numeric fluent that represents this variable.
      value - the value of the numeric variable.