private boolean hasRegime(final CurricularCourse curricularCourse) {
return !curricularCourse.isOptionalCurricularCourse() && curricularCourse.hasRegime(getExecutionInterval());
}
protected void drawCourseLoad(final CurricularCourse course, final CurricularPeriod period, final HtmlTableRow row) {
final HtmlTableCell cell = row.createCell();
cell.setClasses(getCourseLoadCellClass());
if (course.isOptionalCurricularCourse()) {
cell.setText(EMPTY_CELL);
} else {
final StringBuilder builder = new StringBuilder();
builder.append(BundleUtil.getString(Bundle.APPLICATION, "label.degreeCurricularPlan.renderer.acronym.contact.load"))
.append("-");
builder.append(roundValue(course.getContactLoad(period, getExecutionInterval()))).append(" ");
builder.append(
BundleUtil.getString(Bundle.APPLICATION, "label.degreeCurricularPlan.renderer.acronym.autonomous.work"))
.append("-");
builder.append(course.getAutonomousWorkHours(period, getExecutionInterval()).toString()).append(" ");
builder.append(BundleUtil.getString(Bundle.APPLICATION, "label.degreeCurricularPlan.renderer.acronym.total.load"))
.append("-");
builder.append(course.getTotalLoad(period, getExecutionInterval()));
cell.setText(builder.toString());
}
cell.setTitle(BundleUtil.getString(Bundle.APPLICATION, "label.degreeCurricularPlan.renderer.title.course.load"));
}