Package mosp_examples :: Module passivate_wiggler :: Class Alarm
[hide private]
[frames] | no frames]

Class Alarm

source code


Alarm process stores passivated users and reactivates if overcrowded.

Stores passivated people in passive_persons. If more than a quarter of all people are passivated, all people get reactivated.


Author: B. Henne

Instance Methods [hide private]
 
__init__(self, name, sim)
Inits the Alarm process.
source code
 
go(self)
For every 10th tick: If more than a quarter of all people are passivated, all people get reactivated.
source code

Inherited from SimPy.Lib.Process: acquired, active, cancel, interrupt, interruptReset, interrupted, passive, queuing, start, stored, terminated

Inherited from SimPy.Lib.Process (private): _hold, _passivate

Inherited from SimPy.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 SimPy.Lister.Lister: indent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, sim)
(Constructor)

source code 

Inits the Alarm process.

Overrides: object.__init__