|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmetal.util.wrapper.XInt
public class XInt
Wrapper class for accessing integer-coded solutions
Constructor Summary | |
---|---|
XInt(Solution solution)
Constructor |
Method Summary | |
---|---|
int |
getLowerBound(int index)
Gets the lower bound of a encodings.variable |
int |
getNumberOfDecisionVariables()
Returns the number of variables of the solution |
int |
getUpperBound(int index)
Gets the upper bound of a encodings.variable |
int |
getValue(int index)
Gets value of a encodings.variable |
void |
setValue(int index,
int value)
Sets the value of a encodings.variable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XInt(Solution solution)
solution
- Method Detail |
---|
public int getValue(int index) throws JMException
index
- Index of the encodings.variable
JMException
public void setValue(int index, int value) throws JMException
index
- Index of the encodings.variablevalue
- Value to be assigned
JMException
public int getLowerBound(int index) throws JMException
index
- Index of the encodings.variable
JMException
public int getUpperBound(int index) throws JMException
index
- Index of the encodings.variable
JMException
public int getNumberOfDecisionVariables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |