Package svs_simulation :: Package world :: Module proxyworlds :: Class SimWorldProxy
[show private | hide private]
[frames | no frames]

Class SimWorldProxy


Provides a lightweight client-side representation of a simulation world.
Method Summary
  __init__(self)
  getAgentGroup(self, groupName)
Returns specified agent group.
  getAgentGroups(self)
Returns list of agent groups.
  getCurrentTime(self)
Returns current simulation time in world.
  getObjectGroup(self, groupName)
Returns specified object group.
  getObjectGroups(self)
Returns list of object groups.
  getPartitionDisplayInfo(self)
Resturns a string listing basic info about partitions.
  handleUpdateWorld(self, data)
Handles update data from world.
  reset(self)
Resets playback time to start.
  setupAgentGroup(self, groupData)
Handles received data for agent group.
  setupAgentGroups(self, groups)
Handles received list of agent groups.
  setupObjectGroup(self, groupData)
Handles received data for object group.
  setupObjectGroups(self, groups)
Handles received list of object groups.
  setupPartition(self, model)
Creates partition from received data.
  setupTerrain(self, model, lod)
Creates terrain from received data.
  setupWorld(self, worldData)
Sets up basic world properties, such as name and clock.
  startWorld(self, simTime)
Starts playback.
  stopWorld(self, simTime)
Stops playback.
  updateWorld(self, simTime)
Updates world.

Method Details

getAgentGroup(self, groupName)

Returns specified agent group.

getAgentGroups(self)

Returns list of agent groups.

getCurrentTime(self)

Returns current simulation time in world.

getObjectGroup(self, groupName)

Returns specified object group.

getObjectGroups(self)

Returns list of object groups.

getPartitionDisplayInfo(self)

Resturns a string listing basic info about partitions.

handleUpdateWorld(self, data)

Handles update data from world.

reset(self)

Resets playback time to start.

setupAgentGroup(self, groupData)

Handles received data for agent group.

setupAgentGroups(self, groups)

Handles received list of agent groups.

setupObjectGroup(self, groupData)

Handles received data for object group.

setupObjectGroups(self, groups)

Handles received list of object groups.

setupPartition(self, model)

Creates partition from received data.

setupTerrain(self, model, lod)

Creates terrain from received data.

setupWorld(self, worldData)

Sets up basic world properties, such as name and clock.

NOTE: clock data to be added later.

startWorld(self, simTime)

Starts playback. If time step is specified uses this instead of default value (time_const.DEFAULT_TIMESTEP).

stopWorld(self, simTime)

Stops playback.

updateWorld(self, simTime)

Updates world.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:25 2005 http://epydoc.sf.net