// (1) Loop over expected queues
for (String name : featNameSet) {
Queue<Event> myQueue = mapOfEvents.get(name);
if (myQueue != null) {
// Current curve
Curve curve = new Curve(name, startTime, endTime, nbslot);
for (Iterator<Event> itEvt = myQueue.iterator(); itEvt.hasNext();) {
Event evt = itEvt.next();
long t = evt.getTimestamp();
// Is in target window
if (startTime < t && t < endTime) {
if (EventType.HIT_FLIPPED.equals(evt.getType())) {
long slot = (t - startTime) / curve.getInterval();
curve.incrCount((int) slot);
}
}
}
maps.put(name, curve);
}