Home | Trees | Indices | Help |
---|
|
|
|||
| Simerror | ||
| FatalSimerror | ||
|
Process Superclass of classes which may use generator functions |
||
|
__Evlist Defines event list and operations on it |
||
|
_Action Structure (who=process owner, generator=process) |
||
|
Histogram A histogram gathering and sampling class |
||
|
Monitor Monitored variables |
||
| Tally | ||
| Queue | ||
| FIFO | ||
|
PriorityQ Queue is always ordered according to priority. |
||
|
Resource Models shared, limited capacity resources with queuing; FIFO is default queuing discipline. |
||
|
Buffer Abstract class for buffers Blocks a process when a put would cause buffer overflow or a get would cause buffer underflow. |
||
|
Level Models buffers for processes putting/getting un-distinguishable items. |
||
|
Store Models buffers for processes coupled by putting/getting distinguishable items. |
||
|
SimEvent Supports one-shot signalling between processes. |
|
|||
| rtnow() | ||
|
rtset(rel_speed=1) resets the the ratio simulation time over clock time(seconds). |
||
| initialize() | ||
| now() | ||
|
stopSimulation() Application function to stop simulation run |
||
|
_startWUStepping() Application function to start stepping through simulation for waituntil construct. |
||
|
_stopWUStepping() Application function to stop stepping through simulation. |
||
|
allEventNotices() Returns string with eventlist as t1: [procname,procname2] t2: [procname4,procname5, . |
||
|
allEventTimes() Returns list of all times for which events are scheduled. |
||
|
activate(object,
process,
at="undefined",
delay="undefined",
prior=False) Application function to activate passive process. |
||
|
reactivate(obj,
at="undefined",
delay="undefined",
prior=False) Application function to reactivate a process which is active, suspended or passive. |
||
|
startCollection(when=0.0,
monitors=None,
tallies=None) Starts data collection of all designated Monitor and Tally objects (default=all) at time 'when'. |
||
|
_test() Gets called by simulate after every event, as long as there are processes waiting in condQ for a condition to be satisfied. |
||
| _waitUntilFunc(proc, cond) | ||
|
scheduler(till=0) Schedules Processes/semi-coroutines until time 'till'. |
||
| holdfunc(a) | ||
|
requestfunc(a) Handles 'yield request,self,res' and 'yield (request,self,res),(<code>,self,par)'. |
||
| releasefunc(a) | ||
| passivatefunc(a) | ||
| waitevfunc(a) | ||
| queueevfunc(a) | ||
| waituntilfunc(par) | ||
|
getfunc(a) Handles 'yield get,self,buffer,what,priority' and 'yield (get,self,buffer,what,priority),(<code>,self,par)'. |
||
|
putfunc(a) Handles 'yield put' (simple and compound hold/waitevent) |
||
|
simulate(until=0,
real_time=False,
rel_speed=1) Schedules Processes/semi-coroutines until time 'until' |
||
| test_demo() | ||
| test_interrupt() | ||
| testSimEvents() | ||
|
testwaituntil() Demo of waitUntil capability. |
|
|||
|
__TESTING = False
|
||
|
__version__ = '1.8 $Revision: 1.1.1.24 $ $Date: 2007/01/18 14:43:3...
|
||
|
version = '1.8 $Revision: 1.1.1.24 $ $Date: 2007/01/18 14:43:3...
|
||
|
hold = 1
|
||
|
passivate = 2
|
||
|
request = 3
|
||
|
release = 4
|
||
|
waitevent = 5
|
||
|
queueevent = 6
|
||
|
waituntil = 7
|
||
|
get = 8
|
||
|
put = 9
|
||
|
_endtime = 0
|
||
|
_t = 0
|
||
|
_e = None
|
||
|
_stop = True
|
||
|
_wustep = False
|
||
|
True = 1
|
||
|
False = 0
|
||
|
condQ = []
|
||
|
allMonitors = []
|
||
|
allTallies = []
|
||
|
wallclock = <built-in function clock>
|
||
|
rtstart = 7.4719134915489848e-007
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Demo of waitUntil capability. Scenario: Three workers require sets of tools to do their jobs. Tools are shared, scarce resources for which they compete. |
|
__TESTINGNone
|
__version__None
|
versionNone
|
holdNone
|
passivateNone
|
requestNone
|
releaseNone
|
waiteventNone
|
queueeventNone
|
waituntilNone
|
getNone
|
putNone
|
_endtimeNone
|
_tNone
|
_eNone
|
_stopNone
|
_wustepNone
|
TrueNone
|
FalseNone
|
condQNone
|
allMonitorsNone
|
allTalliesNone
|
wallclockNone
|
rtstartNone
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Wed Jan 31 11:14:53 2007 | http://epydoc.sourceforge.net |