ima.uco.fr.nuit.solchecker
Class Encart

java.lang.Object
  extended by ima.uco.fr.nuit.solchecker.Encart
All Implemented Interfaces:
Solution

public class Encart
extends java.lang.Object
implements Solution

Models a solution for the "Encart" problem

Author:
Quentin

Constructor Summary
Encart()
          Class constructor
Encart(int[][] encart)
          Class constructor
 
Method Summary
 int getSize()
           
 int getValue(int row, int column)
          Returns the value of a profile (i.e., male or female)
 void setValue(int row, int column, int value)
          sets the value of a profile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encart

public Encart()
Class constructor


Encart

public Encart(int[][] encart)
Class constructor

Parameters:
encart - an encart
Method Detail

setValue

public void setValue(int row,
                     int column,
                     int value)
              throws java.lang.IllegalArgumentException
sets the value of a profile

Parameters:
row - the row index
column - the column index
Throws:
java.lang.IllegalArgumentException

getValue

public int getValue(int row,
                    int column)
Returns the value of a profile (i.e., male or female)

Parameters:
row - the row index
column - the column index
Returns:
the value in the right cell

getSize

public int getSize()