| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.core.Variable
jmetal.encodings.variable.ArrayReal
public class ArrayReal
Class implementing a decision encodings.variable representing an array of real values. The real values of the array have their own bounds.
| Field Summary | |
|---|---|
|  java.lang.Double[] | array_Stores an array of real values | 
| Constructor Summary | |
|---|---|
| ArrayReal()Constructor | |
| ArrayReal(int size,
          Problem problem)Constructor | |
| Method Summary | |
|---|---|
|  Variable | deepCopy()Creates an exact copy of a Variableobject. | 
|  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 | 
| Methods inherited from class jmetal.core.Variable | 
|---|
| getLowerBound, getUpperBound, getValue, getVariableType, setLowerBound, setUpperBound, setValue | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public java.lang.Double[] array_
| Constructor Detail | 
|---|
public ArrayReal()
public ArrayReal(int size,
                 Problem problem)
size - Size of the array| Method Detail | 
|---|
public Variable deepCopy()
VariableVariable object.
deepCopy in class Variablepublic int getLength()
public double getValue(int index)
                throws JMException
index - Index of value to be returned
JMException
public void setValue(int index,
                     double value)
              throws JMException
index - Index of value to be returnedvalue - The value to be set in position index
JMException
public double getLowerBound(int index)
                     throws JMException
index - The index of the value
JMException
public double getUpperBound(int index)
                     throws JMException
index - The index of the value
JMExceptionpublic java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||