Class IterateOverArrayCloneTest


  • public class IterateOverArrayCloneTest
    extends java.lang.Object
    Test for clone(Workspace) of IterateOverArray. To run: java -classpath $PTII ptolemy.actor.lib.hoc.test.IterateOverArrayCloneTest
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Check the clone(Workspace) method of the IterateOverArray class.
      • Methods inherited from class java.lang.Object

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

      • IterateOverArrayCloneTest

        public IterateOverArrayCloneTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Throwable
        Check the clone(Workspace) method of the IterateOverArray class. Instantiate an IterateOverArray actor and get the Workspace of the inner IterateDirector. Then clone the actor into a new Workspace and get the Workspace of the inner IterateDirector of the *clone*. The Workspaces should be different.

        To run:

        java -classpath $PTII ptolemy.actor.lib.hoc.test.IterateOverArrayCloneTest
        Parameters:
        args - Ignored
        Throws:
        java.lang.Throwable - If there is a problem with the test.