Examples of Season


Examples of org.fenixedu.academic.util.Season

                        InfoExam season1Exam =
                                (InfoExam) CollectionUtils.find(infoExecutionCourse.getAssociatedInfoExams(), new Predicate() {
                                    @Override
                                    public boolean evaluate(Object obj) {
                                        InfoExam infoExam = (InfoExam) obj;
                                        return infoExam.getSeason().equals(new Season(Season.SEASON1));
                                    }
                                });
                        // Get 2nd season exam
                        InfoExam season2Exam =
                                (InfoExam) CollectionUtils.find(infoExecutionCourse.getAssociatedInfoExams(), new Predicate() {
                                    @Override
                                    public boolean evaluate(Object obj) {
                                        InfoExam infoExam = (InfoExam) obj;
                                        return infoExam.getSeason().equals(new Season(Season.SEASON2));
                                    }
                                });

                        if (user.equals("public")) {
                            if (season1Exam == null && !hasComment) {
View Full Code Here

Examples of org.fenixedu.academic.util.Season

        if (!prepareArguments(executionCourseIDs, degreeModuleScopeIDs, roomsIDs)) {
            return "";
        }

        final Season season = (getSeason() != null) ? new Season(getSeason()) : null;
        try {
            CreateWrittenEvaluation.runCreateWrittenEvaluation(null, this.getBegin().getTime(), this.getBegin().getTime(), this
                    .getEnd().getTime(), executionCourseIDs, degreeModuleScopeIDs, roomsIDs, null, season, this.getDescription());

        } catch (Exception e) {
View Full Code Here

Examples of org.fenixedu.academic.util.Season

        if (!prepareArguments(executionCourseIDs, degreeModuleScopeIDs, roomsIDs)) {
            return "";
        }

        final Season season = (getSeason() != null) ? new Season(getSeason()) : null;
        try {
            EditWrittenEvaluation.runEditWrittenEvaluation(null, this.getBegin().getTime(), this.getBegin().getTime(), this
                    .getEnd().getTime(), executionCourseIDs, degreeModuleScopeIDs, roomsIDs, this.evaluationID, season, this
                    .getDescription(), null);
View Full Code Here

Examples of org.fenixedu.academic.util.Season

        ExecutionCourse executionCourse = FenixFramework.getDomainObject(getExecutionCourseID());

        final List<String> degreeModuleScopesIDs = getDegreeModuleScopeIDs(executionCourse);

        final Season season = (getSeason() != null) ? new Season(getSeason()) : null;
        try {
            CreateWrittenEvaluation.runCreateWrittenEvaluation(this.getExecutionCourseID(), this.getBegin().getTime(), this
                    .getBegin().getTime(), this.getEnd().getTime(), executionCourseIDs, degreeModuleScopesIDs, null, this
                    .getGradeScale(), season, this.getDescription());
View Full Code Here

Examples of org.fenixedu.academic.util.Season

        ExecutionCourse executionCourse = FenixFramework.getDomainObject(getExecutionCourseID());

        final List<String> degreeModuleScopesIDs = getDegreeModuleScopeIDs(executionCourse);

        final Season season = (getSeason() != null) ? new Season(getSeason()) : null;

        try {
            EditWrittenEvaluation.runEditWrittenEvaluation(this.getExecutionCourseID(), this.getBegin().getTime(), this
                    .getBegin().getTime(), this.getEnd().getTime(), executionCourseIDs, degreeModuleScopesIDs, null,
                    this.evaluationID, season, this.getDescription(), this.getGradeScale());
View Full Code Here

Examples of org.openhab.binding.astro.internal.model.Season

   * Returns the seasons of the year of the specified calendar.
   */
  public Season getSeason(Calendar calendar, double latitude) {
    int year = calendar.get(Calendar.YEAR);
    boolean isSouthernHemisphere = latitude < 0.0;
    Season season = currentSeason;
    if (currentYear != year) {
      season = new Season();
      if (!isSouthernHemisphere) {
        season.setSpring(calcEquiSol(0, year));
        season.setSummer(calcEquiSol(1, year));
        season.setAutumn(calcEquiSol(2, year));
        season.setWinter(calcEquiSol(3, year));
      } else {
        season.setSpring(calcEquiSol(2, year));
        season.setSummer(calcEquiSol(3, year));
        season.setAutumn(calcEquiSol(0, year));
        season.setWinter(calcEquiSol(1, year));
      }
      currentSeason = season;
      currentYear = year;
    }

    season.setName(!isSouthernHemisphere ? getCurrentSeasonNameNorthern(calendar) : getCurrentSeasonNameSouthern(calendar));
    return season;
  }
View Full Code Here

Examples of unify.data.Season

        try {
          int seasonNum = (Integer.parseInt(showLine.split(" :: ")[1]));
          int episodeNum = (Integer.parseInt(showLine.split(" :: ")[2]));
          String link = showLine.split(" :: ")[3];
          String label = showLine.split(" :: ")[4];
          Season season = show.findSeason(seasonNum);
          if(season==null) {
            season = show.addSeason(seasonNum);
          }
          season.addEpisode(episodeNum, link, label);
        } catch (NumberFormatException e) {
          LOGGER.severe("Invalid number format for " + showLine.split(" :: ")[1]
              + " or " + showLine.split(" :: ")[2]);
          System.exit(1);
        }
View Full Code Here

Examples of unify.data.Season

    }
    if(show==null) {
      show = new Show(title);
      rssShows.add(show);
    }
    Season season = show.findSeason(seasonInt);
    if(season==null) {
      season = show.addSeason(seasonInt);
    }
    season.addEpisode(episodeInt, link, myFeed.getLabel());
  }
View Full Code Here

Examples of unify.data.Season

  }

  private void createMenu(Menu menu, ArrayList<Show> shows) {
    for(int i=0;i<shows.size();i++) {
      Show show = shows.get(i);
      Season season = show.getSeason();
      for(Episode episode : season.getEpisodes()) {
        final Menu showMenu = new Menu(show.getTitle() + " (" + season.getNumber() + "x" + episode.getNumber() + ")");
        menu.add(showMenu);
        final MenuItem linkItem = new MenuItem(episode.getLinkLabel());       
        final URI myURL = URI.create(episode.getLink());
        linkItem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            try {
              Desktop.getDesktop().browse(myURL);
            } catch (IOException e1) {
              LOGGER.warning("IO error " + e1.toString());
            }
          }
        });
        showMenu.add(linkItem);

        addSearchItems(showMenu, season.formatSeasonEp(episode.getNumber()), show.getTitle());
      }
    }
  }
View Full Code Here

Examples of unify.data.Season

    for(int i=0;i<ShowLibrary.getInstance().newShows.size();i++) {
      final Show show = ShowLibrary.getInstance().newShows.get(i);
      final String title = show.getTitle();
      final Menu showMenu = new Menu(title);
      newShows.add(showMenu);
      final Season season = show.getSeason();
      final Episode episode = season.getEpisode();
      String linkLabel = episode.getLinkLabel();
      String link = episode.getLink();
      //Add menu items add, remove, and link
      final MenuItem addItem = new MenuItem("Move to Shows");
      final MenuItem removeItem = new MenuItem("Remove & Ignore");
      final MenuItem linkItem = new MenuItem(linkLabel);
      showMenu.add(addItem);
      showMenu.add(removeItem);
      showMenu.add(linkItem);

      //Add menu item functionality
      addItem.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          Show newShow = ShowLibrary.getInstance().addShow(show);
          Season season = newShow.addSeason(1);
          Episode episode = show.findSeason(1).findEpisode(1);
          season.addEpisode(1, episode.getLink(), episode.getLinkLabel());
          ShowLibrary.getInstance().newShows.remove(show);
          ShowLibrary.getInstance().doUpdates();
          GUI.getInstance().refresh();
        }
      });
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.