parser.instances.checker
Class OptimSChecker

java.lang.Object
  extended by parser.instances.checker.OptimSChecker
All Implemented Interfaces:
IPretty, IOptimChecker, IStatusChecker

public final class OptimSChecker
extends Object
implements IOptimChecker


Field Summary
protected  int maxObjValue
           
protected  int minObjValue
           
 
Constructor Summary
OptimSChecker(int optObjValue)
           
OptimSChecker(int minObjValue, int maxObjValue)
           
 
Method Summary
 boolean checkLowerBound(boolean doMaximize, int lbVal)
           
 boolean checkLowerBound(boolean doMaximize, Number lbVal)
           
 boolean checkOptimum(int optVal)
           
 boolean checkOptimum(Number optVal)
           
 void checkStatus(Boolean doMaximize, ResolutionStatus status, Number objective)
           
 boolean checkUpperBound(boolean doMaximize, int ubVal)
           
 boolean checkUpperBound(boolean doMaximize, Number ubVal)
           
 int getMaxObjValue()
           
 int getMinObjValue()
           
 String pretty()
          pretty printing of the object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minObjValue

protected final int minObjValue

maxObjValue

protected final int maxObjValue
Constructor Detail

OptimSChecker

public OptimSChecker(int optObjValue)

OptimSChecker

public OptimSChecker(int minObjValue,
                     int maxObjValue)
Method Detail

getMinObjValue

public int getMinObjValue()

getMaxObjValue

public int getMaxObjValue()

checkLowerBound

public boolean checkLowerBound(boolean doMaximize,
                               int lbVal)
Specified by:
checkLowerBound in interface IOptimChecker

checkOptimum

public boolean checkOptimum(int optVal)
Specified by:
checkOptimum in interface IOptimChecker

checkUpperBound

public boolean checkUpperBound(boolean doMaximize,
                               int ubVal)
Specified by:
checkUpperBound in interface IOptimChecker

checkLowerBound

public boolean checkLowerBound(boolean doMaximize,
                               Number lbVal)
Specified by:
checkLowerBound in interface IOptimChecker

checkUpperBound

public boolean checkUpperBound(boolean doMaximize,
                               Number ubVal)
Specified by:
checkUpperBound in interface IOptimChecker

checkOptimum

public boolean checkOptimum(Number optVal)
Specified by:
checkOptimum in interface IOptimChecker

checkStatus

public void checkStatus(Boolean doMaximize,
                        ResolutionStatus status,
                        Number objective)
                 throws SolutionCheckerException
Specified by:
checkStatus in interface IStatusChecker
Throws:
SolutionCheckerException

pretty

public String pretty()
Description copied from interface: IPretty
pretty printing of the object. This String is not constant and may depend on the context.

Specified by:
pretty in interface IPretty
Returns:
a readable string representation of the object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.