neosim.iface
Interface PopulationView

All Known Implementing Classes:
PopulationViewImpl

public interface PopulationView
extends Population

A population view provides a way of referring to a collection of existing entities. It is specified by providing a population and a method to decide whether to add each entity to the view. A typical view would be a grid based decomposition which provides a method to look up all entities in a given grid square.


Method Summary
 void addEntityToView(EntityID e)
          Call this method from within the buildView method to add an entity to the view
 void buildView(Entity e)
          Implement this method to build new types of view
 
Methods inherited from interface neosim.iface.Population
addMember, getEntityID, getID, getIndex, getMemberList, getNumEnts, isMember
 
Methods inherited from interface neosim.iface.PopulationNode
getName, getParent, isLeaf
 

Method Detail

buildView

public void buildView(Entity e)
Implement this method to build new types of view
Parameters:
e - the entity to consider adding to this view

addEntityToView

public void addEntityToView(EntityID e)
Call this method from within the buildView method to add an entity to the view
Parameters:
e - the entity to add