Package svs_simulation :: Package world :: Module processes :: Class ProcessHandler
[show private | hide private]
[frames | no frames]

Class ProcessHandler

Known Subclasses:
ProcessHandlerProxy, StandaloneProcessHandler

Provides generic support for handling update and event messaging processed within the simulation.
Method Summary
  __init__(self)
  addComponent(self, component)
Adds new component to process making sure that it is not already present.
  addToWorld(self, world)
Called when added to simulation world.
  decode(self, data)
Applies encoded data to self.
  encode(self)
Returns encoded representation of self.
  getChanges(self)
Return changes that have occurred during last update.
  notifyOfEvents(self, events)
Forwards event messages.
  postEvent(self, event)
Receives change event from component.
  setup(self, name)
  startWorld(self, simTime)
Forwards start call from world.
  stopWorld(self, simTime)
Forwards stop call from world.
  updateWorld(self, simTime)
Forwards update call from world.

Method Details

addComponent(self, component)

Adds new component to process making sure that it is not already present.

addToWorld(self, world)

Called when added to simulation world.

This should be overridden by extending classes to setup components for processing.

decode(self, data)

Applies encoded data to self.

encode(self)

Returns encoded representation of self.

@rtype:dict

getChanges(self)

Return changes that have occurred during last update.

notifyOfEvents(self, events)

Forwards event messages.

postEvent(self, event)

Receives change event from component.

startWorld(self, simTime)

Forwards start call from world.

stopWorld(self, simTime)

Forwards stop call from world.

updateWorld(self, simTime)

Forwards update call from world.

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