Class TestWorkspaceBase

  • Direct Known Subclasses:
    TestWorkspace3, TestWorkspace4, TestWorkspace5, TestWorkspace6

    public abstract class TestWorkspaceBase
    extends java.lang.Object
    A base class for creating tests on the workspace synchronization features. A derived test creates a list of threads that access the workspace in various ways.
    Since:
    Ptolemy II 3.0
    Version:
    $Id$
    Author:
    Xiaojun Liu
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Green (eal)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List _accessThreads  
      protected java.util.List _record  
      protected long _testTime  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void initializeTest()
      Create threads that access a workspace in various ways.
      java.lang.String profile()  
      void runTest()
      Initialize and run the test.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _accessThreads

        protected java.util.List _accessThreads
      • _record

        protected java.util.List _record
      • _testTime

        protected long _testTime
    • Constructor Detail

      • TestWorkspaceBase

        public TestWorkspaceBase()
    • Method Detail

      • initializeTest

        public abstract void initializeTest()
        Create threads that access a workspace in various ways. List the threads in _accessThreads.
      • runTest

        public void runTest()
        Initialize and run the test.
      • profile

        public java.lang.String profile()