fuzzydl.milp
Class Bound
java.lang.Object
fuzzydl.milp.Bound
- Direct Known Subclasses:
- BinaryBound, FreeBound, IntBound, UpperBound
public abstract class Bound
- extends java.lang.Object
Bound indicating the type of a variable.
|
Field Summary |
protected java.lang.String |
type
|
|
Constructor Summary |
Bound()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
protected java.lang.String type
Bound
public Bound()
getNewVariable
public abstract Variable getNewVariable()
- Gets a new variable of the type of the bound.
- Returns:
- A new variable.
getBoundVal
public abstract double getBoundVal()
- Gets the value of the bound.
- Returns:
- Value of the bound.
getType
public java.lang.String getType()
- Gets the type of the bound.
- Returns:
- Type of the bound.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object