Examples of Day


Examples of org.ocpsoft.prettytime.units.Day

      addUnit(new JustNow());
      addUnit(new Millisecond());
      addUnit(new Second());
      addUnit(new Minute());
      addUnit(new Hour());
      addUnit(new Day());
      addUnit(new Week());
      addUnit(new Month());
      addUnit(new Year());
      addUnit(new Decade());
      addUnit(new Century());
View Full Code Here

Examples of org.openmeetings.app.data.calendar.beans.Day

            Calendar tCal = Calendar.getInstance(timezone);
            tCal.setTimeInMillis(startWeekDay.getTimeInMillis()
                + (z * 86400000L));
           
            Day day = new Day(tCal.getTime());
           
            for (Appointment appointment : appointments) {
              if (appointment
                  .appointmentStartAsCalendar(timezone).get(
                      Calendar.MONTH) == tCal
                  .get(Calendar.MONTH)
                  && appointment.appointmentStartAsCalendar(
                      timezone).get(Calendar.DATE) == tCal
                      .get(Calendar.DATE)) {
                day.getAppointments().add(
                    new AppointmentDTO(appointment,
                        timezone));
              }
            }

View Full Code Here

Examples of org.optaplanner.examples.curriculumcourse.domain.Day

                CourseSchedule schedule, int dayListSize, int timeslotListSize) throws IOException {
            int periodListSize = dayListSize * timeslotListSize;
            Map<List<Integer>, Period> periodMap = new HashMap<List<Integer>, Period>(periodListSize);
            List<Day> dayList = new ArrayList<Day>(dayListSize);
            for (int i = 0; i < dayListSize; i++) {
                Day day = new Day();
                day.setId((long) i);
                day.setDayIndex(i);
                day.setPeriodList(new ArrayList<Period>(timeslotListSize));
                dayList.add(day);
            }
            schedule.setDayList(dayList);
            List<Timeslot> timeslotList = new ArrayList<Timeslot>(timeslotListSize);
            for (int i = 0; i < timeslotListSize; i++) {
                Timeslot timeslot = new Timeslot();
                timeslot.setId((long) i);
                timeslot.setTimeslotIndex(i);
                timeslotList.add(timeslot);
            }
            schedule.setTimeslotList(timeslotList);
            List<Period> periodList = new ArrayList<Period>(periodListSize);
            for (int i = 0; i < dayListSize; i++) {
                Day day = dayList.get(i);
                for (int j = 0; j < timeslotListSize; j++) {
                    Period period = new Period();
                    period.setId((long) (i * timeslotListSize + j));
                    period.setDay(day);
                    period.setTimeslot(timeslotList.get(j));
                    periodList.add(period);
                    periodMap.put(Arrays.asList(i, j), period);
                    day.getPeriodList().add(period);
                }
            }
            schedule.setPeriodList(periodList);
            return periodMap;
        }
View Full Code Here

Examples of org.optaplanner.examples.tennis.domain.Day

        teamList.add(new Team(6L, "Tobias"));
        tennisSolution.setTeamList(teamList);

        List<Day> dayList = new ArrayList<Day>();
        for (int i = 0; i < 18; i++) {
            dayList.add(new Day(i, i));
        }
        tennisSolution.setDayList(dayList);

        List<UnavailabilityPenalty> unavailabilityPenaltyList = new ArrayList<UnavailabilityPenalty>();
        unavailabilityPenaltyList.add(new UnavailabilityPenalty(teamList.get(4), dayList.get(0)));
View Full Code Here

Examples of org.optaplanner.examples.travelingtournament.domain.Day

        /**
         * @TODO clean up this code
         */
        private void addDayRotation(List<Move> moveList) {
            for (ListIterator<Day> firstDayIt = dayList.listIterator(); firstDayIt.hasNext();) {
                Day firstDay = firstDayIt.next();
                Map<Team, Match> firstDayTeamMap = dayTeamMap.get(firstDay);
                for (ListIterator<Day> secondDayIt = dayList.listIterator(firstDayIt.nextIndex()); secondDayIt.hasNext();) {
                    Day secondDay = secondDayIt.next();
                    List<Match> clonedFirstDayMatchList = new ArrayList<Match>(firstDayTeamMap.values());
                    while (!clonedFirstDayMatchList.isEmpty()) {
                        List<Match> rotateList = new ArrayList<Match>(4);
                        Match startMatch = clonedFirstDayMatchList.remove(0);
                        boolean otherInFirst = false;
View Full Code Here

Examples of utils.Day

        //STUB
        Collaborator author = getDao().getById(Collaborator.class, getUserInfo().getCurrentCollaboratorId());
        //ENDSTUB

        Day day = new  Day(dto.getYear(), dto.getMonth(), dto.getDay());

        DetachedCriteria queryCriteria = DetachedCriteria.forClass(SheduleReception.class)
                .add(Property.forName("register").ge(day.getDate()))
                .add(Property.forName("register").le(day.getEndDate()))
                .add(Property.forName("author").eq(author))
                .addOrder(Property.forName("begin").asc());

        if (dto.getCollaborator() != null) {
            queryCriteria.add(Property.forName("collaborator").eq(dto.getCollaborator()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.