|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ptolemy.kernel.util.PtolemyThread
ptolemy.actor.process.ProcessThread
ptolemy.domains.dde.kernel.DDEThread
public class DDEThread
A DDEThread controls an actor according to DDE semantics. The primary purpose of a DDEThread is to control the iteration methods of an executing actor and to maintain the actor's local notion of time according to DDE semantics. A DDEThread has two unique functionalities for accomplishing this goal. First a DDEThread instantiates a TimeKeeper object. A TimeKeeper manages a given actor's local notion of time according to DDE semantics. The second task of a DDEThread is to notify directly connected actors when the actor controlled by the thread is ending execution.
TimeKeeper
Yellow (yuhong) |
Yellow (davisj) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private TimeKeeper |
_timeKeeper
|
Fields inherited from class ptolemy.kernel.util.PtolemyThread |
---|
_debugging, _debugListeners |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DDEThread(Actor actor,
ProcessDirector director)
Construct a thread to be used to execute the iteration methods of a DDEActor. |
Method Summary | |
---|---|
TimeKeeper |
getTimeKeeper()
Return the time keeper that keeps time for the actor that this thread controls. |
void |
noticeOfTermination()
Notify output-connected actors that the actor controlled by this thread is ending execution. |
void |
start()
Start this thread and initialize the time keeper to a future time if specified in the director's initial time table. |
void |
wrapup()
End the execution of the actor under the control of this thread. |
Methods inherited from class ptolemy.actor.process.ProcessThread |
---|
getActor, run |
Methods inherited from class ptolemy.kernel.util.PtolemyThread |
---|
_debug, _debug, addDebugListener, removeDebugListener |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private TimeKeeper _timeKeeper
Constructor Detail |
---|
public DDEThread(Actor actor, ProcessDirector director) throws IllegalActionException
actor
- The DDEActor that will be executed.director
- The director of this actor.
IllegalActionException
- If thrown while create a new
TimeKeeper.Method Detail |
---|
public TimeKeeper getTimeKeeper()
public void noticeOfTermination()
PrioritizedTimedQueue
public void start()
NOTE: This method assumes an implementation of fireAt() that would be more appropriately named continueAt().
start
in class java.lang.Thread
public void wrapup() throws IllegalActionException
wrapup
in class ProcessThread
IllegalActionException
- If an error occurs while
ending execution of the actor under the control of this
thread.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |