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

Class Resource

source code

   object --+    
            |    
Lister.Lister --+
                |
               Resource

Models shared, limited capacity resources with queuing; FIFO is default queuing discipline.

Instance Methods [hide private]
 
__init__(self, capacity=1, name='a_resource', unitName='units', qType=<class 'SimPy.Lib.FIFO'>, preemptable=0, monitored=False, monitorType=<class 'SimPy.Recording.Monitor'>, sim=None)
monitorType={Monitor(default) | Tally}
source code
 
_request(self, arg)
Process request event for this resource
source code
 
_release(self, arg)
Process release request for this resource
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, capacity=1, name='a_resource', unitName='units', qType=<class 'SimPy.Lib.FIFO'>, preemptable=0, monitored=False, monitorType=<class 'SimPy.Recording.Monitor'>, sim=None)
(Constructor)

source code 

monitorType={Monitor(default) | Tally}

Overrides: object.__init__