net.sourceforge.cilib.entity.topologies
Class ECTopologyHolder

java.lang.Object
  extended by net.sourceforge.cilib.entity.topologies.ECTopologyHolder
All Implemented Interfaces:
TopologyHolder

public class ECTopologyHolder
extends Object
implements TopologyHolder


Constructor Summary
ECTopologyHolder()
           
ECTopologyHolder(Topology<? extends Entity> topology)
           
 
Method Summary
 void add(Entity entity)
          Add a child to the holder?
 void add(Entity entity, boolean modifiable)
          Add the current provided entity to either the modifiable and unmodifiable lists, maintained within this holder.
 void addAll(List<Entity> entities)
          plural version of add()
 List<? extends Entity> getModifiable()
          get the modifiable list of entities.
 Topology<Entity> getOffspring()
           
 Topology<? extends Entity> getTopology()
           
 List<? extends Entity> getUnmodifiable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECTopologyHolder

public ECTopologyHolder()

ECTopologyHolder

public ECTopologyHolder(Topology<? extends Entity> topology)
Method Detail

getTopology

public Topology<? extends Entity> getTopology()
Specified by:
getTopology in interface TopologyHolder

add

public void add(Entity entity)
Description copied from interface: TopologyHolder
Add a child to the holder?

Specified by:
add in interface TopologyHolder

addAll

public void addAll(List<Entity> entities)
Description copied from interface: TopologyHolder
plural version of add()

Specified by:
addAll in interface TopologyHolder

getOffspring

public Topology<Entity> getOffspring()

getModifiable

public List<? extends Entity> getModifiable()
Description copied from interface: TopologyHolder
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.

Specified by:
getModifiable in interface TopologyHolder
Returns:

add

public void add(Entity entity,
                boolean modifiable)
Add the current provided entity to either the modifiable and unmodifiable lists, maintained within this holder.

Specified by:
add in interface TopologyHolder
Parameters:
entity - The entity insance to add.
modifiable - If true add to the modifiable list, else add to the unmodifiable list.

getUnmodifiable

public List<? extends Entity> getUnmodifiable()
Specified by:
getUnmodifiable in interface TopologyHolder


Copyright © 2009 CIRG. All Rights Reserved.