be.ac.ulg.montefiore.run.totem.repository.genericheuristics.simulatedAnnealing.model
Interface SANeighbourhood

All Known Implementing Classes:
RandomOneChangeNBH

public interface SANeighbourhood

Define a neighbourhood of a solution

Creation date: 16-Nov-2004 14:42:40

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Method Summary
 void computeNeighbour(SASolution solution)
          Generate a neighbour of the solution given in argument and modify the given solution.
 int getNbNeighbour()
          Return the size of the neighbourhood
 int getNbUsed()
           
 void resetNbUsed()
           
 void returnToPreviousSolution(SASolution solution)
          Return to the previous solution.
 java.lang.String toString()
          The name of the neighbourhood
 

Method Detail

toString

java.lang.String toString()
The name of the neighbourhood

Overrides:
toString in class java.lang.Object
Returns:
the name

computeNeighbour

void computeNeighbour(SASolution solution)
Generate a neighbour of the solution given in argument and modify the given solution.

Parameters:
solution -

returnToPreviousSolution

void returnToPreviousSolution(SASolution solution)
Return to the previous solution. Be carreful to call this method with the same solution as the past call of the computeNeighbour method

Parameters:
solution -

getNbNeighbour

int getNbNeighbour()
Return the size of the neighbourhood

Returns:

getNbUsed

int getNbUsed()

resetNbUsed

void resetNbUsed()


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.