edu.qut.cs.rcmd.core.model.tag
Interface TagScore

All Known Implementing Classes:
GenericTagScore

public interface TagScore

Author:
n7374186 tag preference interface encapsulate the ternary relationships of User, Item, Tag

Method Summary
 long getItemID()
           
 String getTag()
           
 long getUserID()
           
 float getValue()
           
 void setItemID(long itemID)
          Sets the itemID for this tag preference
 void setTag(String tag)
          Sets the tag for this item by this user
 void setUserID(long userID)
          Sets the userID for this tag preference
 void setValue(float value)
          Sets the score for this user, item, tag.
 

Method Detail

getUserID

long getUserID()
Returns:
ID of user who use this tag to tag this item

getItemID

long getItemID()
Returns:
item ID that is tagged by this user for this item

getTag

String getTag()
Returns:
the tag used for this item by this user. Note: Implicit preference (rating);

setUserID

void setUserID(long userID)
Sets the userID for this tag preference

Parameters:
value - the userID

setItemID

void setItemID(long itemID)
Sets the itemID for this tag preference

Parameters:
value - the itemID

setTag

void setTag(String tag)
Sets the tag for this item by this user

Parameters:
value - new tag

getValue

float getValue()
Returns:
score of the preference for that user,item, tag.

setValue

void setValue(float value)
Sets the score for this user, item, tag.

Parameters:
value - new score


Copyright © 2012. All Rights Reserved.