|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.ForkManager
drcl.comp.ACARuntime
drcl.sim.event.SESimulatorOld
This is the previous version of the sequential event simulation engine.
Refer to SESimulator for the complete implementation.
| Field Summary | |
protected long |
ltime
|
protected FIFOQueue |
qReady
Used to store tasks. |
protected TreeMapQueue |
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 | |
SESimulatorOld()
|
|
SESimulatorOld(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. |
SEThreadOld |
getMainThread()
|
long |
getNumberOfArrivalEvents()
Returns the number of arrival events. |
protected WorkerThread |
getThread()
Returns the current thread context. |
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 TreeMapQueue qWaiting
| Constructor Detail |
public SESimulatorOld()
public SESimulatorOld(java.lang.String name_)
| Method Detail |
protected void newTask(Task task_,
WorkerThread currentThread_)
newTask in class ACARuntimeprotected WorkerThread getThread()
getThread in class ACARuntimepublic java.lang.String info()
ACARuntime
info in class ACARuntimepublic java.lang.String ss_info()
s_info().
public java.lang.String s_info()
public SEThreadOld 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()
ACARuntime
getNumberOfArrivalEvents in class ACARuntimepublic double getEventRate()
ACARuntime
getEventRate in class ACARuntimeprotected double _getEventRate(long numArrivals_)
protected double _getTime()
_getTime in class ACARuntimeprotected void _stop(boolean block_)
_stop in class ACARuntimepublic void resume()
ACARuntime
resume in class ACARuntimepublic void reset()
ACARuntime
reset in class ACARuntimepublic long getWallTimeElapsed()
ACARuntime
getWallTimeElapsed 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_)
ForkManager
off in class ACARuntimepublic java.lang.Object getEventQueue()
getEventQueue in class ACARuntime
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||