|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.search.pso.neighbourhoods.RingNeighbourhood
public class RingNeighbourhood
Defines an order among particles and neighbourhood information of each one only refers to the best on its radio.
Constructor Summary | |
---|---|
RingNeighbourhood()
|
Method Summary | |
---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
int |
getRatio()
|
void |
setRatio(int ratio)
|
void |
updateSwarmInformation(Particle[] swarm)
Updates the neighbourhood structure if precise and the references of each particle to the global information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RingNeighbourhood()
Method Detail |
---|
public void updateSwarmInformation(Particle[] swarm)
updateSwarmInformation
in interface Neighbourhood
swarm
- Group of particles to be updated.public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public int getRatio()
public void setRatio(int ratio)
ratio
- the ratio to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |