|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.core.Variable
jmetal.encodings.variable.Real
public class Real
This class implements a Real value decision encodings.variable
| Constructor Summary | |
|---|---|
Real()
Constructor |
|
Real(double lowerBound,
double upperBound)
Constructor |
|
Real(double lowerBound,
double upperBound,
double value)
Constructor |
|
Real(Variable variable)
Copy constructor. |
|
| Method Summary | |
|---|---|
Variable |
deepCopy()
Returns a exact copy of the Real encodings.variable |
double |
getLowerBound()
Gets the lower bound of the encodings.variable. |
double |
getUpperBound()
Gets the upper bound of the encodings.variable. |
double |
getValue()
Gets the value of the Real encodings.variable. |
void |
setLowerBound(double lowerBound)
Sets the lower bound of the encodings.variable. |
void |
setUpperBound(double upperBound)
Sets the upper bound of the encodings.variable. |
void |
setValue(double value)
Sets the value of the encodings.variable. |
java.lang.String |
toString()
Returns a string representing the object |
| Methods inherited from class jmetal.core.Variable |
|---|
getVariableType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Real()
public Real(double lowerBound,
double upperBound)
lowerBound - Lower limit for the encodings.variableupperBound - Upper limit for the encodings.variable
public Real(double lowerBound,
double upperBound,
double value)
lowerBound - Lower limit for the encodings.variableupperBound - Upper limit for the encodings.variablevalue - Value of the variable
public Real(Variable variable)
throws JMException
variable - The encodings.variable to copy.
JMException| Method Detail |
|---|
public double getValue()
Real encodings.variable.
getValue in class Variablepublic void setValue(double value)
setValue in class Variablevalue - The value.public Variable deepCopy()
Real encodings.variable
deepCopy in class Variablepublic double getLowerBound()
getLowerBound in class Variablepublic double getUpperBound()
getUpperBound in class Variablepublic void setLowerBound(double lowerBound)
setLowerBound in class VariablelowerBound - The lower bound.public void setUpperBound(double upperBound)
setUpperBound in class VariableupperBound - The upper bound.public 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 | |||||||||