System.out.println("Press [return] to quit\n");
ArrayList<Resource> resources = new ArrayList<Resource>();
//
SimpleEventGenerator myGenerator = new SimpleEventGenerator(wm, new SimpleEventListener(wm), PseudoSessionClock.timeInMinutes(15));
//create fab resources and add them to working memory
for (int i = 0; i < NUMBER_RESOURCES; i++){
Resource res = new Resource("mach"+i);
resources.add(res);
wm.insert(res.getOpStatus());
SlidingWindow sw = new SlidingWindow(0, res.getId(), PseudoSessionClock.timeInMinutes(10), PseudoSessionClock.timeInMinutes(2));
//GlobalWorkingMemory.getInstance().insert(new Event(Event.SLIDING_WINDOW, res.getId(), systemTime, systemTime));
wm.insert(sw);
// add eventSenders to EventGenerator
myGenerator.addEventSource("Conveyor"+i, new ProductionEvent(res.getId()), MIN_OCCUR_PRODUCTION_EVENT, AVG_OCCUR_PRODUCTION_EVENT, 0, 0);
}
// start generating events
myGenerator.generate();
BufferedReader waiter = new BufferedReader(new InputStreamReader(System.in));
try {
waiter.readLine();
} catch (IOException e) {