Package org.fenixedu.academic.domain.curricularRules

Examples of org.fenixedu.academic.domain.curricularRules.PreviousYearsEnrolmentCurricularRule


            return actualResult;
        }

        RuleResult finalResult = RuleResult.createInitialTrue();
        if (!getRoot().hasExternalCycles()) {
            final PreviousYearsEnrolmentCurricularRule previousYearsEnrolmentCurricularRule =
                    new PreviousYearsEnrolmentCurricularRule(getRoot().getDegreeModule());
            finalResult =
                    finalResult.and(previousYearsEnrolmentCurricularRule.evaluate(new EnroledCurriculumModuleWrapper(getRoot(),
                            getExecutionSemester()), this.enrolmentContext));

        } else {
            for (final CycleCurriculumGroup cycleCurriculumGroup : getRoot().getCycleCurriculumGroups()) {
                final PreviousYearsEnrolmentCurricularRule previousYearsEnrolmentCurricularRule =
                        new PreviousYearsEnrolmentCurricularRule(cycleCurriculumGroup.getDegreeModule());
                finalResult =
                        finalResult.and(previousYearsEnrolmentCurricularRule.evaluate(new EnroledCurriculumModuleWrapper(
                                cycleCurriculumGroup, getExecutionSemester()), this.enrolmentContext));
            }
        }

        return finalResult.and(actualResult);
View Full Code Here


        if (isEnrollingInCourseGroupsOnly(enrolmentContext, sourceDegreeModuleToEvaluate)) {
            return RuleResult.createNA(sourceDegreeModuleToEvaluate.getDegreeModule());
        }

        final PreviousYearsEnrolmentCurricularRule previousYearsEnrolmentCurricularRule =
                (PreviousYearsEnrolmentCurricularRule) curricularRule;
        final Map<Integer, Set<CurricularCourse>> curricularCoursesToEnrolByYear =
                getCurricularCoursesToEnrolByYear(previousYearsEnrolmentCurricularRule, enrolmentContext,
                        sourceDegreeModuleToEvaluate, false);
View Full Code Here

        if (isEnrollingInCourseGroupsOnly(enrolmentContext, sourceDegreeModuleToEvaluate)) {
            return RuleResult.createNA(sourceDegreeModuleToEvaluate.getDegreeModule());
        }

        final PreviousYearsEnrolmentCurricularRule previousYearsEnrolmentCurricularRule =
                (PreviousYearsEnrolmentCurricularRule) curricularRule;
        final Map<Integer, Set<CurricularCourse>> curricularCoursesToEnrolByYear =
                getCurricularCoursesToEnrolByYear(previousYearsEnrolmentCurricularRule, enrolmentContext,
                        sourceDegreeModuleToEvaluate, false);
        final Map<Integer, Set<CurricularCourse>> curricularCoursesToEnrolByYearWithTemporaries =
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.curricularRules.PreviousYearsEnrolmentCurricularRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.