Package SimPy :: Module SimulationRT :: 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}
  averageQueueLength(self)
Returns average length of wait queue of Resource instance until time now() if monitored, else None
  utilization(self)
Returns utilization of Resource instance until time now() if monitored, else None.
  _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.SimulationRT.FIFO'>, preemptable=0, monitored=0, monitorType=<class 'SimPy.SimulationRT.Monitor'>)
(Constructor)

monitorType={Monitor(default)|Tally}
Overrides:
__builtin__.object.__init__

averageQueueLength(self)

Returns average length of wait queue of Resource instance until time now() if monitored, else None

utilization(self)

Returns utilization of Resource instance until time now() if monitored, else None.

_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 Nov 16 12:02:49 2005 http://epydoc.sf.net