Class ModelDisplay

    • Field Detail

      • modelURL

        public FileParameter modelURL
        The file or URL from which to read the starting point model. The model is read when this parameter is set or changed.
      • input

        public TypedIOPort input
        The input port through which to provide MoML to modify the model. This has type string.
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        React to a change in an attribute. If the attribute is modelURL, then read the specified URL and parse it to create the entity to display.
        Overrides:
        attributeChanged in class NamedObj
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the change is not acceptable to this container (not thrown in this base class).
      • changeFailed

        public void changeFailed​(ChangeRequest change,
                                 java.lang.Exception exception)
        Stop executing the model.
        Specified by:
        changeFailed in interface ChangeListener
        Parameters:
        change - The change.
        exception - The exception.
      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the actor into the specified workspace.
        Overrides:
        clone in class AbstractPlaceableActor
        Parameters:
        workspace - The workspace for the new object.
        Returns:
        A new actor.
        Throws:
        java.lang.CloneNotSupportedException - If a derived class has an attribute that cannot be cloned.
        See Also:
        Object.clone()
      • place

        public void place​(java.awt.Container container)
        Place the display in the specified container.
        Specified by:
        place in interface Placeable
        Specified by:
        place in class AbstractPlaceableActor
        Parameters:
        container - The container, or null to remove it from any existing container.