ima.uco.fr.nuit.solchecker
Class RowConstraint

java.lang.Object
  extended by ima.uco.fr.nuit.solchecker.RowConstraint
All Implemented Interfaces:
Constraint

public class RowConstraint
extends java.lang.Object
implements Constraint

Checks that the percentage of women is the same along rows

Author:
Quentin

Constructor Summary
RowConstraint()
           
 
Method Summary
 boolean checkConstraint(Solution s)
          Checks a solution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowConstraint

public RowConstraint()
Method Detail

checkConstraint

public boolean checkConstraint(Solution s)
Description copied from interface: Constraint
Checks a solution

Specified by:
checkConstraint in interface Constraint
Parameters:
s - the solution to check
Returns:
true if the constraint verifies the solution, false otherwise