|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.recommender.clients.console.ClientCFManager
A wrapper class for the CFEngine interface. The console client makes requests to this class, which then passes the requests on to the client. All references to the CFEngine are isolated in this class.
CFEngine
Method Summary | |
void |
addRating(User user,
Item item,
int rating)
Wrapper for CFEngine.setRating() |
int |
addRatingList(Rating[] ratings)
Wrapper for CFEngine.setRatingList |
float |
getErrRating()
Query the server to determine the rating value that is returned to indicate that the system has no rating for an item or cannot produce a prediction for an item . |
static ClientCFManager |
getInstance(java.lang.String serverHostName)
|
User[] |
getItemRatingList(Item item)
Wrapper for CFEngine.getItemRatingList |
float |
getMaxRating()
Query the server to determine the maximum rating value supported for the current data. |
float |
getMinRating()
Query the server to determine the minimum rating value supported for the current data. |
Prediction |
getPredictedRating(User user,
Item item)
Wrapper for CFEngine.getPredictedRating |
Prediction[] |
getPredictedRatings(User user,
Item[] itemArray)
Wrapper for CFEngine.getPredictedRatings() |
Rating |
getRating(User user,
Item item)
Wrapper for CFEngine.getRating() |
Prediction[] |
getRecommendations(User user,
int number,
int offset)
Wrapper for CFEngine.getRecommendations |
(package private) Prediction[] |
getRecommendationsByType(User user,
Type type,
int number,
int offset)
Wrapper for CFEngine.getRecommendationsByType |
Rating[] |
getUserRatingList(User user)
Wrapper for CFEngine.getUserRatingList() |
void |
removeRating(User user,
Item item)
Removes a single rating from the CFEngine. |
int |
removeRatingList(User user,
Item[] items)
Wrapper for CFEngine.removeRatingList |
void |
setServer(CFEngine engine)
Setter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ClientCFManager getInstance(java.lang.String serverHostName)
public void setServer(CFEngine engine)
engine
- The CFEngine interface used to communicate with the serverpublic User[] getItemRatingList(Item item)
item
-
CFEngine
public Rating[] getUserRatingList(User user)
user
-
CFEngine
public Rating getRating(User user, Item item)
user
- item
-
CFEngine
public void addRating(User user, Item item, int rating)
user
- item
- rating
- CFEngine
public int addRatingList(Rating[] ratings)
ratings
-
CFEngine
public void removeRating(User user, Item item)
user
- item
- public int removeRatingList(User user, Item[] items)
user
- items
- - An array of items for which ratings are to be removed
CFEngine
public Prediction getPredictedRating(User user, Item item)
user
- item
-
CFEngine
public Prediction[] getPredictedRatings(User user, Item[] itemArray)
user
- itemArray
-
CFEngine
public Prediction[] getRecommendations(User user, int number, int offset)
user
- number
- offset
-
CFEngine
Prediction[] getRecommendationsByType(User user, Type type, int number, int offset)
user
- type
- number
- offset
-
public float getMinRating()
public float getMaxRating()
public float getErrRating()
|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |