Table of Contents

Class: SimEvent .\simpy1_5\SimPy\Simulation.py

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.

Base Classes   
Lister
Methods   
__init__
_queue
_queueOR
_wait
_waitOR
signal
  __init__ 
__init__ ( self,  name="a_SimEvent" )

  _queue 
_queue ( self,  par )

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

  _queueOR 
_queueOR ( self,  par )

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

  _wait 
_wait ( self,  par )

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

  _waitOR 
_waitOR ( self,  par )

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

  signal 
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).)


Table of Contents

This document was automatically generated on Tue Dec 07 19:52:27 2004 by HappyDoc version 2.1