Interface ActorInteractionAddon


  • public interface ActorInteractionAddon
    An interface for defining additional gui interaction for specific actor types. Once the interface is implemented, it can be used by adding an _actorInteractionAddon parameter to the configuration and setting the value to the name of the class that implements this interface.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Lyle Holsinger
    Pt.AcceptedRating:
    red (lholsing)
    Pt.ProposedRating:
    red (lholsing)
    • Method Detail

      • isActorOfInterestForLookInside

        boolean isActorOfInterestForLookInside​(NamedObj actor)
        Determine of a given actor is of interest for a desired action.
        Parameters:
        actor - The actor of interest.
        Returns:
        True if the actor is of interest for the "Look Inside" action for actors, False otherwise.
      • isActorOfInterestForOpenInstance

        boolean isActorOfInterestForOpenInstance​(NamedObj actor)
        Determine of a given actor is of interest for a desired action.
        Parameters:
        actor - The actor of interest.
        Returns:
        True if the actor is of interest for the "Open Instance" action for actors, False otherwise.
      • getControllerInstance

        ActorController getControllerInstance​(GraphController controller)
        Get an instance of the ActorController for a given actor. This assumes Full access.
        Parameters:
        controller - The associated graph controller.
        Returns:
        An instance of the appropriate controller.
      • getControllerInstance

        ActorController getControllerInstance​(GraphController controller,
                                              boolean fullAccess)
        Get an instance of the ActorController for a given actor.
        Parameters:
        controller - The associated graph controller.
        fullAccess - Indication if the controller should be instantiated with Full access.
        Returns:
        An instance of the appropriate controller.
      • isActorOfInterestForAddonController

        boolean isActorOfInterestForAddonController​(NamedObj actor)
        Determine of a given actor is of interest for a desired action.
        Parameters:
        actor - The actor of interest.
        Returns:
        True if the actor is of interest for use of a special controller, False otherwise.