ima.uco.fr.nuit.solchecker
Class ConstraintHandler

java.lang.Object
  extended by ima.uco.fr.nuit.solchecker.ConstraintHandler

public class ConstraintHandler
extends java.lang.Object

Handles the problem constraints

Author:
Quentin

Constructor Summary
ConstraintHandler()
           
 
Method Summary
 void addConstraint(Constraint c)
          Adds a constraint
 boolean checkConstraints(Solution s)
          Checks the constraints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintHandler

public ConstraintHandler()
Method Detail

addConstraint

public void addConstraint(Constraint c)
Adds a constraint

Parameters:
c - the constraint to add

checkConstraints

public boolean checkConstraints(Solution s)
Checks the constraints

Parameters:
s - the solution to check
Returns:
true if the solutionc checks all constraints, false otherwise