ch.hsr.bieridee.domain
Class Rating

java.lang.Object
  extended by ch.hsr.bieridee.domain.Action
      extended by ch.hsr.bieridee.domain.Rating
All Implemented Interfaces:
IDomain

public class Rating
extends Action
implements IDomain


Constructor Summary
Rating(java.util.Date date, Beer beer, User user, int value)
           
 
Method Summary
 int getValue()
           
 void setValue(int value)
           
 java.lang.String toString()
           
 
Methods inherited from class ch.hsr.bieridee.domain.Action
getBeer, getDate, getUser, setBeer, setDate, setUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rating

public Rating(java.util.Date date,
              Beer beer,
              User user,
              int value)
Parameters:
date - Date the Activity happened.
beer - The Beer associated with the activity.
user - The User created that created the activity
value - Rated value of the Beer.
Method Detail

getValue

public int getValue()

setValue

public void setValue(int value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object