SimPy.SimulationTrace.Resource

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

## Type Resource

    object --+
             |
        Lister --+
                 |
                Resource

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

Method Summary
| ``__init__`(self, capacity, name, unitName, qType, preemptable, monitored, monitorType)` monitorType={Monitor(default)|Tally}
| ``_release`(self, arg)` Process release request for this resource
| ``_request`(self, arg)` Process request event for this resource
Inherited from Lister
| ``__repr__`(self)`
| ``__str__`(self)`
| ``attrnames`(self)`
Inherited from object
| ``__delattr__`(...)` x.__delattr__('name') <==> del x.name
| ``__getattribute__`(...)` x.__getattribute__('name') <==> x.name
| ``__hash__`(x)` x.__hash__() <==> hash(x)
| ``__new__`(T, S, ...)` T.__new__(S, ...) -> a new object with type S, a subtype of T
| ``__reduce__`(...)` helper for pickle
| ``__reduce_ex__`(...)` helper for pickle
| ``__setattr__`(...)` x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
Inherited from Lister
`int` | `indent` = 0

Method Details

### __init__(self, capacity=1, name='a_resource', unitName='units', qType=<class 'SimPy.SimulationTrace.FIFO'>, preemptable=0, monitored=0, monitorType=<class 'SimPy.SimulationTrace.Monitor'>) (Constructor) monitorType={Monitor(default)|Tally} Overrides: `__builtin__.object.__init__`

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

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

Generated by Epydoc 2.1 on Wed Jun 14 14:32:42 2006 | http://epydoc.sf.net