sub_arctic.input
Class event_trace_agent

java.lang.Object
  |
  +--sub_arctic.input.dispatch_agent
        |
        +--sub_arctic.input.event_trace_agent

public class event_trace_agent
extends dispatch_agent

This is a monitor focus agent used for debugging purposes. It does not actually dispatch any input, but instead prints a human readable dump of each event on System.err "as it goes past". This trace can be turned on and off using the do_trace() method (and is by default off).


Field Summary
protected  boolean doing_trace
          Are we current doing trace output or not.
 
Constructor Summary
event_trace_agent()
          Default constructor.
 
Method Summary
 boolean dispatch_event(event evt, java.lang.Object user_info, interactor to_obj, int seq_num)
          "Dispatch" an event.
 void do_trace(boolean on_off)
          Turn tracing on or off.
 
Methods inherited from class sub_arctic.input.dispatch_agent
after_dispatch_notify, dispatch_unused_event, event_is_useful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doing_trace

protected boolean doing_trace
Are we current doing trace output or not.
Constructor Detail

event_trace_agent

public event_trace_agent()
Default constructor. We default to tracing being off.
Method Detail

do_trace

public void do_trace(boolean on_off)
Turn tracing on or off.
Parameters:
boolean - on_off true means we produce trace output.

dispatch_event

public boolean dispatch_event(event evt,
                              java.lang.Object user_info,
                              interactor to_obj,
                              int seq_num)
"Dispatch" an event. This agent never consumes the event.
Parameters:
event - evt event to potential display trace output for
Object - user_info ignored
interactor - to_obj ignored
int - seq_num ignored
Overrides:
dispatch_event in class dispatch_agent