fr.jussieu.gla.wasa.core
Class Constraint

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.core.ProblemItem
        |
        +--fr.jussieu.gla.wasa.core.Constraint

public abstract class Constraint
extends ProblemItem

Base class for implementing Constraints.
A Constraint implementation accesses Vars to set their error property.

Version:
$Revision: 1.4 $ $Date: 2002/04/17 15:24:05 $
Author:
Laurent Caillette, Florent Selva

Constructor Summary
Constraint(Problem problem)
          The Constraint constructor needs the constraint associated problem.
 
Method Summary
abstract  void evaluate()
          The core definition of the Constraint.
 int getRank()
          Returns the Constraint instanciation rank.
 
Methods inherited from class fr.jussieu.gla.wasa.core.ProblemItem
getName, getProblem, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constraint

public Constraint(Problem problem)
The Constraint constructor needs the constraint associated problem.
Method Detail

getRank

public final int getRank()
Returns the Constraint instanciation rank.
Returns:
the instanciation rank.

evaluate

public abstract void evaluate()
The core definition of the Constraint. This method is called each time the engine evaluates the Constraint. Redefine it to specify your particular Constraint.