omnics.strategy
Class AbstractStrategy

java.lang.Object
  extended by omnics.strategy.AbstractStrategy
All Implemented Interfaces:
java.io.Serializable, SolverStrategy
Direct Known Subclasses:
BackJumping, ConsistentAssignment, MinCostAssignment, MinDomForward, SimpleAssignment, SimpleBackward, SimpleForward

public class AbstractStrategy
extends java.lang.Object
implements SolverStrategy, java.io.Serializable

Represents an abstract implementation of SolverStrategy interface.

Author:
Cristian Frasinaru
See Also:
Serialized Form

Field Summary
protected  SystematicSolver solver
           
 
Constructor Summary
AbstractStrategy()
           
 
Method Summary
 SystematicSolver getSolver()
          Gets a reference of the solver.
 void setSolver(SystematicSolver solver)
          Sets the solver which will use this strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solver

protected SystematicSolver solver
Constructor Detail

AbstractStrategy

public AbstractStrategy()
Method Detail

getSolver

public SystematicSolver getSolver()
Description copied from interface: SolverStrategy
Gets a reference of the solver.

Specified by:
getSolver in interface SolverStrategy
Returns:
a reference of the solver

setSolver

public void setSolver(SystematicSolver solver)
Description copied from interface: SolverStrategy
Sets the solver which will use this strategy.

Specified by:
setSolver in interface SolverStrategy
Parameters:
solver - a SystematicSolver