#include <eoStarTopology.h>
Inheritance diagram for eoStarTopology< POT >:

Public Member Functions | |
| eoStarTopology () | |
| The only Ctor. | |
| void | setup (const eoPop< POT > &_pop) |
| Builds the only neighborhood that contains all the particles of the given population. | |
| void | updateNeighborhood (POT &_po, unsigned _indice) |
| Update the neighborhood of the given particle and its indice in the population. | |
| POT & | best (unsigned _indice) |
| Return the global best particle. | |
| void | printOn () |
| Print the structure of the topology on the standard output. | |
Protected Attributes | |
| eoSocialNeighborhood< POT > | neighborhood |
| bool | isSetup |
All the particles of the swarm belong to the same and only social neighborhood. The global best is stored as a protected member and updated by using the "updateNeighborhood" method.
Definition at line 27 of file eoStarTopology.h.
| eoStarTopology< POT >::eoStarTopology | ( | ) | [inline] |
| void eoStarTopology< POT >::setup | ( | const eoPop< POT > & | _pop | ) | [inline, virtual] |
Builds the only neighborhood that contains all the particles of the given population.
Also initializes the global best particle with the best particle of the given population.
| _pop | - The population used to build the only neighborhood. |
Implements eoTopology< POT >.
Definition at line 44 of file eoStarTopology.h.
References eoPop< EOT >::best_element(), eoStarTopology< POT >::isSetup, and eoStarTopology< POT >::neighborhood.
| POT& eoStarTopology< POT >::best | ( | unsigned | _indice | ) | [inline, virtual] |
Return the global best particle.
| _indice | - The indice of a particle in the population |
Implements eoTopology< POT >.
Definition at line 94 of file eoStarTopology.h.
References eoStarTopology< POT >::neighborhood.
| void eoStarTopology< POT >::printOn | ( | ) | [inline, virtual] |
Print the structure of the topology on the standard output.
| @return |
Reimplemented from eoTopology< POT >.
Definition at line 102 of file eoStarTopology.h.
References eoStarTopology< POT >::neighborhood.
1.4.7