Package SimPy :: Module Simulation :: Class SimEvent
[show private | hide private]
[frames | no frames]

Type SimEvent

object --+    
         |    
    Lister --+
             |
            SimEvent


Supports one-shot signalling between processes. All processes waiting for an event to occur get activated when its occurrence is signalled. From the processes queuing for an event, only the first gets activated.
Method Summary
  __init__(self, name)
  signal(self, param)
Produces a signal to self; Fires this event (makes it occur).
  _queue(self, par)
Consumes a signal if it has occurred, otherwise process 'proc' queues for this event.
  _queueOR(self, par)
Handles queueing for an OR of events in a tuple/list.
  _wait(self, par)
Consumes a signal if it has occurred, otherwise process 'proc' waits for this event.
  _waitOR(self, par)
Handles waiting for an OR of events in a tuple/list.
    Inherited from Lister
  __repr__(self)
  __str__(self)
  attrnames(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
    Inherited from Lister
int indent = 0                                                                     

Method Details

signal(self, param=None)

Produces a signal to self; Fires this event (makes it occur). Reactivates ALL processes waiting for this event. (Cleanup waits lists of other events if wait was for an event-group (OR).) Reactivates the first process for which all events they are queuing for have fired. (Cleanup queues of other events if wait was for an event-group (OR).)

_queue(self, par)

Consumes a signal if it has occurred, otherwise process 'proc' queues for this event.

_queueOR(self, par)

Handles queueing for an OR of events in a tuple/list.

_wait(self, par)

Consumes a signal if it has occurred, otherwise process 'proc' waits for this event.

_waitOR(self, par)

Handles waiting for an OR of events in a tuple/list.

Generated by Epydoc 2.1 on Thu Jun 09 16:09:45 2005 http://epydoc.sf.net