Package SimPy :: Module Simulation :: 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.Simulation.FIFO'>, preemptable=0, monitored=False, monitorType=<class 'SimPy.Simulation.Monitor'>) monitorType={Monitor(default)|Tally}
`` | _request(self, arg) Process request event for this resource
`` | _release(self, arg) Process release request for this resource
Inherited from `Lister.Lister`: `__repr__`, `__str__`, `attrnames` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

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.Simulation.FIFO'>, preemptable=0, monitored=False, monitorType=<class 'SimPy.Simulation.Monitor'>) (Constructor) | source code
monitorType={Monitor(default)|Tally} Overrides: object.__init__

### _request(self, arg) | source code
Process request event for this resource

### _release(self, arg) | source code
Process release request for this resource