Class BusContentionApplet.StateListener
- java.lang.Object
-
- ptolemy.domains.csp.demo.BusContention.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.
-
-
-
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 interfaceDebugListener
- Parameters:
message
- The debug message.
-
event
public void event(DebugEvent debugEvent)
React to the given event.- Specified by:
event
in interfaceDebugListener
- Parameters:
debugEvent
- The event.
-
-