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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
doing_trace
protected boolean doing_trace
- Are we current doing trace output or not.
event_trace_agent
public event_trace_agent()
- Default constructor. We default to tracing being off.
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 forObject
- user_info ignoredinteractor
- to_obj ignoredint
- seq_num ignored- Overrides:
- dispatch_event in class dispatch_agent