public abstract class AbstractRecommenderData extends Object implements RecommenderData
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disableUpdates |
protected ArrayList<Updatable> |
updatables |
| Constructor and Description |
|---|
AbstractRecommenderData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(int itemID,
List<Integer> ratingUsers,
List<Double> ratings) |
void |
addUser(int userID,
List<Integer> ratedItems,
List<Double> ratings) |
void |
attachUpdatable(Updatable obj) |
void |
clear() |
void |
close() |
void |
disableUpdates(boolean disable) |
void |
removeItem(int itemID) |
void |
removeRating(int userID,
int itemID) |
void |
removeUser(int userID) |
void |
setRating(int userID,
int itemID,
double rating) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountRatingsItem, countRatingsUser, getAvgRatingItem, getAvgRatingUser, getGlobalMean, getItems, getMaxRating, getMinRating, getNumItems, getNumRatings, getNumUsers, getRating, getRatingsItem, getRatingsUser, getUsers, itemExists, ratingIterator, userExistspublic void disableUpdates(boolean disable)
disableUpdates in interface RecommenderDatapublic void addUser(int userID,
List<Integer> ratedItems,
List<Double> ratings)
addUser in interface RecommenderDatapublic void removeUser(int userID)
removeUser in interface RecommenderDatapublic void addItem(int itemID,
List<Integer> ratingUsers,
List<Double> ratings)
addItem in interface RecommenderDatapublic void removeItem(int itemID)
removeItem in interface RecommenderDatapublic void setRating(int userID,
int itemID,
double rating)
setRating in interface RecommenderDatapublic void removeRating(int userID,
int itemID)
removeRating in interface RecommenderDatapublic void attachUpdatable(Updatable obj)
attachUpdatable in interface RecommenderDatapublic void clear()
clear in interface RecommenderDatapublic void close()
close in interface RecommenderDataCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.