|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.core.Variable
jmetal.encodings.variable.Int
public class Int
This class implements an integer decision encodings.variable
| Constructor Summary | |
|---|---|
Int()
Constructor |
|
Int(int lowerBound,
int upperBound)
Constructor |
|
Int(int value,
int lowerBound,
int upperBound)
Constructor |
|
Int(Variable variable)
Copy constructor. |
|
| Method Summary | |
|---|---|
Variable |
deepCopy()
Creates an exact copy of the Int object. |
double |
getLowerBound()
Returns the lower bound of the encodings.variable. |
double |
getUpperBound()
Returns the upper bound of the encodings.variable. |
double |
getValue()
Returns the value of the 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)
Assigns a value to 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 Int()
public Int(int lowerBound,
int upperBound)
lowerBound - Variable lower boundupperBound - Variable upper bound
public Int(int value,
int lowerBound,
int upperBound)
value - Value of the encodings.variablelowerBound - Variable lower boundupperBound - Variable upper bound
public Int(Variable variable)
throws JMException
variable - Variable to be copied.
JMException| Method Detail |
|---|
public double getValue()
getValue in class Variablepublic void setValue(double value)
setValue in class Variablevalue - The value.public Variable deepCopy()
Int object.
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 value.public void setUpperBound(double upperBound)
setUpperBound in class VariableupperBound - The new upper bound value.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 | |||||||||