lio.search.pso.neighbourhoods
Class GlobalNeighbourhood

java.lang.Object
  extended by lio.search.pso.neighbourhoods.GlobalNeighbourhood
All Implemented Interfaces:
LiOResource, Neighbourhood

public class GlobalNeighbourhood
extends java.lang.Object
implements Neighbourhood

All Particles reference the best particle in the whole swarm as the social reference.


Constructor Summary
GlobalNeighbourhood()
           
 
Method Summary
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object which holds the name and all parameters that describe the resource.
 void updateSwarmInformation(Particle[] swarm)
          Updates all the particle social references to point the best point visited by the whole swarm so far.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalNeighbourhood

public GlobalNeighbourhood()
Method Detail

updateSwarmInformation

public void updateSwarmInformation(Particle[] swarm)
Updates all the particle social references to point the best point visited by the whole swarm so far.

Specified by:
updateSwarmInformation in interface Neighbourhood
Parameters:
swarm - Group of particles to be updated.

getDefinition

public LiOResourceDefinition getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource.

Specified by:
getDefinition in interface LiOResource
Returns:
A definition of the resource.