Package SimPy :: Module Lib :: Class Process

[hide private]
[frames] | no frames]

# Class Process

source code

       object --+
                |
    Lister.Lister --+
                    |
                   Process

Known Subclasses:
  - testSimPyStepOO.Consumer
  - , testSimPyStepOO.ConsumerPrincL
  - , testSimPyStepOO.ConsumerPrincS
  - , testSimPyStepOO.ConsumerWidget
  - , testSimPyStepOO.FilterConsumer
  - , testSimPyStepOO.FireEvent
  - , testSimPyStepOO.Interrupted
  - , testSimPyStepOO.Interruptor
  - , testSimPyStepOO.Job
  - , testSimPyStepOO.JobEvt
  - , testSimPyStepOO.JobEvtMulti
  - , testSimPyStepOO.JobTO
  - , testSimPyStepOO.JobTO_P
  - , testSimPyStepOO.Observer1
  - , testSimPyStepOO.Observer2
  - , testSimPyStepOO.P
  - , testSimPyStepOO.PActions
  - , testSimPyStepOO.PS1
  - , testSimPyStepOO.PS2
  - , testSimPyStepOO.Producer
  - , testSimPyStepOO.ProducerPrincL
  - , testSimPyStepOO.ProducerPrincS
  - , testSimPyStepOO.ProducerWidget
  - , testSimPyStepOO.QueueProcess
  - , testSimPyStepOO.QueueProcessOR
  - , testSimPyStepOO.QueueProcessOR1
  - , testSimPyStepOO.SignalProcess
  - , testSimPyStepOO.SignalProcessOR
  - , testSimPyStepOO.Signaller
  - , testSimPyStepOO.TBE
  - , testSimPyStepOO.TBELev
  - , testSimPyStepOO.TBELevPut
  - , testSimPyStepOO.TBEput
  - , testSimPyStepOO.TBEtrigger
  - , testSimPyStepOO.TBEtriggerLev
  - , testSimPyStepOO.TBEtriggerLevPut
  - , testSimPyStepOO.TBEtriggerPut
  - , testSimPyStepOO.TBT
  - , testSimPyStepOO.TBTLev
  - , testSimPyStepOO.TBTLevPut
  - , testSimPyStepOO.TBTput
  - , testSimPyStepOO.WaitProcess
  - , testSimPyStepOO.WaitProcessOR
  - , testSimPyStepOO.WaitProcessOR1
  - , testSimPyStepOO.Waiter
  - , testSimPy.Consumer
  - , testSimPy.ConsumerPrincL
  - , testSimPy.ConsumerPrincS
  - , testSimPy.ConsumerWidget
  - , testSimPy.FilterConsumer
  - , testSimPy.FireEvent
  - , testSimPy.Interrupted
  - , testSimPy.Interruptor
  - , testSimPy.Job
  - , testSimPy.JobEvt
  - , testSimPy.JobEvtMulti
  - , testSimPy.JobTO
  - , testSimPy.JobTO_P
  - , testSimPy.Observer1
  - , testSimPy.Observer2
  - , testSimPy.P
  - , testSimPy.PActions
  - , testSimPy.PS1
  - , testSimPy.PS2
  - , testSimPy.Producer
  - , testSimPy.ProducerPrincL
  - , testSimPy.ProducerPrincS
  - , testSimPy.ProducerWidget
  - , testSimPy.QueueProcess
  - , testSimPy.QueueProcessOR
  - , testSimPy.QueueProcessOR1
  - , testSimPy.SignalProcess
  - , testSimPy.SignalProcessOR
  - , testSimPy.Signaller
  - , testSimPy.TBE
  - , testSimPy.TBELev
  - , testSimPy.TBELevPut
  - , testSimPy.TBEput
  - , testSimPy.TBEtrigger
  - , testSimPy.TBEtriggerLev
  - , testSimPy.TBEtriggerLevPut
  - , testSimPy.TBEtriggerPut
  - , testSimPy.TBT
  - , testSimPy.TBTLev
  - , testSimPy.TBTLevPut
  - , testSimPy.TBTput
  - , testSimPy.WaitProcess
  - , testSimPy.WaitProcessOR
  - , testSimPy.WaitProcessOR1
  - , testSimPy.Waiter
  - , testRT_Behavior.Ticker
  - , testSimPyRT.Consumer
  - , testSimPyRT.ConsumerPrincL
  - , testSimPyRT.ConsumerPrincS
  - , testSimPyRT.ConsumerWidget
  - , testSimPyRT.FilterConsumer
  - , testSimPyRT.FireEvent
  - , testSimPyRT.Interrupted
  - , testSimPyRT.Interruptor
  - , testSimPyRT.Job
  - , testSimPyRT.JobEvt
  - , testSimPyRT.JobEvtMulti
  - , testSimPyRT.JobTO
  - , testSimPyRT.JobTO_P
  - , testSimPyRT.Observer1
  - , testSimPyRT.Observer2
  - , testSimPyRT.P
  - , testSimPyRT.PActions
  - , testSimPyRT.PS1
  - , testSimPyRT.PS2
  - , testSimPyRT.Producer
  - , testSimPyRT.ProducerPrincL
  - , testSimPyRT.ProducerPrincS
  - , testSimPyRT.ProducerWidget
  - , testSimPyRT.QueueProcess
  - , testSimPyRT.QueueProcessOR
  - , testSimPyRT.QueueProcessOR1
  - , testSimPyRT.SignalProcess
  - , testSimPyRT.SignalProcessOR
  - , testSimPyRT.Signaller
  - , testSimPyRT.TBE
  - , testSimPyRT.TBELev
  - , testSimPyRT.TBELevPut
  - , testSimPyRT.TBEput
  - , testSimPyRT.TBEtrigger
  - , testSimPyRT.TBEtriggerLev
  - , testSimPyRT.TBEtriggerLevPut
  - , testSimPyRT.TBEtriggerPut
  - , testSimPyRT.TBT
  - , testSimPyRT.TBTLev
  - , testSimPyRT.TBTLevPut
  - , testSimPyRT.TBTput
  - , testSimPyRT.WaitProcess
  - , testSimPyRT.WaitProcessOR
  - , testSimPyRT.WaitProcessOR1
  - , testSimPyRT.Waiter
  - , testSimPyOO.Consumer
  - , testSimPyOO.ConsumerPrincL
  - , testSimPyOO.ConsumerPrincS
  - , testSimPyOO.ConsumerWidget
  - , testSimPyOO.FilterConsumer
  - , testSimPyOO.FireEvent
  - , testSimPyOO.Interrupted
  - , testSimPyOO.Interruptor
  - , testSimPyOO.Job
  - , testSimPyOO.JobEvt
  - , testSimPyOO.JobEvtMulti
  - , testSimPyOO.JobTO
  - , testSimPyOO.JobTO_P
  - , testSimPyOO.Observer1
  - , testSimPyOO.Observer2
  - , testSimPyOO.P
  - , testSimPyOO.PActions
  - , testSimPyOO.PS1
  - , testSimPyOO.PS2
  - , testSimPyOO.Producer
  - , testSimPyOO.ProducerPrincL
  - , testSimPyOO.ProducerPrincS
  - , testSimPyOO.ProducerWidget
  - , testSimPyOO.QueueProcess
  - , testSimPyOO.QueueProcessOR
  - , testSimPyOO.QueueProcessOR1
  - , testSimPyOO.SignalProcess
  - , testSimPyOO.SignalProcessOR
  - , testSimPyOO.Signaller
  - , testSimPyOO.TBE
  - , testSimPyOO.TBELev
  - , testSimPyOO.TBELevPut
  - , testSimPyOO.TBEput
  - , testSimPyOO.TBEtrigger
  - , testSimPyOO.TBEtriggerLev
  - , testSimPyOO.TBEtriggerLevPut
  - , testSimPyOO.TBEtriggerPut
  - , testSimPyOO.TBT
  - , testSimPyOO.TBTLev
  - , testSimPyOO.TBTLevPut
  - , testSimPyOO.TBTput
  - , testSimPyOO.WaitProcess
  - , testSimPyOO.WaitProcessOR
  - , testSimPyOO.WaitProcessOR1
  - , testSimPyOO.Waiter
  - , testRT_Behavior_OO.Ticker
  - , MonitorTest.Actor
  - , MonitorTest.Thing
  - , testSimPyStep.Consumer
  - , testSimPyStep.ConsumerPrincL
  - , testSimPyStep.ConsumerPrincS
  - , testSimPyStep.ConsumerWidget
  - , testSimPyStep.FilterConsumer
  - , testSimPyStep.FireEvent
  - , testSimPyStep.Interrupted
  - , testSimPyStep.Interruptor
  - , testSimPyStep.Job
  - , testSimPyStep.JobEvt
  - , testSimPyStep.JobEvtMulti
  - , testSimPyStep.JobTO
  - , testSimPyStep.JobTO_P
  - , testSimPyStep.Observer1
  - , testSimPyStep.Observer2
  - , testSimPyStep.P
  - , testSimPyStep.PActions
  - , testSimPyStep.PS1
  - , testSimPyStep.PS2
  - , testSimPyStep.Producer
  - , testSimPyStep.ProducerPrincL
  - , testSimPyStep.ProducerPrincS
  - , testSimPyStep.ProducerWidget
  - , testSimPyStep.QueueProcess
  - , testSimPyStep.QueueProcessOR
  - , testSimPyStep.QueueProcessOR1
  - , testSimPyStep.SignalProcess
  - , testSimPyStep.SignalProcessOR
  - , testSimPyStep.Signaller
  - , testSimPyStep.TBE
  - , testSimPyStep.TBELev
  - , testSimPyStep.TBELevPut
  - , testSimPyStep.TBEput
  - , testSimPyStep.TBEtrigger
  - , testSimPyStep.TBEtriggerLev
  - , testSimPyStep.TBEtriggerLevPut
  - , testSimPyStep.TBEtriggerPut
  - , testSimPyStep.TBT
  - , testSimPyStep.TBTLev
  - , testSimPyStep.TBTLevPut
  - , testSimPyStep.TBTput
  - , testSimPyStep.WaitProcess
  - , testSimPyStep.WaitProcessOR
  - , testSimPyStep.WaitProcessOR1
  - , testSimPyStep.Waiter
  - , testSimPyTraceOO.Consumer
  - , testSimPyTraceOO.ConsumerPrincL
  - , testSimPyTraceOO.ConsumerPrincS
  - , testSimPyTraceOO.ConsumerWidget
  - , testSimPyTraceOO.FilterConsumer
  - , testSimPyTraceOO.FireEvent
  - , testSimPyTraceOO.Interrupted
  - , testSimPyTraceOO.Interruptor
  - , testSimPyTraceOO.Job
  - , testSimPyTraceOO.JobEvt
  - , testSimPyTraceOO.JobEvtMulti
  - , testSimPyTraceOO.JobTO
  - , testSimPyTraceOO.JobTO_P
  - , testSimPyTraceOO.Observer1
  - , testSimPyTraceOO.Observer2
  - , testSimPyTraceOO.P
  - , testSimPyTraceOO.PActions
  - , testSimPyTraceOO.PS1
  - , testSimPyTraceOO.PS2
  - , testSimPyTraceOO.Producer
  - , testSimPyTraceOO.ProducerPrincL
  - , testSimPyTraceOO.ProducerPrincS
  - , testSimPyTraceOO.ProducerWidget
  - , testSimPyTraceOO.QueueProcess
  - , testSimPyTraceOO.QueueProcessOR
  - , testSimPyTraceOO.QueueProcessOR1
  - , testSimPyTraceOO.SignalProcess
  - , testSimPyTraceOO.SignalProcessOR
  - , testSimPyTraceOO.Signaller
  - , testSimPyTraceOO.TBE
  - , testSimPyTraceOO.TBELev
  - , testSimPyTraceOO.TBELevPut
  - , testSimPyTraceOO.TBEput
  - , testSimPyTraceOO.TBEtrigger
  - , testSimPyTraceOO.TBEtriggerLev
  - , testSimPyTraceOO.TBEtriggerLevPut
  - , testSimPyTraceOO.TBEtriggerPut
  - , testSimPyTraceOO.TBT
  - , testSimPyTraceOO.TBTLev
  - , testSimPyTraceOO.TBTLevPut
  - , testSimPyTraceOO.TBTput
  - , testSimPyTraceOO.WaitProcess
  - , testSimPyTraceOO.WaitProcessOR
  - , testSimPyTraceOO.WaitProcessOR1
  - , testSimPyTraceOO.Waiter
  - , testSimPyTrace.Consumer
  - , testSimPyTrace.ConsumerPrincL
  - , testSimPyTrace.ConsumerPrincS
  - , testSimPyTrace.ConsumerWidget
  - , testSimPyTrace.FilterConsumer
  - , testSimPyTrace.FireEvent
  - , testSimPyTrace.Interrupted
  - , testSimPyTrace.Interruptor
  - , testSimPyTrace.Job
  - , testSimPyTrace.JobEvt
  - , testSimPyTrace.JobEvtMulti
  - , testSimPyTrace.JobTO
  - , testSimPyTrace.JobTO_P
  - , testSimPyTrace.Observer1
  - , testSimPyTrace.Observer2
  - , testSimPyTrace.P
  - , testSimPyTrace.PActions
  - , testSimPyTrace.PS1
  - , testSimPyTrace.PS2
  - , testSimPyTrace.Producer
  - , testSimPyTrace.ProducerPrincL
  - , testSimPyTrace.ProducerPrincS
  - , testSimPyTrace.ProducerWidget
  - , testSimPyTrace.QueueProcess
  - , testSimPyTrace.QueueProcessOR
  - , testSimPyTrace.QueueProcessOR1
  - , testSimPyTrace.SignalProcess
  - , testSimPyTrace.SignalProcessOR
  - , testSimPyTrace.Signaller
  - , testSimPyTrace.TBE
  - , testSimPyTrace.TBELev
  - , testSimPyTrace.TBELevPut
  - , testSimPyTrace.TBEput
  - , testSimPyTrace.TBEtrigger
  - , testSimPyTrace.TBEtriggerLev
  - , testSimPyTrace.TBEtriggerLevPut
  - , testSimPyTrace.TBEtriggerPut
  - , testSimPyTrace.TBT
  - , testSimPyTrace.TBTLev
  - , testSimPyTrace.TBTLevPut
  - , testSimPyTrace.TBTput
  - , testSimPyTrace.WaitProcess
  - , testSimPyTrace.WaitProcessOR
  - , testSimPyTrace.WaitProcessOR1
  - , testSimPyTrace.Waiter
  - , testSimPyRTOO.Consumer
  - , testSimPyRTOO.ConsumerPrincL
  - , testSimPyRTOO.ConsumerPrincS
  - , testSimPyRTOO.ConsumerWidget
  - , testSimPyRTOO.FilterConsumer
  - , testSimPyRTOO.FireEvent
  - , testSimPyRTOO.Interrupted
  - , testSimPyRTOO.Interruptor
  - , testSimPyRTOO.Job
  - , testSimPyRTOO.JobEvt
  - , testSimPyRTOO.JobEvtMulti
  - , testSimPyRTOO.JobTO
  - , testSimPyRTOO.JobTO_P
  - , testSimPyRTOO.Observer1
  - , testSimPyRTOO.Observer2
  - , testSimPyRTOO.P
  - , testSimPyRTOO.PActions
  - , testSimPyRTOO.PS1
  - , testSimPyRTOO.PS2
  - , testSimPyRTOO.Producer
  - , testSimPyRTOO.ProducerPrincL
  - , testSimPyRTOO.ProducerPrincS
  - , testSimPyRTOO.ProducerWidget
  - , testSimPyRTOO.QueueProcess
  - , testSimPyRTOO.QueueProcessOR
  - , testSimPyRTOO.QueueProcessOR1
  - , testSimPyRTOO.SignalProcess
  - , testSimPyRTOO.SignalProcessOR
  - , testSimPyRTOO.Signaller
  - , testSimPyRTOO.TBE
  - , testSimPyRTOO.TBELev
  - , testSimPyRTOO.TBELevPut
  - , testSimPyRTOO.TBEput
  - , testSimPyRTOO.TBEtrigger
  - , testSimPyRTOO.TBEtriggerLev
  - , testSimPyRTOO.TBEtriggerLevPut
  - , testSimPyRTOO.TBEtriggerPut
  - , testSimPyRTOO.TBT
  - , testSimPyRTOO.TBTLev
  - , testSimPyRTOO.TBTLevPut
  - , testSimPyRTOO.TBTput
  - , testSimPyRTOO.WaitProcess
  - , testSimPyRTOO.WaitProcessOR
  - , testSimPyRTOO.WaitProcessOR1
  - , testSimPyRTOO.Waiter

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)