omnics
Interface Algorithm

All Known Subinterfaces:
Analyzer, BoundAlgorithm, Filter
All Known Implementing Classes:
AbstractFilter, ArcConsistency, DefaultAnalyzer, DefaultBoundAlgorithm, GeneralArcConsistency

public interface Algorithm

Describes an algorithm that can be executed for a constraint satisfaction problem. An algorithm may or may have not a solver. If the algorithm requires runtime information it can obtain the problem's solver using: problem.getSolver()

Author:
Cristian Frasinaru

Method Summary
 java.lang.String getName()
          Gets the name of this algorithm.
 Problem getProblem()
          Gets the problem this algorithm was associated to.
 void setName(java.lang.String name)
          Sets the name of this algorithm.
 void setProblem(Problem problem)
          Sets the problem on which this algorithm will perform.
 

Method Detail

getProblem

Problem getProblem()
Gets the problem this algorithm was associated to.

Returns:
the problem this algorithm was associated to.

setProblem

void setProblem(Problem problem)
Sets the problem on which this algorithm will perform.

Parameters:
problem - a constraint satisfaction problem

getName

java.lang.String getName()
Gets the name of this algorithm.

Returns:
the name given to this algorithm

setName

void setName(java.lang.String name)
Sets the name of this algorithm. Names can be used to identify a certain algorithm inside the solver, for example.

Parameters:
name - a string representing the name of the algorithm