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

Type Process

object --+    
         |    
    Lister --+
             |
            Process

Known Subclasses:
FireEvent, FireEvent, FireEvent, Interrupted, Interrupted, Interruptor, Interruptor, Job, Job, JobEvt, JobEvt, JobEvt, JobEvtMulti, JobEvtMulti, JobEvtMulti, JobTO, JobTO, JobTO, JobTO_P, JobTO_P, Observer1, Observer1, Observer2, Observer2, P, P, PS1, PS1, PS2, PS2, QueueProcess, QueueProcess, QueueProcessOR, QueueProcessOR, QueueProcessOR1, QueueProcessOR1, Signaller, Signaller, SignalProcess, SignalProcess, SignalProcessOR, SignalProcessOR, Thing, Waiter, Waiter, WaitProcess, WaitProcess, WaitProcessOR, WaitProcessOR, WaitProcessOR1, WaitProcessOR1

Superclass of classes which may use generator functions
Method Summary
  __init__(self, name)
  acquired(self, res)
Tests whether resource res was acquired when proces reactivated.
  active(self)
  cancel(self, victim)
Application function to cancel all event notices for this Process instance;(should be all event notices for the _generator_).
  interrupt(self, victim)
Application function to interrupt active processes
  interrupted(self)
  interruptReset(self)
Application function for an interrupt victim to get out of 'interrupted' state.
  passive(self)
  queuing(self, resource)
  terminated(self)
    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

acquired(self, res)

Tests whether resource res was acquired when proces reactivated. If yes, the parallel wakeup process is killed. If not, process is removed from res' waitQ (reneging).

cancel(self, victim)

Application function to cancel all event notices for this Process instance;(should be all event notices for the _generator_).

interrupt(self, victim)

Application function to interrupt active processes

interruptReset(self)

Application function for an interrupt victim to get out of 'interrupted' state.

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