public class StarRating extends Rating
| Modifier and Type | Field and Description |
|---|---|
static String |
RATING_TITLE |
| Constructor and Description |
|---|
StarRating() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageScore()
Calculate the score (min : 1 - max : 4).
|
double |
getAverageScoreRoundToHalf() |
double |
getScoreValue() |
String |
getTitle()
Get tilte of the rating type
|
getIdRating, getRatingCount, getRatingType, getRatingValue, getUser, setHistory, setIdRating, setRatingCount, setRatingType, setRatingValue, setScoreValue, setScoreValue, setUsergetDateCreation, getExtendableResourceType, getExtenderType, getIdExtendableResource, getIdHistory, getIpAddress, getUserGuid, setDateCreation, setExtendableResourceType, setExtenderType, setIdExtendableResource, setIdHistory, setIpAddress, setUserGuidpublic static final String RATING_TITLE
public double getScoreValue()
getScoreValue in class Ratingpublic double getAverageScore()
public double getAverageScoreRoundToHalf()
Copyright © 2022 City of Paris. All rights reserved.