enum StatisticsEventType {
PICKUP_TARDINESS, DELIVERY_TARDINESS, ALL_VEHICLES_AT_DEPOT;
}
StatsTracker(ScenarioController scenContr, Simulator sim) {
eventDispatcher = new EventDispatcher(StatisticsEventType.values());
theListener = new TheListener();
simulator = sim;
scenContr.getEventAPI().addListener(theListener, SCENARIO_STARTED,
SCENARIO_FINISHED, ADD_DEPOT, ADD_PARCEL, ADD_VEHICLE, TIME_OUT);
simulator.getEventAPI().addListener(theListener, STARTED, STOPPED);