omnics.event
Class SolverObserver

java.lang.Object
  extended by omnics.event.SolverAdapter
      extended by omnics.event.SolverObserver
All Implemented Interfaces:
java.io.Serializable, SolverListener

public class SolverObserver
extends SolverAdapter

Author:
Cristian Frasinaru
See Also:
Serialized Form

Constructor Summary
SolverObserver()
           
 
Method Summary
 void nogoodFound(FilterEvent event)
          Called when a nogood is found.
 void problemFiltered(FilterEvent event)
          Called after the problem has been filtered.
 void solutionExtended(SolverEvent event)
          Called when the solver extends the solution.
 void solutionFound(SolverEvent event)
          Called when the solver finds a solution.
 void solutionRestored(SolverEvent event)
          Called when the solver restores the solution.
 void solverFinished(SolverEvent event)
          Called when the solver is finished.
 void solverStarted(SolverEvent event)
          Called when the solver starts to solve the problem.
 void valueRemoved(EliminationEvent event)
          Called when a value is removed by a filter.
 
Methods inherited from class omnics.event.SolverAdapter
solverPaused, solverResumed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolverObserver

public SolverObserver()
Method Detail

solverStarted

public void solverStarted(SolverEvent event)
Description copied from interface: SolverListener
Called when the solver starts to solve the problem.

Specified by:
solverStarted in interface SolverListener
Overrides:
solverStarted in class SolverAdapter

solverFinished

public void solverFinished(SolverEvent event)
Description copied from interface: SolverListener
Called when the solver is finished.

Specified by:
solverFinished in interface SolverListener
Overrides:
solverFinished in class SolverAdapter

solutionFound

public void solutionFound(SolverEvent event)
Description copied from interface: SolverListener
Called when the solver finds a solution.

Specified by:
solutionFound in interface SolverListener
Overrides:
solutionFound in class SolverAdapter

solutionExtended

public void solutionExtended(SolverEvent event)
Description copied from interface: SolverListener
Called when the solver extends the solution.

Specified by:
solutionExtended in interface SolverListener
Overrides:
solutionExtended in class SolverAdapter

solutionRestored

public void solutionRestored(SolverEvent event)
Description copied from interface: SolverListener
Called when the solver restores the solution.

Specified by:
solutionRestored in interface SolverListener
Overrides:
solutionRestored in class SolverAdapter

problemFiltered

public void problemFiltered(FilterEvent event)
Description copied from interface: SolverListener
Called after the problem has been filtered.

Specified by:
problemFiltered in interface SolverListener
Overrides:
problemFiltered in class SolverAdapter

valueRemoved

public void valueRemoved(EliminationEvent event)
Description copied from interface: SolverListener
Called when a value is removed by a filter.

Specified by:
valueRemoved in interface SolverListener
Overrides:
valueRemoved in class SolverAdapter

nogoodFound

public void nogoodFound(FilterEvent event)
Description copied from interface: SolverListener
Called when a nogood is found.

Specified by:
nogoodFound in interface SolverListener
Overrides:
nogoodFound in class SolverAdapter