|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--neosim.implementation.PopulationNodeImpl | +--neosim.implementation.PopulationImpl
A population is a collection of one or more entity handles. It can contain extra methods for initialising the elements of the population, or for indexing them rapidly.
Constructor Summary | |
PopulationImpl(java.lang.String name,
PopulationNode parent,
int size)
|
Method Summary | |
void |
addLocalMember(Entity e)
Add a local member to this population (kernel method) |
void |
addMember(EntityID e)
Add a member to this population |
EntityID |
getEntityID(int i)
return index of a given entity handle |
int |
getID()
Return unique population id |
int |
getIndex(EntityID eid)
return index of a given entity handle |
java.util.Vector |
getLocalMembers()
Add a local member to this population (kernel method) |
java.util.Vector |
getMemberList()
Return a list of all members |
int |
getNumEnts()
Return number of entities |
boolean |
isLeaf()
Return true if this is a leaf node |
boolean |
isMember(EntityID eid)
return whether a given entity is a member |
Methods inherited from class neosim.implementation.PopulationNodeImpl |
getName,
getParent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PopulationImpl(java.lang.String name, PopulationNode parent, int size)
Method Detail |
public int getID()
public int getNumEnts()
public int getIndex(EntityID eid)
eid
- handle of entitypublic EntityID getEntityID(int i)
i
- index in populationpublic boolean isMember(EntityID eid)
eid
- handle of entitypublic void addMember(EntityID e)
eid
- handle of entitypublic java.util.Vector getMemberList()
public boolean isLeaf()
public void addLocalMember(Entity e)
e
- entity to addpublic java.util.Vector getLocalMembers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |