Class StarRating

  • All Implemented Interfaces:
    fr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult

    public class StarRating
    extends Rating
    • Constructor Detail

      • StarRating

        public StarRating()
    • Method Detail

      • getScoreValue

        public double getScoreValue()
        Overrides:
        getScoreValue in class Rating
        Returns:
        the dScoreValue
      • getAverageScore

        public double getAverageScore()
        Calculate the score (min : 1 - max : 4).
        Returns:
        the average score
      • getAverageScoreRoundToHalf

        public double getAverageScoreRoundToHalf()
        Returns:
        the average score calculated with 0.5 precision
      • getTitle

        public String getTitle()
        Description copied from class: Rating
        Get tilte of the rating type
        Specified by:
        getTitle in class Rating
        Returns:
        title