|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uka.ipd.consensus.impl.SynonymImpl
TODO
| Constructor Summary | |
protected |
SynonymImpl(Topic topic,
Topic synonym,
Association assoc)
|
| Method Summary | |
Rating |
addRating(User rater,
double value)
Adds a rating for the given user to this element. |
int |
compareTo(Object other)
|
boolean |
equals(Object other)
|
double |
getAverageRatingValue()
Returns the average value (the arithmetic mean) of all current ratings for this element. |
String |
getId()
Returns the id of the element that is unique within the ontology. |
Rating |
getRating(User rater)
Returns the rating of the given user for this element. |
Collection |
getRatings()
Returns a collection of all current Rating objects (from different users) for this element. |
int |
getRatingsCount()
Returns the number of ratings for this element. |
Topic |
getSynonym()
Returns the synonymous topic of a synonym-relationship between two topics. |
Topic |
getTopic()
Returns the base topic of a synonym-relationship between two topics, i.e. the topic from which the Synonym object is retrieved. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected SynonymImpl(Topic topic,
Topic synonym,
Association assoc)
| Method Detail |
public Topic getTopic()
Synonym
getTopic in interface Synonymnullpublic Topic getSynonym()
Synonym
getSynonym in interface Synonymnullpublic String getId()
Rateable
getId in interface Rateablenull)
public Rating addRating(User rater,
double value)
throws RatingManagerException,
DynamicRightsManagerException
RateableRatingManager methods.
addRating in interface Rateablerater - the user who wants to add or change the ratingvalue - the new value
DynamicRightsManagerException - if the user is not allowed to rate this element
RatingManagerException - if the rating could not be created/changedRatingManager,
DynamicRightsManager.mayAddRating(Rating, Rateable)public Collection getRatings()
RateablegetRatings() methods of RatingManager.
getRatings in interface RateablenullRating,
RatingManagerpublic int getRatingsCount()
Rateable
getRatingsCount in interface Rateablepublic Rating getRating(User rater)
RateablegetRatings() methods of RatingManager.
getRating in interface Rateablerater - the user who's rating shall be returned
null if the user hasn't rated this element yetRatingManagerpublic double getAverageRatingValue()
Rateable
getAverageRatingValue in interface Rateablepublic boolean equals(Object other)
public int hashCode()
public int compareTo(Object other)
compareTo in interface Comparablepublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||