|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.comp.ForkManager
|
+--drcl.comp.ACARuntime
|
+--drcl.sim.event.SESimulator
A sequential event simulation engine (XXX: still work-in-progress).
SEWorkerThread, Serialized Form| Field Summary | |
protected long |
ltime
|
protected FIFOQueue |
qReady
Used to store tasks. |
protected Queue |
qWaiting
|
protected long |
startTime
|
protected double |
time
|
| Fields inherited from class drcl.comp.ACARuntime |
debug, DEFAULT_RUNTIME, logenabled, name, resetting, state, State_INACTIVE, State_RUNNING, State_SUSPENDED, tf, timeScale, timeScaleReciprocal, tr, vStateListener |
| Fields inherited from class drcl.comp.ForkManager |
parent, runtime |
| Constructor Summary | |
SESimulator()
|
|
SESimulator(java.lang.String name_)
|
|
| Method Summary | |
void |
___PROFILE___()
|
protected double |
_getEventRate(long numArrivals_)
|
protected double |
_getTime()
Asynchronized version of getTime(), for diagnosis. |
protected void |
_stop(boolean block_)
|
java.lang.String |
a_info(boolean listWaitingTasks_)
Asynchronous version of ACARuntime.diag(). |
void |
forceReset()
Forces to reset this runtime. |
java.lang.Object |
getEventQueue()
|
double |
getEventRate()
Returns the event processing rate of this runtime. |
SEThread |
getMainThread()
|
long |
getNumberOfArrivalEvents()
Returns the number of arrival events. |
long |
getWallTimeElapsed()
Returns the actual time (in ms) for which this runtime has participated. |
java.lang.String |
info()
Returns general information of this runtime. |
protected void |
newTask(Task task_,
WorkerThread currentThread_)
The only way to trigger new tasks to be executed. |
protected void |
off(ACATimer handle_)
Cancels a fork event. |
void |
println(java.lang.String msg_)
|
void |
reset()
The workerpool enters a transitional period when reset() is issued. |
void |
resume()
Resumes the system. |
java.lang.String |
s_info()
|
protected void |
setState(java.lang.String new_)
|
java.lang.String |
ss_info()
Synchronized version of s_info(). |
java.lang.String |
t_info()
|
protected java.lang.String |
t_info(java.lang.String prefix_)
|
java.lang.String |
tasks()
Returns information of the task queue. |
| Methods inherited from class drcl.comp.ACARuntime |
_openlog, a_info, addDebugLevel, addRunnable, addRunnable, addRunnableAt, addRunnableAt, addStateListener, childManager, containsDebugLevel, debug_info, diag, diag, finalized, getAllDebugLevels, getAllStateListeners, getName, getParent, getState, getTime, getTimeScale, isDebugEnabled, isDebugEnabledAt, isIdle, isRunning, isStopped, isSuspended, notifyStateListeners, process, reboot, receive, receiveAt, removeDebugLevel, removeStateListener, resumeFor, resumeTo, send, sendAt, setDebugEnabled, setDebugEnabledAt, setDebugLevels, setMaxWorkforce, setName, setParent, setRuntime, setTimeScale, stop, stop, stopAt, takeover, takeover, toString, tr_info |
| Methods inherited from class drcl.comp.ForkManager |
a_list, getRuntime, info, list, takeover |
| Methods inherited from class drcl.DrclObj |
clone, duplicate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected long startTime
protected long ltime
protected double time
protected FIFOQueue qReady
protected Queue qWaiting
| Constructor Detail |
public SESimulator()
public SESimulator(java.lang.String name_)
| Method Detail |
protected void newTask(Task task_,
WorkerThread currentThread_)
newTask in class ACARuntimepublic java.lang.String info()
ACARuntimeinfo in class ACARuntimepublic java.lang.String ss_info()
s_info().public java.lang.String s_info()
public SEThread getMainThread()
public java.lang.String a_info(boolean listWaitingTasks_)
ACARuntime.diag().a_info in class ACARuntimepublic java.lang.String tasks()
public void forceReset()
public void ___PROFILE___()
public long getNumberOfArrivalEvents()
ACARuntimegetNumberOfArrivalEvents in class ACARuntimepublic double getEventRate()
ACARuntimegetEventRate in class ACARuntimeprotected double _getEventRate(long numArrivals_)
protected double _getTime()
_getTime in class ACARuntimeprotected void _stop(boolean block_)
_stop in class ACARuntimepublic void resume()
ACARuntimeresume in class ACARuntimepublic void reset()
ACARuntimereset in class ACARuntimepublic long getWallTimeElapsed()
ACARuntimegetWallTimeElapsed in class ACARuntimepublic java.lang.String t_info()
t_info in class ACARuntimeprotected java.lang.String t_info(java.lang.String prefix_)
t_info in class ACARuntimeprotected void setState(java.lang.String new_)
setState in class ACARuntimepublic void println(java.lang.String msg_)
protected void off(ACATimer handle_)
ForkManageroff in class ACARuntimepublic java.lang.Object getEventQueue()
getEventQueue in class ACARuntime
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||