|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jmetal.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 boundpublic Int(int value, int lowerBound, int upperBound)
value
- Value of the encodings.variablelowerBound
- Variable lower boundupperBound
- Variable upper boundpublic Int(Variable variable) throws JMException
variable
- Variable to be copied.
JMException
Method Detail |
---|
public double getValue()
getValue
in class Variable
public void setValue(double value)
setValue
in class Variable
value
- The value.public Variable deepCopy()
Int
object.
deepCopy
in class Variable
public double getLowerBound()
getLowerBound
in class Variable
public double getUpperBound()
getUpperBound
in class Variable
public void setLowerBound(double lowerBound)
setLowerBound
in class Variable
lowerBound
- The lower bound value.public void setUpperBound(double upperBound)
setUpperBound
in class Variable
upperBound
- 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 |