|
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.comp.ARuntime
|
+--drcl.sim.process.SMMTSimulator
This class implements a Single-Machine Multi-Threaded simulation engine.
| Field Summary | |
static java.lang.String |
Debug_LEAP_FORWARD
|
| Fields inherited from class drcl.comp.ARuntime |
cwf, Debug_Q, Debug_RECYCLE, Debug_STATE, Debug_THREAD, Debug_THREAD_STATE, Debug_WORKFORCE, ltime, nEvents, nLags, nthreadsWaiting, qBufferedTask, rtEnabled, rtTol, startTime, State_RESETTING, State_SUSPENDING, threadGroup, threadPool, time, total, totalThreadRequests, wakeupThread, wf |
| 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 | |
SMMTSimulator()
|
|
SMMTSimulator(java.lang.String name_)
|
|
| Method Summary | |
protected double |
_getTime()
Asynchronized version of getTime(), for diagnosis. |
void |
reset()
The workerpool enters a transitional period when reset() is issued. |
protected void |
systemBecomesIdle(AWorkerThread exe_)
Subclasses should override this method to handle the event when all workerthreads in the system become either waiting or idle. |
protected java.lang.String |
t_info(java.lang.String prefix_)
|
| 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, isRunning, isStopped, isSuspended, notifyStateListeners, process, reboot, receive, receiveAt, removeDebugLevel, removeStateListener, resumeFor, resumeTo, send, sendAt, setDebugEnabled, setDebugEnabledAt, setDebugLevels, 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 |
public static final java.lang.String Debug_LEAP_FORWARD
| Constructor Detail |
public SMMTSimulator()
public SMMTSimulator(java.lang.String name_)
| Method Detail |
public void reset()
ARuntimeCAUTION: 1. This method is better be executed by a thread that is not created from this worker pool, unless you know what you're doing. 2. Current implementation does not work if a thread executes indefinitely.
reset in class ARuntimeprotected void systemBecomesIdle(AWorkerThread exe_)
ARuntimesystemBecomesIdle in class ARuntimedrcl.comp.ARuntimeexe_ - current thread, requesting waiting and causing the system to become idle
if the request is granted.protected double _getTime()
ARuntime_getTime in class ARuntimeprotected java.lang.String t_info(java.lang.String prefix_)
t_info in class ARuntime
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||