Class 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
      NamedObj getSource()
      Return the source of the debug event.
      java.lang.String toString()
      Return the message.
      java.lang.String toString​(NamedObj sourceContainer)
      Return a string that includes both the name of the source (within the given container) and the message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        getSource in interface DebugEvent
        Returns:
        The source.
      • toString

        public java.lang.String toString()
        Return the message.
        Specified by:
        toString in interface DebugEvent
        Overrides:
        toString in class java.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.