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
|
getVariableType
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 variablelowerBound
- Variable lower boundupperBound
- Variable upper boundpublic Int(Variable variable) throws JMException
variable
- Variable to be copied.JMException
public double getValue()
public void setValue(double value)
public Variable deepCopy()
Int
object.public double getLowerBound()
getLowerBound
in class Variable
public void setLowerBound(double lowerBound)
setLowerBound
in class Variable
lowerBound
- The lower bound value.public double getUpperBound()
getUpperBound
in class Variable
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