edu.qut.cs.rcmd.core.model.tag.impl
Class GenericTagScore

java.lang.Object
  extended by edu.qut.cs.rcmd.core.model.tag.impl.GenericTagScore
All Implemented Interfaces:
TagScore

public class GenericTagScore
extends Object
implements TagScore

Author:
n7374186

Constructor Summary
GenericTagScore()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTagScore

public GenericTagScore()
Method Detail

getUserID

public long getUserID()
Specified by:
getUserID in interface TagScore
Returns:
ID of user who use this tag to tag this item

getItemID

public long getItemID()
Specified by:
getItemID in interface TagScore
Returns:
item ID that is tagged by this user for this item

getTag

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

setUserID

public void setUserID(long userID)
Description copied from interface: TagScore
Sets the userID for this tag preference

Specified by:
setUserID in interface TagScore

setItemID

public void setItemID(long itemID)
Description copied from interface: TagScore
Sets the itemID for this tag preference

Specified by:
setItemID in interface TagScore

setTag

public void setTag(String tag)
Description copied from interface: TagScore
Sets the tag for this item by this user

Specified by:
setTag in interface TagScore

getValue

public float getValue()
Specified by:
getValue in interface TagScore
Returns:
score of the preference for that user,item, tag.

setValue

public void setValue(float value)
Description copied from interface: TagScore
Sets the score for this user, item, tag.

Specified by:
setValue in interface TagScore
Parameters:
value - new score


Copyright © 2012. All Rights Reserved.