lio.neighbourhood
Interface Neighbourhood

All Superinterfaces:
LiOResource
All Known Implementing Classes:
bitChNeighbourGenerator, permNeighbourGenerator

public interface Neighbourhood
extends LiOResource

This interface must be implemented by all resources whose proposal consists of generating and evaluating neighbourhoods from an individual.

See Also:
HillClimbing

Method Summary
 Individual[] getAllNeighbours(Individual individual)
          Returns all neighbours of one individual ordered decreasing .
 Individual[] getBestNeighbours(Individual individual, int numNeighbours)
          Returns the best neighbours of one individual ordered decrently.
 Individual getRandomNeighbour(Individual individual)
          Returns the a random neighbour of one individual.
 
Methods inherited from interface lio.core.LiOResource
getDefinition
 

Method Detail

getBestNeighbours

Individual[] getBestNeighbours(Individual individual,
                               int numNeighbours)
Returns the best neighbours of one individual ordered decrently.

Parameters:
individual - Individual whose neighbourhood is being returned.
numNeighbours - Number of individuals returned.
Returns:
The best neighbours of one individual.

getAllNeighbours

Individual[] getAllNeighbours(Individual individual)
Returns all neighbours of one individual ordered decreasing .

Parameters:
individual - Individual whose neighbourhood is being returned.
Returns:
The all neighbours of one individual.

getRandomNeighbour

Individual getRandomNeighbour(Individual individual)
Returns the a random neighbour of one individual.

Parameters:
individual - Individual whose neighbour is being returned.
Returns:
A random neighbour of one individual.