ch.hsr.bieridee.domain
Class Recommendation
java.lang.Object
ch.hsr.bieridee.domain.Recommendation
public class Recommendation
- extends java.lang.Object
Class representing a Recommendation.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Recommendation
public Recommendation(double weight,
double normalizedWeight,
User user,
Beer beer)
- Parameters:
weight
- absolute relevance of the recommendationnormalizedWeight
- normalized relevance of the recommendeationuser
- The User
to which the recommendation matches.beer
- The Beer
that is recommended.
getWeight
public double getWeight()
setWeight
public void setWeight(double weight)
getNormalizedWeight
public double getNormalizedWeight()
setNormalizedWeight
public void setNormalizedWeight(double normalizedWeight)
getUser
public User getUser()
setUser
public void setUser(User user)
getBeer
public Beer getBeer()
setBeer
public void setBeer(Beer beer)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object