Package ptolemy.vergil.debugger
Class DebugProfile
- java.lang.Object
-
- ptolemy.vergil.debugger.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 Summary
Constructors Constructor Description DebugProfile(BasicGraphController graphController)
Construct a debug profile for an actor with the associated GraphController.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicGraphController
getGraphController()
Get the GraphController.boolean
isListening(FiringEvent.FiringEventType type)
See if the DebugProfile contains this FiringEventType.void
listenForEvent(FiringEvent.FiringEventType type)
Add this FiringEventType to the DebugProfile.boolean
matches(FiringEvent.FiringEventType type)
See if the DebugProfile contains this FiringEventType.void
unlistenForEvent(FiringEvent.FiringEventType type)
Remove this FiringEventType from the DebugProfile.
-
-
-
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.
-
-