|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents one rating given by a user to a rateable element.
User
,
Rateable
,
RatingManager
Field Summary | |
static double |
NEUTRAL
The proposed neutral value for ratings. |
static double |
NO
The proposed minimum value for ratings (disagreement). |
static double |
YES
The proposed maximum value for ratings (agreement). |
Method Summary | |
Collection |
getHistory()
Returns a collection of Rating objects that contain all older values for this rating (i.e. the rating for this element from the creator of the rating). |
Rateable |
getRateable()
Returns the rated element. |
Version |
getRatedVersion()
Returns the version of the rated element. |
double |
getValue()
Returns the rating's value from -1.0 to 1.0 (including both values). |
boolean |
isHistorical()
Checks if this rating is historic, i.e. if it contains older values than the element's current rating. |
void |
setValue(double value)
Changes the rating's value and adds the old values to the history. |
Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Versionable |
getVersion |
Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Createable |
getCreator |
Methods inherited from interface de.uka.ipd.consensus.foundation.schema.Commentatable |
getComment, setComment |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final double NO
public static final double YES
public static final double NEUTRAL
Method Detail |
public double getValue()
setValue(double)
public void setValue(double value)
value
- the new value from -1.0 to 1.0 (including both values)getValue()
,
getHistory()
,
isHistorical()
public Rateable getRateable()
Synonym
, SuperSubclass
or TypeInstance
(which are Rateable, too),
use OntologyManager.checkInternalRateable()
to convert the returned association into one of these wrappers.
OntologyManager.checkInternalRateable(Rateable)
public Version getRatedVersion()
null
if no version information is availablepublic boolean isHistorical()
true
if this rating belongs to the rating history, false
if it is a current ratinggetHistory()
,
setValue(double)
,
Commentatable.setComment(User, String)
public Collection getHistory()
null
isHistorical()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |