|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject de.uka.ipd.consensus.foundation.AbstractConsensusFoundationEvent de.uka.ipd.consensus.foundation.scoring.ScoringEvent
Event objects of this type are passed to ScoringListeners.
ScoringListener
,
Serialized FormField Summary | |
static int |
ASSOCIATION_CREATED
The event id if a user created an association. |
static int |
ASSOCIATION_DELETED
The event id if a user deleted an association. |
static int |
ASSOCIATION_TOPIC_ADDED
The event id if a topic joins an association as a player. |
static int |
ASSOCIATION_TOPIC_REMOVED
The event id if a topic leaves an association as a player. |
static int |
ATTRIBUTE_ADDED
The event id if an attribute is added to a topic. |
static int |
ATTRIBUTE_REMOVED
The event id if an attribute is removed from a topic. |
static int |
ATTRIBUTE_VALUE_CHANGED
The event id if the value of an attribute is changed. |
static int |
CONCEPT_COMMENT_CHANGED
The event id if a user changed the comment of a concept. |
static int |
CONCEPT_NAME_CHANGED
The event id if a user changed the name of a concept. |
static int |
CONCEPT_RATING_CHANGED
The event id if the value of an existing concept rating has been changed. |
static int |
CONCEPT_RATING_REMOVED
The event id if a rating has been removed from a concept. |
static int |
CONCEPT_RATING_SET
The event id if a new rating has been assigned to a concept. |
static int |
CONCEPT_TYPE_CHANGED
The event id if a user add/removed a type to/from a concept. |
static int |
OCCURRENCE_CHANGED
The event id if the value of an occurrence is changed. |
static int |
OCCURRENCE_CREATED
The event id if an occurrence is created (added to a topic). |
static int |
OCCURRENCE_REMOVED
The event id if an occurrence is removed from a topic. |
static int |
SYNONYM_ADDED
The event id if a synonym association is established between two topics. |
static int |
SYNONYM_REMOVED
The event id if a synonym association between two topics is removed. |
static int |
TOPIC_CLASS_CHANGED
The event id if a user changed the classes of a topic. |
static int |
TOPIC_CREATED
The event id if a user created a topic. |
static int |
TOPIC_DELETED
The event id if a user deleted a topic. |
static int |
TOPICS_MERGED
The event id if a user merged two topics. |
static int |
USER_RATING_CHANGED
The event id if the value of an existing user rating has been changed. |
static int |
USER_RATING_REMOVED
The event id if a rating has been removed from a user. |
static int |
USER_RATING_SET
The event id if a new rating has been assigned to a user. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ScoringEvent(ConsensusFoundationManager cfm,
User source,
int id,
Concept concept,
User ratedUser,
Rating rating,
double oldRatingValue,
String oldValue,
Topic oldType,
Topic topic,
Occurrence occurrence,
Synonym synonym)
|
Method Summary | |
Concept |
getConcept()
If the event happened on a concept, the concept is returned. |
int |
getId()
Returns the event type (id). |
Occurrence |
getOccurrence()
Returns the occurrence for occurrence events (creating, changing, removing). |
double |
getOldRatingValue()
If an existing rating was changed, this method returns the old rating value. |
Topic |
getOldType()
If the type of a concept changes, this method returns the old type. |
String |
getOldValue()
If a string value (like a concept name or an occurrence value) was changed, this method returns the old value. |
User |
getRatedUser()
If a user rates another user, this method returns the rated user. |
Rating |
getRating()
If a new rating was created or an existing rating was changed, this method returns the current rating object. |
Synonym |
getSynonym()
If a synonym is added or removed, this method returns the Synonym object. |
Topic |
getTopic()
If an event happens on two topics (e.g. if two topics are merged), this method returns the second topic. |
User |
getUser()
Returns the user who caused the event, i.e. the user who created or rated an element etc. |
Methods inherited from class de.uka.ipd.consensus.foundation.AbstractConsensusFoundationEvent |
getDynamicRightsManager, getEvolutionManager, getIncentiveManager, getLoggingManager, getOntologyManager, getRatingManager, getUserManager, getVersion |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONCEPT_RATING_SET
getId()
,
Constant Field Valuespublic static final int CONCEPT_RATING_CHANGED
getId()
,
Constant Field Valuespublic static final int CONCEPT_RATING_REMOVED
getId()
,
Constant Field Valuespublic static final int USER_RATING_SET
getId()
,
Constant Field Valuespublic static final int USER_RATING_CHANGED
getId()
,
Constant Field Valuespublic static final int USER_RATING_REMOVED
getId()
,
Constant Field Valuespublic static final int TOPIC_CREATED
getId()
,
Constant Field Valuespublic static final int TOPIC_DELETED
getId()
,
Constant Field Valuespublic static final int TOPICS_MERGED
getId()
,
Constant Field Valuespublic static final int ASSOCIATION_CREATED
getId()
,
Constant Field Valuespublic static final int ASSOCIATION_DELETED
getId()
,
Constant Field Valuespublic static final int CONCEPT_COMMENT_CHANGED
getId()
,
Constant Field Valuespublic static final int CONCEPT_NAME_CHANGED
getId()
,
Constant Field Valuespublic static final int CONCEPT_TYPE_CHANGED
getId()
,
Constant Field Valuespublic static final int TOPIC_CLASS_CHANGED
getId()
,
Constant Field Valuespublic static final int ASSOCIATION_TOPIC_ADDED
getId()
,
Constant Field Valuespublic static final int ASSOCIATION_TOPIC_REMOVED
getId()
,
Constant Field Valuespublic static final int OCCURRENCE_CREATED
getId()
,
Constant Field Valuespublic static final int OCCURRENCE_CHANGED
getId()
,
Constant Field Valuespublic static final int OCCURRENCE_REMOVED
getId()
,
Constant Field Valuespublic static final int ATTRIBUTE_ADDED
getId()
,
Constant Field Valuespublic static final int ATTRIBUTE_VALUE_CHANGED
getId()
,
Constant Field Valuespublic static final int ATTRIBUTE_REMOVED
getId()
,
Constant Field Valuespublic static final int SYNONYM_ADDED
getId()
,
Constant Field Valuespublic static final int SYNONYM_REMOVED
getId()
,
Constant Field ValuesConstructor Detail |
public ScoringEvent(ConsensusFoundationManager cfm, User source, int id, Concept concept, User ratedUser, Rating rating, double oldRatingValue, String oldValue, Topic oldType, Topic topic, Occurrence occurrence, Synonym synonym)
Method Detail |
public User getUser()
public int getId()
public Concept getConcept()
null
public User getRatedUser()
getUser()
public Rating getRating()
public double getOldRatingValue()
public String getOldValue()
public Topic getOldType()
null
is returned if the concept did not have a type before.
public Topic getTopic()
getConcept()
public Occurrence getOccurrence()
public Synonym getSynonym()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |