CFEngine API

org.recommender.server
Class ItemRating

java.lang.Object
  |
  +--org.recommender.server.ItemRating
All Implemented Interfaces:
java.io.Serializable

public class ItemRating
extends java.lang.Object
implements java.io.Serializable

Describes the Rating info for the CF Engine - userID, itemID, and rating.

Author:
Irwin Yoon
See Also:
Serialized Form

Constructor Summary
ItemRating(int userID, int itemID, float rating)
          Constructor.
 
Method Summary
 int getItemID()
          Accessor, return itemID.
 float getRating()
          Accessor, return rating.
 int getUserID()
          Accessor, return userID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemRating

public ItemRating(int userID,
                  int itemID,
                  float rating)
Constructor.

Parameters:
userID -
itemID -
rating -
Method Detail

getUserID

public int getUserID()
Accessor, return userID.

Returns:
userID

getItemID

public int getItemID()
Accessor, return itemID.

Returns:
itemID

getRating

public float getRating()
Accessor, return rating.

Returns:
rating

CFEngine API

Copyright © 2003 - Oregon State University www.orst.edu