public class Real extends Variable
Constructor and Description |
---|
Real()
Constructor
|
Real(double lowerBound,
double upperBound)
Constructor
|
Real(Variable variable)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Variable |
deepCopy()
Returns a exact copy of the
Real variable |
double |
getLowerBound()
Gets the lower bound of the variable.
|
double |
getUpperBound()
Gets the upper bound of the variable.
|
double |
getValue()
Gets the value of the
Real variable. |
void |
setLowerBound(double lowerBound)
Sets the lower bound of the variable.
|
void |
setUpperBound(double upperBound)
Sets the upper bound of the variable.
|
void |
setValue(double value)
Sets the value of the variable.
|
java.lang.String |
toString()
Returns a string representing the object
|
getVariableType
public Real()
public Real(double lowerBound, double upperBound)
lowerBound
- Lower limit for the variableupperBound
- Upper limit for the variablepublic Real(Variable variable) throws JMException
variable
- The variable to copy.JMException
public double getValue()
Real
variable.public void setValue(double value)
public Variable deepCopy()
Real
variablepublic double getLowerBound()
getLowerBound
in class Variable
public void setLowerBound(double lowerBound)
setLowerBound
in class Variable
lowerBound
- The lower bound.public double getUpperBound()
getUpperBound
in class Variable
public void setUpperBound(double upperBound)
setUpperBound
in class Variable
upperBound
- The upper bound.public java.lang.String toString()
toString
in class java.lang.Object