|
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.
|
|
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.
|
|
startStepping()
Application function to start stepping through simulation.
|
|
stopStepping()
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(callback=<function <lambda> at 0x017B1630>,
until=0)
Schedules Processes/semi-coroutines until time 'until'
|
|
simulateStep(callback=<function <lambda> at 0x017B16B0>,
until=0)
Schedules Processes/semi-coroutines until next event
|
|
askCancel()
|
|
test_demo()
|
|
test_interrupt()
|
|
testSimEvents()
|
|
testwaituntil()
Demo of waitUntil capability.
|