Class BusContentionApplet.StateListener

  • All Implemented Interfaces:
    DebugListener
    Enclosing class:
    BusContentionApplet

    public class BusContentionApplet.StateListener
    extends java.lang.Object
    implements DebugListener
    StateListener is an inner class that listens to state events on the Ptolemy kernel and changes the color of the nodes appropriately.
    • Constructor Summary

      Constructors 
      Constructor Description
      StateListener​(GraphPane pane)
      Create a listener on the given graph pane
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void event​(DebugEvent debugEvent)
      React to the given event.
      void message​(java.lang.String message)
      Ignore messages.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StateListener

        public StateListener​(GraphPane pane)
        Create a listener on the given graph pane
    • Method Detail

      • message

        public void message​(java.lang.String message)
        Ignore messages.
        Specified by:
        message in interface DebugListener
        Parameters:
        message - The debug message.
      • event

        public void event​(DebugEvent debugEvent)
        React to the given event.
        Specified by:
        event in interface DebugListener
        Parameters:
        debugEvent - The event.