use of net.sourceforge.processdash.log.time.IONoSuchElementException in project processdash by dtuma.
the class EVCalculatorData method saveActualScheduleTime.
private void saveActualScheduleTime(TimeLog log) throws IOException {
try {
Date start = rezeroAtStartDate ? scheduleStartDate : null;
Iterator entries = log.filter(null, start, null);
while (entries.hasNext()) saveActualScheduleTime((TimeLogEntry) entries.next());
} catch (IONoSuchElementException ion) {
throw ion.getIOException();
}
}
use of net.sourceforge.processdash.log.time.IONoSuchElementException in project processdash by dtuma.
the class EVCalculatorData method saveActualPreTime.
private void saveActualPreTime(TimeLog log) throws IOException {
try {
Iterator entries = log.filter(null, null, scheduleStartDate);
while (entries.hasNext()) {
TimeLogEntry entry = (TimeLogEntry) entries.next();
Date d = entry.getStartTime();
if (d == null || d.compareTo(scheduleStartDate) >= 0)
continue;
EVTask task = taskRoot.getTaskForPath(entry.getPath());
if (task != null && !task.isLevelOfEffortTask())
task.actualPreTime += entry.getElapsedTime();
}
} catch (IONoSuchElementException ion) {
throw ion.getIOException();
}
}
Aggregations