ptolemy.vergil.debugger
Class DebugProfile

java.lang.Object
  extended byptolemy.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: DebugProfile.java,v 1.13 2004/04/13 05:12:50 cxh Exp $
Author:
Elaine Cheong
Accepted Rating:
Red (celaine)
Proposed Rating:
Red (celaine)

Constructor Summary
DebugProfile(BasicGraphController graphController)
          Construct a debug profile for an actor with the associated GraphController.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.