Package math.differentialcalculus
Class Formula.MultivaluedVariable
java.lang.Object
math.differentialcalculus.Formula.MultivaluedVariable
- Enclosing class:
Formula
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
Navigates through thevalues
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 -
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 thevalues
array 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.
-