Class Formula.MultivaluedVariable
java.lang.Object
math.differentialcalculus.Formula.MultivaluedVariable
- Enclosing class:
Formula
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intNavigates through thevaluesarray and so determines the current value of the variable.(package private) intIn 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) StringThe name of the object.(package private) double[]The various values which this object can hold. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
int indexIn 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 nameThe name of the object. -
cursor
int cursorNavigates through thevaluesarray and so determines the current value of the variable. -
values
double[] valuesThe various values which this object can hold.
-
-
Constructor Details
-
MultivaluedVariable
- 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.
-