Package svs_simulation :: Package events :: Module eventlib :: Class SimEventCentre
[show private | hide private]
[frames | no frames]

Class SimEventCentre

Listenable --+
             |
            SimEventCentre


This provides coordination between agents and events within the simulation.
Method Summary
  __init__(self)
  clearEvents(self, eventLabel)
Clears and returns events from queue that match specified label.
  getEvents(self, eventLabel, flush)
Returns events from queue that match specified label.
  postEvent(self, event)
Receives event to be sent on to listeners.
  updateWorld(self, simtime)
Updates event centre, passing on all recently received events to listeners.
    Inherited from Listenable
  addListener(self, listener, listenFor)
Adds new listener to avatar.
  handleListenRequest(self, listenRequest)
Deals with listen request from another client.
  notifyListeners(self, listenFor, dataPacket)
Forward data to listeners.
  removeListener(self, listener, listenFor)
Removes listener from avatar.

Method Details

clearEvents(self, eventLabel)

Clears and returns events from queue that match specified label.

getEvents(self, eventLabel, flush=False)

Returns events from queue that match specified label.

postEvent(self, event)

Receives event to be sent on to listeners.

updateWorld(self, simtime=None)

Updates event centre, passing on all recently received events to listeners.

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