|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void |
addMember(EntityID eid)
Add a member to this population |
EntityID |
getEntityID(int index)
Returns entityID of a given index |
int |
getID()
Returns unique population id |
int |
getIndex(EntityID eid)
Returns index of a given entity ID |
java.util.Vector |
getMemberList()
Returns a list of all members |
int |
getNumEnts()
Returns number of entities |
boolean |
isMember(EntityID eid)
Returns whether a given entity is a member |
Methods inherited from interface neosim.iface.PopulationNode |
getName,
getParent,
isLeaf |
Method Detail |
public int getID()
public int getNumEnts()
public int getIndex(EntityID eid)
eid
- handle of entitypublic EntityID getEntityID(int index)
index
- index in populationpublic boolean isMember(EntityID eid)
eid
- handle of entitypublic java.util.Vector getMemberList()
public void addMember(EntityID eid)
eid
- handle of entity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |