Package ptolemy.kernel.util.test
Class PtestWorkspace
- java.lang.Object
-
- java.lang.Thread
-
- ptolemy.kernel.util.PtolemyThread
-
- ptolemy.kernel.util.test.PtestWorkspace
-
- All Implemented Interfaces:
java.lang.Runnable
,Debuggable
public class PtestWorkspace extends PtolemyThread
This object implements a ptolemy thread that obtains read permission to a workspace three times sequentially, then obtains write permission. To use it, create an instance and then call its start() method. To obtain a profile of what it did, call its profile() method. That will return only after the thread completes. NOTE: This is a very primitive test. It does not check very much.- Since:
- Ptolemy II 0.2
- Version:
- $Id$
- Author:
- Edward A. Lee, Lukito Muliadi
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Green (eal)
-
-
Field Summary
-
Fields inherited from class ptolemy.kernel.util.PtolemyThread
_debugging, _debugListeners
-
-
Constructor Summary
Constructors Constructor Description PtestWorkspace(java.lang.String name, Workspace workspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
profile()
void
run()
-
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
-
PtestWorkspace
public PtestWorkspace(java.lang.String name, Workspace workspace)
-
-