choco.kernel.solver.search
Interface ISolutionPool


public interface ISolutionPool


Field Summary
static Logger LOGGER
           
 
Method Summary
 List<Solution> asList()
          A List with the solution from the last solution recorded to the first according.
 void clear()
           
 Solution getBestSolution()
          the best/last recorded solution.
 int getCapacity()
           
 AbstractGlobalSearchStrategy getSearchStrategy()
           
 boolean isEmpty()
           
 void recordSolution(Solver solver)
          use AbstractSearchStrategy.writeSolution(Solution) with the target object of the pool, if any.
 void resizeCapacity(int capacity)
          optional operation.
 int size()
           
 

Field Detail

LOGGER

static final Logger LOGGER
Method Detail

getSearchStrategy

AbstractGlobalSearchStrategy getSearchStrategy()

clear

void clear()

getCapacity

int getCapacity()

resizeCapacity

void resizeCapacity(int capacity)
optional operation.


isEmpty

boolean isEmpty()

size

int size()

getBestSolution

Solution getBestSolution()
the best/last recorded solution.

Returns:

recordSolution

void recordSolution(Solver solver)
use AbstractSearchStrategy.writeSolution(Solution) with the target object of the pool, if any.

Parameters:
solver -

asList

List<Solution> asList()
A List with the solution from the last solution recorded to the first according.

Returns:


Copyright © 2012. All Rights Reserved.