uk.co.keang.sudoku.event
Class FixedLineEvent
java.lang.Object
java.util.EventObject
uk.co.keang.sudoku.event.SolutionEvent
uk.co.keang.sudoku.event.FixedLineEvent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class FixedLineEvent
- extends SolutionEvent
- implements java.lang.Cloneable
A solution event
- Author:
- A.G.Docherty
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
boolean |
canCoalesce(SolutionEvent e)
Returns true if the source and location are the same and if they both have change sets |
Methods inherited from class uk.co.keang.sudoku.event.SolutionEvent |
clone, coalesce, displayOrder, equals, getDescription, getGrouping, getLocations, getPuzzle, getReferencedLocations, getReferencedValues, getRemovedValues, hashCode, isResolved, setDisplayOrder, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
FixedLineEvent
public FixedLineEvent(AbstractSolver src,
java.lang.String msg,
Puzzle grid,
java.awt.Point loc,
Puzzle.Cell removed,
java.util.List<java.awt.Point> from,
SolutionEvent.Grouping group)
throws IllegalGridException
- A solver event for a changed cell
- Parameters:
src
- the solver that generated the eventmsg
- a descriptive message from the solvergrid
- the grid after the proposed changes are appliedloc
- the location (0 based) of the cell that has been modifiedremoved
- the values that been removed from this cells possible values listfrom
- a list of locations (0 based) of the cells used to determine which values can be removed
- Throws:
IllegalGridException
canCoalesce
public boolean canCoalesce(SolutionEvent e)
- Returns true if the source and location are the same and if they both have change sets
- Overrides:
canCoalesce
in class SolutionEvent
- Parameters:
e
-
- Returns: