public class Int extends Variable
| Constructor and Description |
|---|
Int()
Constructor
|
Int(int lowerBound,
int upperBound)
Constructor
|
Int(int value,
int lowerBound,
int upperBound)
Constructor
|
Int(Variable variable)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Variable |
deepCopy()
Creates an exact copy of the
Int object. |
double |
getLowerBound()
Returns the lower bound of the variable.
|
double |
getUpperBound()
Returns the upper bound of the variable.
|
double |
getValue()
Returns the value of the 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)
Assigns a value to the variable.
|
java.lang.String |
toString()
Returns a string representing the object
|
getVariableTypepublic 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 variablelowerBound - Variable lower boundupperBound - Variable upper boundpublic Int(Variable variable) throws JMException
variable - Variable to be copied.JMExceptionpublic double getValue()
public void setValue(double value)
public Variable deepCopy()
Int object.public double getLowerBound()
getLowerBound in class Variablepublic void setLowerBound(double lowerBound)
setLowerBound in class VariablelowerBound - The lower bound value.public double getUpperBound()
getUpperBound in class Variablepublic void setUpperBound(double upperBound)
setUpperBound in class VariableupperBound - The new upper bound value.public java.lang.String toString()
toString in class java.lang.Object