The simulation world is the root for an entire simulation.
It provides terrain data, simulation time and event management.
| Method Summary |
| |
__init__(self)
|
| |
addProcessHandler(self,
procHandler)
Adds new proces shandler to world ensuring that it is unique. |
| |
decode(self,
data)
Applies encoded data to self. |
| |
encode(self)
Returns encoded representation of self. |
| |
getAgentContainingPoint(self,
x,
y)
Returns agent containing specified point. |
| |
getAgentGroup(self,
groupName)
Returns specified agent group. |
| |
getAgentGroups(self)
Returns list of agent groups. |
| |
getChanges(self)
Returns list of changes within simulation that have occurred during
the last update. |
| |
getCurrentTime(self)
Returns current simulation time in world. |
| |
getObjectContainingPoint(self,
x,
y)
Returns object containing specified point. |
| |
getObjectGroup(self,
groupName)
Returns specified object group. |
| |
getObjectGroups(self)
Returns list of object groups. |
| |
getTargetForAction(self,
targetID)
Tries to find agent or object, matching target ID. |
| |
reset(self)
Resets playback time to start. |
| |
setTerrain(self,
terrain)
Sets new terrain on world. |
| |
setup(self,
name,
clock,
schedule)
|
| |
startWorld(self,
timeStep)
Starts playback. |
| |
stopWorld(self)
Stops playback. |
| |
updateSchedule(self,
simTime)
Updates schedule. |
| |
updateWorld(self)
Updates world. |