neosim.implementation
Class PopulationViewImpl
java.lang.Object
|
+--neosim.implementation.PopulationNodeImpl
|
+--neosim.implementation.PopulationImpl
|
+--neosim.implementation.PopulationViewImpl
- public class PopulationViewImpl
- extends PopulationImpl
- implements PopulationView
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.
- See Also:
- Serialized Form
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)
Override this method to build new types of view |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PopulationViewImpl
public PopulationViewImpl(java.lang.String name,
PopulationNode parent,
Population srcPop)
- Build size instances of entity class ec.
- Parameters:
name
- the population name
buildView
public void buildView(Entity e)
- Override this method to build new types of view
- Specified by:
- buildView in interface PopulationView
- Tags copied from interface: PopulationView
- 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
- Specified by:
- addEntityToView in interface PopulationView
- Tags copied from interface: PopulationView
- Parameters:
e
- the entity to add