|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.neighbourhood.bitchain.bitChNeighbourGenerator
public class bitChNeighbourGenerator
This class allows generating neighbours from a chain of bits by flipping each position.
| Constructor Summary | |
|---|---|
bitChNeighbourGenerator()
|
|
| Method Summary | |
|---|---|
Individual[] |
getAllNeighbours(Individual individual)
Returns the neighbours of one individual in decreasing order. |
Individual[] |
getBestNeighbours(Individual individual,
int numNeighbours)
Returns the best neighbours of one individual in decreasing order. |
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object with the information of the object. |
Individual |
getRandomNeighbour(Individual individual)
Returns the best neighbour of one individual. |
static void |
main(java.lang.String[] args)
Allows testing the class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public bitChNeighbourGenerator()
| Method Detail |
|---|
public Individual[] getBestNeighbours(Individual individual,
int numNeighbours)
getBestNeighbours in interface Neighbourhoodindividual - Individual whose neighbourhood is being returned.numNeighbours - Number of individuals returned.
public Individual getRandomNeighbour(Individual individual)
getRandomNeighbour in interface Neighbourhoodindividual - Individual whose neighbour is being returned.
public LiOResourceDefinition getDefinition()
getDefinition in interface LiOResourcepublic static void main(java.lang.String[] args)
args - the command line argumentspublic Individual[] getAllNeighbours(Individual individual)
getAllNeighbours in interface Neighbourhoodindividual - Individual whose neighbourhood is being returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||