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, wait
countRatingsItem, countRatingsUser, getAvgRatingItem, getAvgRatingUser, getGlobalMean, getItems, getMaxRating, getMinRating, getNumItems, getNumRatings, getNumUsers, getRating, getRatingsItem, getRatingsUser, getUsers, itemExists, ratingIterator, userExists
public void disableUpdates(boolean disable)
disableUpdates
in interface RecommenderData
public void addUser(int userID, List<Integer> ratedItems, List<Double> ratings)
addUser
in interface RecommenderData
public void removeUser(int userID)
removeUser
in interface RecommenderData
public void addItem(int itemID, List<Integer> ratingUsers, List<Double> ratings)
addItem
in interface RecommenderData
public void removeItem(int itemID)
removeItem
in interface RecommenderData
public void setRating(int userID, int itemID, double rating)
setRating
in interface RecommenderData
public void removeRating(int userID, int itemID)
removeRating
in interface RecommenderData
public void attachUpdatable(Updatable obj)
attachUpdatable
in interface RecommenderData
public void clear()
clear
in interface RecommenderData
public void close()
close
in interface RecommenderData
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.