Class ActorInstanceController

  • All Implemented Interfaces:
    NodeController
    Direct Known Subclasses:
    DependencyHighlighter.DependencyController

    public class ActorInstanceController
    extends ActorController
    This class provides interaction with nodes that represent Ptolemy II actor instances (i.e., not classes). This extends the base class by providing a mechanism in the context menu for converting the instance into a class.

    NOTE: There should be only one instance of this class associated with a given GraphController. This is because this controller listens for changes to the graph and re-renders the ports of any actor instance in the graph when the graph changes. If there is more than one instance, this rendering will be done twice, which can result in bugs like port labels appearing twice.

    Since:
    Ptolemy II 4.0
    Version:
    $Id$
    Author:
    Edward A. Lee and Steve Neuendorffer
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (eal)
    • Field Detail

      • _convertToClassAction

        protected ptolemy.vergil.actor.ActorInstanceController.ConvertToClassAction _convertToClassAction
        The action that handles creating an instance from a class.
    • Constructor Detail

      • ActorInstanceController

        public ActorInstanceController​(GraphController controller)
        Create an actor instance controller associated with the specified graph controller with full access.
        Parameters:
        controller - The associated graph controller.
      • ActorInstanceController

        public ActorInstanceController​(GraphController controller,
                                       AttributeController.Access access)
        Create an entity controller associated with the specified graph controller with the specified access.
        Parameters:
        controller - The associated graph controller.
        access - The access.