ptolemy.vergil.debugger
Class DebugProfile

java.lang.Object
  extended by 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: DebugProfile.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Elaine Cheong
Accepted Rating:
Red (celaine)
Proposed Rating:
Red (celaine)

Field Summary
private  java.util.HashSet _firingEventTypes
           
private  BasicGraphController _graphController
           
 
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
 

Field Detail

_firingEventTypes

private java.util.HashSet _firingEventTypes

_graphController

private BasicGraphController _graphController
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.