Package ptolemy.domains.ptera.kernel
Class PteraDebugEvent
- java.lang.Object
-
- ptolemy.domains.ptera.kernel.PteraDebugEvent
-
- All Implemented Interfaces:
DebugEvent
- Direct Known Subclasses:
PteraErrorEvent
public class PteraDebugEvent extends java.lang.Object implements DebugEvent
A debug event for Ptera models.- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Thomas Huining Feng
- Pt.AcceptedRating:
- Red (tfeng)
- Pt.ProposedRating:
- Yellow (tfeng)
-
-
Constructor Summary
Constructors Constructor Description PteraDebugEvent(NamedObj source, java.lang.String message)Construct a debug event with the source and a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedObjgetSource()Return the source of the debug event.java.lang.StringtoString()Return the message.java.lang.StringtoString(NamedObj sourceContainer)Return a string that includes both the name of the source (within the given container) and the message.
-
-
-
Constructor Detail
-
PteraDebugEvent
public PteraDebugEvent(NamedObj source, java.lang.String message)
Construct a debug event with the source and a message.- Parameters:
source- The source of the debug event.message- The message.
-
-
Method Detail
-
getSource
public NamedObj getSource()
Return the source of the debug event.- Specified by:
getSourcein interfaceDebugEvent- Returns:
- The source.
-
toString
public java.lang.String toString()
Return the message.- Specified by:
toStringin interfaceDebugEvent- Overrides:
toStringin classjava.lang.Object- Returns:
- The message.
-
toString
public java.lang.String toString(NamedObj sourceContainer)
Return a string that includes both the name of the source (within the given container) and the message.- Parameters:
sourceContainer- Container of the source that is used to retrieve part of the full name of the source.- Returns:
- The string.
-
-