omnics.strategy
Interface AssignmentStrategy

All Superinterfaces:
SolverStrategy
All Known Implementing Classes:
ConsistentAssignment, MinCostAssignment, SimpleAssignment

public interface AssignmentStrategy
extends SolverStrategy

Describes an heuristic responsible with selecting the next value that will be assigned to a specified variable.

The value will be selected from the actual domain of the variable. If the variable's domain is empty or no assignment is possible, the method must return null.

Author:
Cristian Frasinaru

Method Summary
 java.lang.Object assign(Var var)
          Returns the value that will be assigned to the specified variable.
 
Methods inherited from interface omnics.strategy.SolverStrategy
getSolver, setSolver
 

Method Detail

assign

java.lang.Object assign(Var var)
Returns the value that will be assigned to the specified variable.

Parameters:
var - a variable from the candidates set
Returns:
the value that will be assigned to var or null if no assignment is possible.