net.sourceforge.cilib.entity.topologies
Interface TopologyHolder

All Known Implementing Classes:
ECTopologyHolder

public interface TopologyHolder


Method Summary
 void add(Entity entity)
          Add a child to the holder?
 void add(Entity entity, boolean modifiable)
           
 void addAll(List<Entity> entities)
          plural version of add()
 List<? extends Entity> getModifiable()
          get the modifiable list of entities.
 Topology<? extends Entity> getTopology()
           
 List<? extends Entity> getUnmodifiable()
           
 

Method Detail

getTopology

Topology<? extends Entity> getTopology()

add

void add(Entity entity)
Add a child to the holder?

Parameters:
entity -

addAll

void addAll(List<Entity> entities)
plural version of add()

Parameters:
entities -

add

void add(Entity entity,
         boolean modifiable)

getModifiable

List<? extends Entity> getModifiable()
get the modifiable list of entities. The idea here is to return various sets based on the type of topologyholder used. In the EC case, the actual offspring collection will be returned. In a PSO, the main topology should be returned.

Returns:

getUnmodifiable

List<? extends Entity> getUnmodifiable()


Copyright © 2009 CIRG. All Rights Reserved.