Set<Shift> shifts = executionCourse.getAssociatedShifts();
Iterator<Shift> iterator = shifts.iterator();
while (iterator.hasNext()) {
Shift shift = iterator.next();
if (shift.containsType(ShiftType.TEORICA)) {
theoreticalCapacity = Integer.valueOf(theoreticalCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.TEORICO_PRATICA)) {
theoPraticalCapacity = Integer.valueOf(theoPraticalCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.DUVIDAS)) {
doubtsCapacity = Integer.valueOf(doubtsCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.LABORATORIAL)) {
labCapacity = Integer.valueOf(labCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.PRATICA)) {
praticalCapacity = Integer.valueOf(praticalCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.RESERVA)) {
reserveCapacity = Integer.valueOf(reserveCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.SEMINARY)) {
semCapacity = Integer.valueOf(semCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.PROBLEMS)) {
probCapacity = Integer.valueOf(probCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.FIELD_WORK)) {
fieldCapacity = Integer.valueOf(fieldCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.TRAINING_PERIOD)) {
trainCapacity = Integer.valueOf(trainCapacity.intValue() + shift.getLotacao().intValue());
} else if (shift.containsType(ShiftType.TUTORIAL_ORIENTATION)) {
tutCapacity = Integer.valueOf(tutCapacity.intValue() + shift.getLotacao().intValue());
}
}
infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(executionCourse);
List<Integer> capacities = new ArrayList<Integer>();