|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RatingAverageCalculator
A RatingAverageCalculator can be used in order to calculate the
average value for given RatingSpace
s or Rating
s.
A RatingAverageCalculator
may be plugged in using the extension
point EXTENSION_POINT_ID
. RatingAverageCalculator
implementations
must provide a 0-argument constructor.
Field Summary | |
---|---|
static java.lang.String |
ATTR_CLASS
name of the class attribute used for instantiation |
static java.lang.String |
EXTENSION_POINT_ID
Extension point whihc can be used to plug in different rating average calculation strategies |
Method Summary | |
---|---|
double |
averageFromRatings(IterableListModel<Rating> ratings)
Calculates the average for a given list of Rating s |
double |
averageFromRatingSpaces(IterableListModel<RatingSpace> ratingSpaces)
Calculates the average for a given list of RatingSpace s |
Field Detail |
---|
static final java.lang.String EXTENSION_POINT_ID
static final java.lang.String ATTR_CLASS
Method Detail |
---|
double averageFromRatingSpaces(IterableListModel<RatingSpace> ratingSpaces)
RatingSpace
s
ratingSpaces
- The rating spaces serving as calculation base
double averageFromRatings(IterableListModel<Rating> ratings)
Rating
s
ratings
- The ratings serving as calculation base
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |