be.ac.ulg.montefiore.run.totem.repository.SAMTE.model
Class RandomOneChangeNBH

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.SAMTE.model.RandomOneChangeNBH
All Implemented Interfaces:
SANeighbourhood

public class RandomOneChangeNBH
extends java.lang.Object
implements SANeighbourhood

Creation date: 28-Feb-2005 15:45:03

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

Constructor Summary
RandomOneChangeNBH()
           
 
Method Summary
 void computeNeighbour(SASolution solution)
          Generate a neighbour of the solution given in argument and modify the given solution.
 CandidatePathList getCpl()
           
 int getNbNeighbour()
          Return the size of the neighbourhood
 int getNbUsed()
           
 void resetNbUsed()
           
 void returnToPreviousSolution(SASolution solution)
          Return to the previous solution.
 void setCpl(SinglePathCPL cpl)
           
 java.lang.String toString()
          The name of the neighbourhood
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomOneChangeNBH

public RandomOneChangeNBH()
Method Detail

getCpl

public CandidatePathList getCpl()

setCpl

public void setCpl(SinglePathCPL cpl)

getNbUsed

public int getNbUsed()
Specified by:
getNbUsed in interface SANeighbourhood

resetNbUsed

public void resetNbUsed()
Specified by:
resetNbUsed in interface SANeighbourhood

toString

public java.lang.String toString()
Description copied from interface: SANeighbourhood
The name of the neighbourhood

Specified by:
toString in interface SANeighbourhood
Overrides:
toString in class java.lang.Object
Returns:
the name

computeNeighbour

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

Specified by:
computeNeighbour in interface SANeighbourhood
Parameters:
solution -

returnToPreviousSolution

public 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

Specified by:
returnToPreviousSolution in interface SANeighbourhood
Parameters:
solution -

getNbNeighbour

public int getNbNeighbour()
Return the size of the neighbourhood

Specified by:
getNbNeighbour in interface SANeighbourhood
Returns:


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