|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Mutable
A one-dimensional, fixed-size, collection of agents providing services described for space.
| Method Summary | |
|---|---|
void |
clear()
Removes all agents from the space. |
void |
deleteSweep()
Walks through each agent, deleting it if it has been marked for deletion. |
boolean |
isDeleteSweepNeeded()
Is a delete sweep needed for this space?. |
Location |
newLocation()
Creates a new agent in the space by cloning the prototype agent, adding it to an arbitrary place (usually the 'end'), and initializing it. |
Location |
newLocation(boolean randomLocation)
Creates a new agent in this list by cloning the prototype agent, adding it to a random or arbitrary (usually the 'end') place in the list, and initializing it. |
boolean |
remove(java.lang.Object o)
Removes the supplied object (agent) from this list. |
| Method Detail |
|---|
boolean isDeleteSweepNeeded()
void deleteSweep()
boolean remove(java.lang.Object o)
o - the agent to be removed
Location newLocation()
Location newLocation(boolean randomLocation)
randomLocation - should the agent be placed in a random location, or in an
arbitrary location?
void clear()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||