Methods Summary |
---|
Event[] | getArray(java.util.Vector v)Returns an array of events, given a vector of events.
Event eva[] = new Event[v.size()];
v.copyInto(eva);
return eva;
|
public Event[] | getPreprocessedEvents()Returns an array of events recorded by the preprocess() method.
return getArray(preprocessedEvents);
|
public Event[] | getProcessedEvents()Returns an array of events recorded by the process() method.
return getArray(processedEvents);
|
public Event[] | getWaitingEvents()Returns an array of waiting events recorded by the preprocess() method.
Note that there will likely be null elements within this array.
return getArray(preprocessedWaitingEvents);
|
public boolean | preprocess(Event event, Event waitingEvent)The preprocess() method of EventListener. Records the event and
the waitingEvent in the corresponding vectors. Returns the current
value of preprocess.
preprocessedEvents.addElement(event);
preprocessedWaitingEvents.addElement(waitingEvent);
return preprocess;
|
public void | process(Event event)The process() method of EventListener. Simply records the given event
in the processedEvents vector.
processedEvents.addElement(event);
|
public void | setPreprocess(boolean p)Sets the return value of the preprocess() method.
preprocess = p;
|