|
DRCL J-Sim 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
Defines the interface of an ACA runtime.
| Field Summary | |
boolean |
debug
|
static ACARuntime |
DEFAULT_RUNTIME
|
boolean |
logenabled
|
boolean |
resetting
Whether the runtime is in resetting or not. |
static java.lang.String |
State_INACTIVE
State of no thread running or waiting to be started. |
static java.lang.String |
State_RUNNING
State of have threads running. |
static java.lang.String |
State_SUSPENDED
State of system suspended. |
| Constructor Summary | |
ACARuntime()
|
|
ACARuntime(java.lang.String name_)
|
|
| Method Summary | |
java.lang.String |
a_info()
Asynchronous version of diag(). |
abstract java.lang.String |
a_info(boolean listWaitingTasks_)
Asynchronous version of diag(boolean). |
void |
addDebugLevel(java.lang.String trace_)
|
void |
addRunHook(java.lang.Runnable hook_)
Adds the "run" hook to the simulator. |
void |
addRunnable(double later_,
Port port_,
java.lang.Runnable task_)
|
void |
addRunnable(double later_,
java.lang.Runnable task_)
|
void |
addRunnableAt(double time_,
Port port_,
java.lang.Runnable task_)
|
void |
addRunnableAt(double time_,
java.lang.Runnable task_)
|
void |
addStateListener(java.beans.PropertyChangeListener l_)
|
void |
addStopHook(java.lang.Runnable hook_)
Adds the "stop" hook to the simulator. |
void |
addSuspendHook(java.lang.Runnable hook_)
Adds the "suspend" hook to the simulator. |
boolean |
containsDebugLevel(java.lang.String trace_)
|
java.lang.String |
debug_info()
|
java.lang.String |
diag()
Returns more detailed information of this runtime, for diagnosis purpose. |
java.lang.String |
diag(boolean listWaitingTasks_)
Returns more detailed information of this runtime, for diagnosis purpose. |
java.lang.String[] |
getAllDebugLevels()
|
java.beans.PropertyChangeListener[] |
getAllStateListeners()
|
abstract java.lang.Object |
getEventQueue()
|
abstract double |
getEventRate()
Returns the event processing rate of this runtime. |
java.lang.String |
getName()
|
abstract long |
getNumberOfArrivalEvents()
Returns the number of arrival events. |
ForkManager |
getParent()
|
java.lang.String |
getState()
|
double |
getTime()
Returns the system current time in second. |
double |
getTimeScale()
|
abstract long |
getWallTimeElapsed()
Returns the actual time (in ms) for which this runtime has participated. |
abstract java.lang.String |
info()
Returns general information of this runtime. |
boolean |
isDebugEnabled()
|
boolean |
isDebugEnabledAt(java.lang.String which_)
|
boolean |
isIdle()
Returns true if the runtime is stopped (inactive or suspended) or running but all working threads are waiting. |
boolean |
isRunning()
Returns true if the runtime is running. |
boolean |
isStopped()
Returns true if the runtime is either inactive or suspended. |
boolean |
isSuspended()
Returns true if the runtime is suspended. |
void |
notifyStateListeners(java.beans.PropertyChangeEvent e_)
|
void |
reboot()
|
void |
removeAllRunHooks()
Removes all "run" hooks. |
void |
removeAllStopHooks()
Removes all "stop" hooks. |
void |
removeAllSuspendHooks()
Removes all "suspend" hooks. |
void |
removeDebugLevel(java.lang.String trace_)
|
void |
removeRunHook(java.lang.Runnable hook_)
Removes the "run" hook. |
void |
removeStateListener(java.beans.PropertyChangeListener l_)
|
void |
removeStopHook(java.lang.Runnable hook_)
Removes the "stop" hook. |
void |
removeSuspendHook(java.lang.Runnable hook_)
Removes the "suspend" hook. |
abstract void |
reset()
|
abstract void |
resume()
Resumes the system. |
void |
resumeFor(double later_)
Resumes the system and lets it run for the time duration specified. |
void |
resumeTo(double time_)
Resumes the system and lets it run for the time duration specified. |
void |
setDebugEnabled(boolean enabled_)
|
void |
setDebugEnabledAt(java.lang.String level_,
boolean enabled_)
|
void |
setDebugLevels(java.lang.String[] traces_)
|
void |
setMaxWorkforce(int maxwf_)
|
void |
setName(java.lang.String name_)
|
void |
setParent(ForkManager parent_)
|
void |
setRuntime(ACARuntime runtime_)
|
void |
setTimeScale(double e_)
Time scale is the ratio of wall time over system time. |
void |
stop()
Stops the system. |
void |
stop(double later_)
Stops the system at the time specified later. |
void |
stopAt(double time_)
Stops the system at the time specified. |
java.lang.String |
t_info()
|
void |
takeover(Component c_)
Takes over as the fork manager of the component system under c_. |
void |
takeover(java.lang.Object[] oo_)
|
java.lang.String |
toString()
|
java.lang.String |
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 |
public static final ACARuntime DEFAULT_RUNTIME
public static final java.lang.String State_INACTIVE
public static final java.lang.String State_RUNNING
public static final java.lang.String State_SUSPENDED
public boolean debug
public transient boolean resetting
public boolean logenabled
| Constructor Detail |
public ACARuntime()
public ACARuntime(java.lang.String name_)
| Method Detail |
public java.lang.String toString()
toString in class ForkManagerpublic void takeover(java.lang.Object[] oo_)
public void takeover(Component c_)
ForkManagerc_.
takeover in class ForkManagerpublic void setTimeScale(double e_)
public double getTimeScale()
public void setName(java.lang.String name_)
setName in class ForkManagerpublic java.lang.String getName()
getName in class ForkManagerpublic void setMaxWorkforce(int maxwf_)
public abstract java.lang.String info()
public java.lang.String diag()
public java.lang.String diag(boolean listWaitingTasks_)
public java.lang.String a_info()
diag().
public abstract java.lang.String a_info(boolean listWaitingTasks_)
diag(boolean).
a_info in class ForkManager
public final void addRunnable(double later_,
java.lang.Runnable task_)
public final void addRunnableAt(double time_,
java.lang.Runnable task_)
public final void addRunnable(double later_,
Port port_,
java.lang.Runnable task_)
public final void addRunnableAt(double time_,
Port port_,
java.lang.Runnable task_)
public final void addStopHook(java.lang.Runnable hook_)
public final void removeStopHook(java.lang.Runnable hook_)
public final void removeAllStopHooks()
public final void addSuspendHook(java.lang.Runnable hook_)
public final void removeSuspendHook(java.lang.Runnable hook_)
public final void removeAllSuspendHooks()
public final void addRunHook(java.lang.Runnable hook_)
public final void removeRunHook(java.lang.Runnable hook_)
public final void removeAllRunHooks()
public abstract long getNumberOfArrivalEvents()
public abstract double getEventRate()
public double getTime()
public final void stop()
public abstract void resume()
public final void stop(double later_)
public final void stopAt(double time_)
public final void resumeFor(double later_)
public final void resumeTo(double time_)
public abstract void reset()
reset in class ForkManagerpublic abstract long getWallTimeElapsed()
public java.lang.String t_info()
public void reboot()
public void addStateListener(java.beans.PropertyChangeListener l_)
public void removeStateListener(java.beans.PropertyChangeListener l_)
public java.beans.PropertyChangeListener[] getAllStateListeners()
public void notifyStateListeners(java.beans.PropertyChangeEvent e_)
public java.lang.String getState()
public boolean isRunning()
public boolean isStopped()
public boolean isSuspended()
public boolean isIdle()
public java.lang.String tr_info()
public void setDebugEnabled(boolean enabled_)
setDebugEnabled in class ForkManagerpublic boolean isDebugEnabled()
isDebugEnabled in class ForkManagerpublic boolean isDebugEnabledAt(java.lang.String which_)
public java.lang.String[] getAllDebugLevels()
public void setDebugLevels(java.lang.String[] traces_)
public void addDebugLevel(java.lang.String trace_)
public void removeDebugLevel(java.lang.String trace_)
public boolean containsDebugLevel(java.lang.String trace_)
public void setDebugEnabledAt(java.lang.String level_,
boolean enabled_)
public java.lang.String debug_info()
public ForkManager getParent()
getParent in class ForkManagerpublic void setParent(ForkManager parent_)
setParent in class ForkManagerpublic void setRuntime(ACARuntime runtime_)
setRuntime in class ForkManagerpublic abstract java.lang.Object getEventQueue()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||