| Home | Trees | Index | Help |
|---|
| Package SimPy :: Module Simulation :: Class Store |
|
object--+ |Lister--+ |Buffer--+ | Store
| Method Summary | |
|---|---|
__init__(self,
**pars)
| |
Adds buffer sorting to this instance of Store. | |
getnrBuffered(self)
| |
gettheBuffer(self)
| |
| Inherited from Lister | |
| |
| |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Property Summary | |
|---|---|
nrBuffered | |
theBuffer | |
| Class Variable Summary | |
|---|---|
| Inherited from Buffer | |
int |
priorityDefault = 0 |
| Inherited from Lister | |
int |
indent = 0 |
| Method Details |
|---|
addSort(self, sortFunc)
Adds buffer sorting to this instance of Store. It maintains
theBuffer sorted by the sortAttr attribute of the objects in the
buffer.
The user-provided 'sortFunc' must look like this:
def mySort(self,par):
tmplist=[(x.sortAttr,x) for x in par]
tmplist.sort()
return [x for (key,x) in tmplist]
|
| Property Details |
|---|
nrBuffered
|
theBuffer
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jun 14 14:32:40 2006 | http://epydoc.sf.net |