All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.examples.sudoku.rules.PossibleCellValue Maven / Gradle / Ivy

The newest version!
/*
 * JBoss, the OpenSource J2EE webOS
 * 
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.drools.examples.sudoku.rules;

/**
 * Represents a possible value for a given cell, used when we are not 
 * currently certain what the value for this cell is, so we need 
 * to associated multiple PossibleCellValue objects with the 
 * same row and column in the Grid.
 * 
 * @author Pete Bennett
 * @version $Revision: 1.1 $
 */
public final class PossibleCellValue
   extends AbstractCellValue
{
   /**
    * Uses the constructor on the superclass to construct a new PossibleCellValue
    * 
    * @param value the potential value in the cell from 1-9
    * @param row the row index from 0-8
    * @param col the column index from 0-8
    */
   public PossibleCellValue(int value, int row, int col)
   {
      super(value, row, col);
   }
   
   /**
    * Uses the constructor on the superclass to construct a new PossibleCellValue
    * 
    * @param cellValue the existing cellValue to copy the information from
    */ 
   public PossibleCellValue(AbstractCellValue cellValue)
   {
      super(cellValue);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy