|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.util.RatingAggregator
public final class RatingAggregator
Utility class to calculate values (like average, minimum) from a consecutive
appearance of Rating
values.
IntAggregator
Constructor Summary | |
---|---|
RatingAggregator()
Create a new instance. |
Method Summary | |
---|---|
RatingAggregator |
addRating(Rating r)
Add a new Rating. |
Rating |
getAverage()
Get the average value. |
Rating |
getMax()
Get the maximum value. |
Rating |
getMin()
Get the minimum value. |
int |
getNumberOfRatings()
Get the number of Ratings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RatingAggregator()
Method Detail |
---|
public RatingAggregator addRating(Rating r)
public Rating getAverage()
public Rating getMax()
public Rating getMin()
public int getNumberOfRatings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |