|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.core.Variable
public abstract class Variable
This abstract class is the base for defining new types of variables.
Many methods of Variable (getValue,
setValue,
getLowerLimit,setLowerLimit,getUpperLimit,
setUpperLimit)
are not applicable to all the subclasses of Variable.
For this reason, they are defined by default as giving a fatal error.
| Constructor Summary | |
|---|---|
Variable()
|
|
| Method Summary | |
|---|---|
abstract Variable |
deepCopy()
Creates an exact copy of a Variable object. |
double |
getLowerBound()
Gets the lower bound value of a encodings.variable. |
double |
getUpperBound()
Gets the upper bound value of a encodings.variable. |
double |
getValue()
Gets the double value representating the encodings.variable. |
java.lang.Class |
getVariableType()
Gets the type of the encodings.variable. |
void |
setLowerBound(double lowerBound)
Sets the lower bound for a encodings.variable. |
void |
setUpperBound(double upperBound)
Sets the upper bound for a encodings.variable. |
void |
setValue(double value)
Sets a double value to a encodings.variable in subclasses of Variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Variable()
| Method Detail |
|---|
public abstract Variable deepCopy()
Variable object.
public double getValue()
throws JMException
Variable (i.e. Real
and Int).
As not all objects belonging to a subclass of Variable have a
double value, a call to this method it is considered a fatal error by
default, and the program is terminated. Those classes requiring this method
must redefine it.
JMException
public void setValue(double value)
throws JMException
Variable.
As not all objects belonging to a subclass of Variable have a
double value, a call to this method it is considered a fatal error by
default, and the program is terminated. Those classes requiring this method
must redefine it.
JMException
public double getLowerBound()
throws JMException
Variable have a lower bound,
a call to this method is considered a fatal error by default,
and the program is terminated.
Those classes requiring this method must redefine it.
JMException
public double getUpperBound()
throws JMException
Variable have an upper
bound, a call to this method is considered a fatal error by default, and the
program is terminated. Those classes requiring this method must redefine it.
JMException
public void setLowerBound(double lowerBound)
throws JMException
Variable have a lower bound, a call to this method
is considered a fatal error by default and the program is terminated.
Those classes requiring this method must to redefine it.
JMException
public void setUpperBound(double upperBound)
throws JMException
Variable have an upper bound, a call to this method
is considered a fatal error by default, and the program is terminated.
Those classes requiring this method must redefine it.
JMExceptionpublic java.lang.Class getVariableType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||