Package ptolemy.domains.ci.kernel
Class ActiveActorManager
- java.lang.Object
-
- java.lang.Thread
-
- ptolemy.kernel.util.PtolemyThread
-
- ptolemy.domains.ci.kernel.ActiveActorManager
-
- All Implemented Interfaces:
java.lang.Runnable
,Debuggable
public class ActiveActorManager extends PtolemyThread
An active actor manager iterates an active actor until its postfire() returns false, or the director is requested to stop. If the active actor has pull input and its prefire() returns false, the actor manager will notify the CI director to process the pull request by the actor. When the actor has a period parameter, the actor manager will sleep between successive iterations of the actor for the duration given by the parameter, in milliseconds. This is used to control the execution rate of active actors that are always ready to produce the next output or request the next input.- Since:
- Ptolemy II 3.0
- Version:
- $Id$
- Author:
- Xiaojun Liu, Yang Zhao
- Pt.AcceptedRating:
- Red (liuxj)
- Pt.ProposedRating:
- Yellow (liuxj)
-
-
Field Summary
-
Fields inherited from class ptolemy.kernel.util.PtolemyThread
_debugging, _debugListeners
-
-
Constructor Summary
Constructors Constructor Description ActiveActorManager(Actor actor, CIDirector director)
Construct an actor manager to iterate the actor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Iterate the actor until its postfire() returns false, or the director is requested to stop.-
Methods inherited from class ptolemy.kernel.util.PtolemyThread
_debug, _debug, addDebugListener, removeDebugListener
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
ActiveActorManager
public ActiveActorManager(Actor actor, CIDirector director) throws IllegalActionException
Construct an actor manager to iterate the actor.- Parameters:
actor
- The actor that is managed.director
- The director of the actor.- Throws:
IllegalActionException
-
-