Package SimPy :: Module SimulationStep :: Class PriorityQ

[hide private]
[frames] | no frames]

# Class PriorityQ

source code

    object --+
             |
          list --+
                 |
             Queue --+
                     |
                  FIFO --+
                         |
                        PriorityQ

Queue is always ordered according to priority. Higher value of priority attribute == higher priority.

Instance Methods | [hide private]

`` | __init__(self, res, moni)
`` | enter(self, obj) Handles request queue for Resource
`` | enterGet(self, obj) Handles getQ in Buffer
`` | enterPut(self, obj) Handles putQ in Buffer

Inherited from `FIFO`: `leave`

Inherited from `Queue`: `takeout`

Inherited from `list`: `__add__`, `__contains__`, `__delitem__`, `__delslice__`, `__eq__`, `__ge__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__gt__`, `__hash__`, `__iadd__`, `__imul__`, `__iter__`, `__le__`, `__len__`, `__lt__`, `__mul__`, `__ne__`, `__new__`, `__repr__`, `__rmul__`, `__setitem__`, `__setslice__`, `append`, `count`, `extend`, `index`, `insert`, `pop`, `remove`, `reverse`, `sort`

Inherited from `object`: `__delattr__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__str__`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, res, moni)
(Constructor)

source code

None

  Overrides: FIFO.__init__

### enter(self, obj)

source code

Handles request queue for Resource

  Overrides: FIFO.enter

### enterGet(self, obj)

source code

Handles getQ in Buffer

  Overrides: FIFO.enterGet

### enterPut(self, obj)

source code

Handles putQ in Buffer

  Overrides: FIFO.enterPut