Package org.fenixedu.academic.domain.space

Examples of org.fenixedu.academic.domain.space.LessonSpaceOccupation


                get(allocatableSpace);
            }
        }

        public void register(final Lesson lesson) {
            final LessonSpaceOccupation lessonSpaceOccupation = lesson.getLessonSpaceOccupation();
            if (lessonSpaceOccupation != null) {
                final Space allocatableSpace = lessonSpaceOccupation.getRoom();
                if (allocatableSpace != null) {
                    final boolean[][] slots = get(allocatableSpace);
                    final int weekDayOffSet = lesson.getDiaSemana().getDiaSemana().intValue() - 2;
                    final int startOffSet = getHourOffSet(lesson.getBeginHourMinuteSecond());
                    final int endOffSet = getHourOffSet(lesson.getEndHourMinuteSecond());
View Full Code Here


        setPeriod(period);

        checkShiftLoad(shift);

        if (room != null) {
            new LessonSpaceOccupation(room, this);
        }
    }
View Full Code Here

        setPeriod(period);

        checkShiftLoad(shift);

        if (room != null) {
            new LessonSpaceOccupation(room, this);
        }
    }
View Full Code Here

        final HourMinuteSecond end = getEndHourMinuteSecond();
        return start != null && end != null && start.isBefore(end);
    }

    private void lessonSpaceOccupationManagement(Space newRoom) {
        LessonSpaceOccupation lessonSpaceOccupation = getLessonSpaceOccupation();
        if (newRoom != null) {
            if (!wasFinished()) {
                if (lessonSpaceOccupation == null) {
                    lessonSpaceOccupation = new LessonSpaceOccupation(newRoom, this);
                } else {
                    lessonSpaceOccupation.edit(newRoom);
                }
            }
        } else {
            if (lessonSpaceOccupation != null) {
                lessonSpaceOccupation.delete();
            }
        }
        for (final LessonInstance lessonInstance : getLessonInstancesSet()) {
            if (lessonInstance.getDay().isAfter(new LocalDate())) {
                if (newRoom == null) {
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.space.LessonSpaceOccupation

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.