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

Class Process

source code

   object --+    
            |    
Lister.Lister --+
                |
               Process
Known Subclasses:

Superclass of classes which may use generator functions

Instance Methods [hide private]
 
__init__(self, name='a_process', sim=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_hold(self, a) source code
 
_passivate(self, a) source code
 
acquired(self, res)
Multi - functional test for reneging for 'request' and 'get': (1)If res of type Resource: Tests whether resource res was acquired when proces reactivated.
source code
 
active(self) source code
 
cancel(self, victim)
Application function to cancel all event notices for this Process instance;(should be all event notices for the _generator_).
source code
 
interrupt(self, victim)
Application function to interrupt active processes
source code
 
interruptReset(self)
Application function for an interrupt victim to get out of 'interrupted' state.
source code
 
interrupted(self) source code
 
passive(self) source code
 
queuing(self, resource) source code
 
start(self, pem=None, at='undefined', delay='undefined', prior=False)
Activates PEM of this Process.
source code
 
stored(self, buffer)
Test for reneging for 'yield put .
source code
 
terminated(self) source code

Inherited from Lister.Lister: __repr__, __str__, attrnames

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from Lister.Lister: indent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name='a_process', sim=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

acquired(self, res)

source code 
Multi - functional test for reneging for 'request' and 'get':
(1)If res of type Resource:
    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).
(2)If res of type Store:
    Tests whether item(s) gotten from Store res.
    If yes, the parallel wakeup process is killed.
    If no, process is removed from res.getQ
(3)If res of type Level:
    Tests whether units gotten from Level res.
    If yes, the parallel wakeup process is killed.
    If no, process is removed from res.getQ.

start(self, pem=None, at='undefined', delay='undefined', prior=False)

source code 
Activates PEM of this Process.
p.start(p.pemname([args])[,{at = t | delay = period}][, prior = False]) or
p.start([p.ACTIONS()][,{at = t | delay = period}][, prior = False]) (ACTIONS
        parameter optional)

stored(self, buffer)

source code 

Test for reneging for 'yield put . . .' compound statement (Level and Store. Returns True if not reneged. If self not in buffer.putQ, kill wakeup process, else take self out of buffer.putQ (reneged)