Class Formula.MultivaluedVariable

java.lang.Object
math.differentialcalculus.Formula.MultivaluedVariable
Enclosing class:
Formula

private class Formula.MultivaluedVariable extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    Navigates through the values array and so determines the current value of the variable.
    (package private) int
    In cases where this object has to be referenced from an array,this attribute tells exactly where to find the object in the array.
    (package private) String
    The name of the object.
    (package private) double[]
    The various values which this object can hold.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MultivaluedVariable(int index, String name, double[] values)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    double
     
    void
    setCursor(int cursor)
     

    Methods inherited from class Object

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

    • index

      int index
      In cases where this object has to be referenced from an array,this attribute tells exactly where to find the object in the array.
    • name

      String name
      The name of the object.
    • cursor

      int cursor
      Navigates through the values array and so determines the current value of the variable.
    • values

      double[] values
      The various values which this object can hold.
  • Constructor Details

    • MultivaluedVariable

      public MultivaluedVariable(int index, String name, double[] values)
      Parameters:
      index - In cases where this object has to be referenced from an array,this attribute tells exactly where to find the object in the array.
      name - The name of the object.
      values - The various values which this object can hold.
  • Method Details

    • setCursor

      public void setCursor(int cursor)
    • currentValue

      public double currentValue()
      Returns:
      the current value of the object.
    • nextValue

      public double nextValue()
      Returns:
      Changes the value of the object to the next one and returns that value.