Class DebugProfile


  • public class DebugProfile
    extends java.lang.Object
    Profile for an actor being debugged. Contains the FiringEventTypes on which the actor should break.
    Since:
    Ptolemy II 2.1
    Version:
    $Id$
    Author:
    Elaine Cheong
    Pt.AcceptedRating:
    Red (celaine)
    Pt.ProposedRating:
    Red (celaine)
    • Constructor Detail

      • DebugProfile

        public DebugProfile​(BasicGraphController graphController)
        Construct a debug profile for an actor with the associated GraphController.
        Parameters:
        graphController - The GraphController.
    • Method Detail

      • getGraphController

        public BasicGraphController getGraphController()
        Get the GraphController.
        Returns:
        The GraphController.
      • isListening

        public boolean isListening​(FiringEvent.FiringEventType type)
        See if the DebugProfile contains this FiringEventType.
        Parameters:
        type - the FiringEventType.
        Returns:
        True if the DebugProfile contains this FiringEventType.
      • listenForEvent

        public void listenForEvent​(FiringEvent.FiringEventType type)
        Add this FiringEventType to the DebugProfile.
        Parameters:
        type - the FiringEventType.
      • matches

        public boolean matches​(FiringEvent.FiringEventType type)
        See if the DebugProfile contains this FiringEventType.
        Parameters:
        type - the FiringEventType.
        Returns:
        True if the DebugProfile contains this FiringEventType.
      • unlistenForEvent

        public void unlistenForEvent​(FiringEvent.FiringEventType type)
        Remove this FiringEventType from the DebugProfile.
        Parameters:
        type - the FiringEventType.