|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.util.Neighborhood
public class Neighborhood
Class representing neighborhoods for a Solution into a
SolutionSet.
| Constructor Summary | |
|---|---|
Neighborhood(int solutionSetSize)
Constructor. |
|
| Method Summary | |
|---|---|
SolutionSet |
getEightNeighbors(SolutionSet population,
int individual)
Returns a SolutionSet with the North, Sout, East, West,
North-West, South-West, North-East and South-East neighbors solutions of
ratio 0 of a given location into a given SolutionSet. |
SolutionSet |
getFourNeighbors(SolutionSet solutionSet,
int location)
Returns a SolutionSet with the North, Sout, East and West
neighbors solutions of ratio 0 of a given location into a given
SolutionSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Neighborhood(int solutionSetSize)
solutionSetSize - The size.| Method Detail |
|---|
public SolutionSet getFourNeighbors(SolutionSet solutionSet,
int location)
SolutionSet with the North, Sout, East and West
neighbors solutions of ratio 0 of a given location into a given
SolutionSet.
solutionSet - The SolutionSet.location - The location.
SolutionSet with the neighbors.
public SolutionSet getEightNeighbors(SolutionSet population,
int individual)
SolutionSet with the North, Sout, East, West,
North-West, South-West, North-East and South-East neighbors solutions of
ratio 0 of a given location into a given SolutionSet.
solutions of a given location into a given SolutionSet.
population - The SolutionSet.individual - The individual.
SolutionSet with the neighbors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||