omnics.strategy
Class SimpleBackward

java.lang.Object
  extended by omnics.strategy.AbstractStrategy
      extended by omnics.strategy.SimpleBackward
All Implemented Interfaces:
java.io.Serializable, BackwardStrategy, SolverStrategy

public class SimpleBackward
extends AbstractStrategy
implements BackwardStrategy

A simple implementation of the BackwardStrategy, representing chronological backtracking.

Author:
Cristian Frasinaru
See Also:
Serialized Form

Field Summary
 
Fields inherited from class omnics.strategy.AbstractStrategy
solver
 
Constructor Summary
SimpleBackward()
           
 
Method Summary
 Var back()
          Determines the variable to which the systematic search algorithm will return in case of failure.
 
Methods inherited from class omnics.strategy.AbstractStrategy
getSolver, setSolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface omnics.strategy.SolverStrategy
getSolver, setSolver
 

Constructor Detail

SimpleBackward

public SimpleBackward()
Method Detail

back

public Var back()
Description copied from interface: BackwardStrategy
Determines the variable to which the systematic search algorithm will return in case of failure.

Specified by:
back in interface BackwardStrategy
Returns:
the variable to return to in case of failure or null if no return is possible