Examples of Rating


Examples of com.ryp.bo.Rating

        RateYourPlaceService service = getRYPService();

        Place place = getIgeliPlace();

        String ratingComment = "somecomment";
        Rating rating = new Rating();
        rating.setComment(ratingComment);
        rating.setRate(Rate.R10);
       
        service.ratePlace(place, rating);
       
        TotalRating totalRating = service.getTotalRating(place);
       
View Full Code Here

Examples of com.ryp.bo.Rating

        RateYourPlaceService service = getRYPService();

        Place place = getIgeliPlace();

        String ratingComment = "somecomment";
        Rating rating = new Rating();
        rating.setComment(ratingComment);
        Rate r1 = Rate.R10;
        rating.setRate(r1);

        service.ratePlace(place, rating);

        rating = new Rating();
        rating.setComment(ratingComment);
        Rate r2 = Rate.R5;
        rating.setRate(r2);

        service.ratePlace(place, rating);

        rating = new Rating();
        rating.setComment(ratingComment);
        Rate r3 = Rate.R3;
        rating.setRate(r3);
       
        service.ratePlace(place, rating);

        int avgRate = ((r1.getValue() + r2.getValue() + r3.getValue()) / 3);
        Rate totalRate = Rate.valueOf(avgRate);
View Full Code Here

Examples of de.peacei.gae.foodsupplier.data.Rating

          user = new User();
          user.setEmail(email);
          user.setName(name);
        }   
       
        final Rating rating = new Rating();
        rating.setUser(user);
        rating.setFoodKey(key);
       
        if(value==Finals.RATING_POSITIVE) {
          rating.setValue(Rating.Value.positive);
        } else {
          rating.setValue(Rating.Value.negative);
        }
       
        DateTime dateTime = new DateTime(DateTimeZone.forTimeZone(CalendarUtil.getCalendar().getTimeZone()));
        rating.setTimestamp(dateTime.getMillis());
       
        ratingDAO.saveRating(rating);
       
//        final Comment comment = new Comment();
//        comment.setUser(user);
View Full Code Here

Examples of edu.chl.jadetalk.core.Rating

    public double getAverageRating(){
        return getImage().getRating();
    }
   
    public double getMyRating(){
        Rating rating = getUserRating();
        return rating != null ? (double)rating.getValue() : 0;
    }
View Full Code Here

Examples of models.Rating

        }
        else
        {
            Module module = form.get();
            module.owner = user;
            module.rating = new Rating(true);
            module.save();

            createHistoricalEvent("New module - " + module.name,
                                  String.format("%s (%s) created a new module - %s",
                                                user.displayName,
View Full Code Here

Examples of org.adoptopenjdk.lambda.tutorial.exercise5.musicplayer.Rating

     */
    @Test
    public void overridesDefaultMethodInClassToProvideCustomSongRatingAlgorithm() {
        MusicLibrary library = new CloudScrobblingMusicLibrary();

        assertThat(library.ratingOf(new Song("Candy", "Paulo Nutini")), is(new Rating(78)));
        assertThat(CloudScrobblingMusicLibrary.class, HasConcreteMethod.called("ratingOf"));
    }
View Full Code Here

Examples of org.apache.spark.mllib.recommendation.Rating

    public Rating call(String line) {
      String[] tok = COMMA.split(line);
      int x = Integer.parseInt(tok[0]);
      int y = Integer.parseInt(tok[1]);
      double rating = Double.parseDouble(tok[2]);
      return new Rating(x, y, rating);
    }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.Rating

   *            the weight of the Rating relation
   * @return the created ApplicableElement
   */
  public Rating createRatingRelation(Element sourceElement,
      Element targetElement, float weight) {
    Rating result =  applicableElementCache.createRatingRelation(sourceElement,
        targetElement, weight);
    notifyCacheChangeListeners();
    return result;
  }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.Rating

    applicableElementCache = new GSSQueryCache(queryResultSet, accessLayer);
    applicableElementCache.initCache();
 
   

    Rating rating = applicableElementCache.createRatingRelation(si1, g1, 100.0f);
   
   
    assertEquals(1, queryResultSet.getRatings().size());
    assertEquals(rating, queryResultSet.getRatings().get(0));
   
    assertEquals(si1,rating.getSource());
    assertEquals(g1,rating.getTarget());
    assertEquals("100.0",rating.getWeight());
 
  }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.Rating

    applicableElementCache = new GSSQueryCache(queryResultSet, accessLayer);
    applicableElementCache.initCache();
 
   

    Rating r1 = applicableElementCache.createRatingRelation(si1, g1, 100.0f);
    Rating r2 =applicableElementCache.createRatingRelation(si2, g1, 50.0f);
   
   
    assertEquals(r1, applicableElementCache.getRatingRelation(si1, g1));
    assertEquals(r2, applicableElementCache.getRatingRelation(si2, g1));
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.