public class ArrayReal extends Variable
| Modifier and Type | Field and Description | 
|---|---|
java.lang.Double[] | 
array_
Stores an array of real values 
 | 
int | 
size_
Stores the length of the array 
 | 
| Constructor and Description | 
|---|
ArrayReal()
Constructor 
 | 
ArrayReal(ArrayReal arrayReal)  | 
ArrayReal(int size,
         Problem problem)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Variable | 
deepCopy()
Creates an exact copy of a  
Variable object. | 
int | 
getLength()
Returns the length of the arrayReal. 
 | 
double | 
getLowerBound(int index)
Get the lower bound of a value 
 | 
double | 
getUpperBound(int index)
Get the upper bound of a value 
 | 
double | 
getValue(int index)
getValue 
 | 
void | 
setValue(int index,
        double value)
setValue 
 | 
java.lang.String | 
toString()
Returns a string representing the object 
 | 
getLowerBound, getUpperBound, getValue, getVariableType, setLowerBound, setUpperBound, setValuepublic java.lang.Double[] array_
public int size_
public ArrayReal()
public ArrayReal(int size,
                 Problem problem)
size - Size of the arraypublic ArrayReal(ArrayReal arrayReal)
public Variable deepCopy()
VariableVariable object.public int getLength()
public double getValue(int index)
                throws JMException
index - Index of value to be returnedJMExceptionpublic void setValue(int index,
                     double value)
              throws JMException
index - Index of value to be returnedvalue - The value to be set in position indexJMExceptionpublic double getLowerBound(int index)
                     throws JMException
index - The index of the valueJMExceptionpublic double getUpperBound(int index)
                     throws JMException
index - The index of the valueJMExceptionpublic java.lang.String toString()
toString in class java.lang.Object