DRCL J-Sim API

drcl.sim.process
Class SMMTSimulator

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.comp.ForkManager
          extended bydrcl.comp.ACARuntime
              extended bydrcl.comp.ARuntime
                  extended bydrcl.sim.process.SMMTSimulator
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class SMMTSimulator
extends ARuntime

This class implements a Single-Machine Multi-Threaded simulation engine.

See Also:
Serialized Form

Field Summary
static java.lang.String Debug_LEAP_FORWARD
           
 
Fields inherited from class drcl.comp.ARuntime
Debug_Q, Debug_RECYCLE, Debug_STATE, Debug_THREAD, Debug_THREAD_STATE, Debug_WORKFORCE, State_RESETTING, State_SUSPENDING
 
Fields inherited from class drcl.comp.ACARuntime
debug, DEFAULT_RUNTIME, logenabled, resetting, State_INACTIVE, State_RUNNING, State_SUSPENDED
 
Constructor Summary
SMMTSimulator()
           
SMMTSimulator(java.lang.String name_)
           
 
Method Summary
 void reset()
          The workerpool enters a transitional period when reset() is issued.
 
Methods inherited from class drcl.comp.ARuntime
___PROFILE___, a_info, forceReset, getAvailableWorkforce, getEfficiencyIndex, getEventEfficiencyIndex, getEventQueue, getEventRate, getMaxWorkforce, getNumberOfArrivalEvents, getNumberOfIdleThreads, getNumberOfThreadRequests, getNumberOfThreadsCreated, getNumberOfWorkingThreads, getNumLaggingEvents, getQ, getRTEvaluation, getRTTolerance, getThreadGroup, getThreadRequestRate, getWallTimeElapsed, getWorkingThread, info, isIdle, isResetting, isRTEnabled, listThreads, print, println, resume, s_info, s_info, setMaxWorkforce, setRTEnabled, setRTTolerance, ss_info, sthreads, swthreads, t_info, tasks, threads, wakeupThreadInfo, wthreads
 
Methods inherited from class drcl.comp.ACARuntime
a_info, addDebugLevel, addRunHook, addRunnable, addRunnable, addRunnableAt, addRunnableAt, addStateListener, addStopHook, addSuspendHook, containsDebugLevel, debug_info, diag, diag, getAllDebugLevels, getAllStateListeners, getName, getParent, getState, getTime, getTimeScale, isDebugEnabled, isDebugEnabledAt, isRunning, isStopped, isSuspended, notifyStateListeners, reboot, removeAllRunHooks, removeAllStopHooks, removeAllSuspendHooks, removeDebugLevel, removeRunHook, removeStateListener, removeStopHook, removeSuspendHook, resumeFor, resumeTo, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Debug_LEAP_FORWARD

public static final java.lang.String Debug_LEAP_FORWARD
See Also:
Constant Field Values
Constructor Detail

SMMTSimulator

public SMMTSimulator()

SMMTSimulator

public SMMTSimulator(java.lang.String name_)
Method Detail

reset

public void reset()
Description copied from class: ARuntime
The workerpool enters a transitional period when reset() is issued. It waits for all the working thread to either finishes the job or goes into sleep. After all the threads finish jobs, it releases all the threads by kill()ing them.

CAUTION: 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.

Overrides:
reset in class ARuntime

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~