private boolean isRunning;
private int myCurrentId;
public void start() {
isRunning = true;
addEvent(ControlEvent.RAPID_EVENT_CONTROL_DOMAIN, new StartEvent());
final Thread theEventAddingThread = new Thread(new Runnable() {
public void run() {
while(isRunning) {
for(int i = 0; i < 100; i++) {
addEvent(RapidEvent.RAPID_EVENT_DOMAIN, new RapidEvent(++myCurrentId));