fuzzydl.milp
Class Bound

java.lang.Object
  extended by 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()
           
 
Method Summary
abstract  double getBoundVal()
          Gets the value of the bound.
abstract  Variable getNewVariable()
          Gets a new variable of the type of the bound.
 java.lang.String getType()
          Gets the type of the bound.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected java.lang.String type
Constructor Detail

Bound

public Bound()
Method Detail

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