Class PortNameProblem

  • All Implemented Interfaces:
    java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class PortNameProblem
    extends Entity
    Illustrates a problem with port naming and cloning.

    In this actor, the Java variable of the port is named "poorlyNamedInput" but the constructor uses "input", which is the wrong name. This used to result in a NullPointerException. Now, we test for this in Entity.clone().

    Since:
    Ptolemy II 4.1
    Version:
    $Id$
    Author:
    Christopher Brooks, based on code from Xiaowen Xin and Ilkay Altintas