/** * Update track with morning schedule. * * @param morningConfrence the morning confrence */ public void updateTrackWithMorningSchedule(List<Confrence> morningConfrence) { currentTrack.setMorningSession(morningConfrence); smokeAlreadyScheduledConfrence(morningConfrence); if (!currentInput.isEmpty()) { // more to go.lets do it in afternoon session afternoonSessionScheduler = new ConfrenceScheduler( ConfTrackMgmntConstant.AFTERNOON_SESSION_TOLERANCE, ConfrenceSchedulerType.AFTERNOON_SCHEDULER, this); afternoonSessionScheduler.scheduleConfrenceWithinTargetDuration( ConfTrackMgmntConstant.AFTERNOON_SESSION_TARGET_DURATION, currentInput); } else { // We are done with scheduling possibleTracks.add(currentTrack); // add current track to possible track list view.displayTrackList(possibleTracks); } }
/** * Update track with after noon schedule. * * @param afternoonConfrence the afternoon confrence */ public void updateTrackWithAfterNoonSchedule(List<Confrence> afternoonConfrence) { currentTrack.setAfterNoonSession(afternoonConfrence); // done for current track. Lets add this in track list possibleTracks.add(currentTrack); smokeAlreadyScheduledConfrence(afternoonConfrence); if (!currentInput.isEmpty()) { // more to go.lets do it in morning session of new track currentTrack = new Tracks(); morningSessionScheduler = new ConfrenceScheduler( ConfTrackMgmntConstant.MORNING_SESSION_TOLERANCE, ConfrenceSchedulerType.MORNING_SCHEDULER, this); morningSessionScheduler.scheduleConfrenceWithinTargetDuration( ConfTrackMgmntConstant.MORNING_SESSION_TARGET_DURATION, currentInput); } else { // We are done with scheduling ,since current track already added to track list ,just display // the entire tracklist view.displayTrackList(possibleTracks); } }