|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uka.ipd.consensus.foundation.AbstractConsensusFoundationModule
de.uka.ipd.consensus.impl.IncentiveManagerImpl
TODO
| Constructor Summary | |
IncentiveManagerImpl()
|
|
| Method Summary | |
void |
addScoringListener(ScoringListener listener)
Registers a new ScoringListener. |
void |
associationCreated(OntologyEvent event)
Called by the OntologyManager when an association is created. |
void |
associationDeleted(EvolutionEvent event)
Called by the EvolutionManager when an association is deleted. |
void |
associationTopicAdded(OntologyEvent event)
Called by the OntologyManager when topic is added as a player to an association. |
void |
associationTopicRemoved(OntologyEvent event)
Called by the OntologyManager when player topic is removed from an association. |
void |
attributeAdded(OntologyEvent event)
Called by the OntologyManager when an attribute is added to a topic. |
void |
attributeRemoved(OntologyEvent event)
Called by the OntologyManager when an attribute is removed from a topic. |
void |
attributeValueChanged(OntologyEvent event)
Called by the OntologyManager when an attribute's value is changed. |
void |
conceptCommentChanged(OntologyEvent event)
Called by the OntologyManager when the comment of a concept has changed. |
void |
conceptNameChanged(OntologyEvent event)
Called by the OntologyManager when the name of a concept has changed. |
void |
conceptRatingChanged(RatingEvent event)
Called by the RatingManager when an existing concept's rating was changed. |
void |
conceptRatingRemoved(RatingEvent event)
Called by the RatingManager when a concept's rating was removed. |
void |
conceptRatingSet(RatingEvent event)
Called by the RatingManager when a new rating was added to a concept. |
void |
conceptTypeChanged(OntologyEvent event)
Called by the OntologyManager when a type is added to or removed from a concept. |
protected void |
fireScoringEvent(User source,
int id,
Concept concept,
User ratedUser,
Rating rating,
double oldRatingValue,
String oldValue,
Topic oldType,
Topic topic,
Occurrence occurrence,
Synonym synonym)
|
double |
getInitialUserScore()
Returns the initial score for newly created users. |
String |
getVersion()
Returns a version string of the implementation of this module. |
void |
init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology)
This method is called by the ConsensusFoundation constructor to initialize the IncentiveManager. |
void |
initCompleted(Properties config,
ConsensusFoundationManager cfm)
This method is called by the ConsensusFoundation constructor after all available modules have
been initialized (i.e. their init() method has been called). |
void |
occurrenceChanged(OntologyEvent event)
Called by the OntologyManager when an occurrence's value is changed. |
void |
occurrenceCreated(OntologyEvent event)
Called by the OntologyManager when an occurrence is created. |
void |
occurrenceRemoved(OntologyEvent event)
Called by the OntologyManager when an occurrence is removed from a topic. |
void |
removeScoringListener(ScoringListener listener)
Removes a ScoringListener, if it is registered with the IncentiveManager (otherwise this call is ignored). |
void |
shutdown()
Called by ConsensusFoundation.shutdown() when the application shuts down.
|
void |
synonymAdded(OntologyEvent event)
Called by the OntologyManager when a synonym is added to a base topic. |
void |
synonymRemoved(OntologyEvent event)
Called by the OntologyManager when a synonym is removed from a base topic. |
void |
topicClassChanged(OntologyEvent event)
Called by the OntologyManager when a superclass is added to or removed from a topic. |
void |
topicCreated(OntologyEvent event)
Called by the OntologyManager when a topic is created. |
void |
topicDeleted(EvolutionEvent event)
Called by the EvolutionManager when a topic is deleted. |
void |
topicsMerged(EvolutionEvent event)
Called by the EvolutionManager when two topics are merged. |
void |
userRatingChanged(RatingEvent event)
Called by the RatingManager when an existing user's rating was changed. |
void |
userRatingRemoved(RatingEvent event)
Called by the RatingManager when a user's rating was removed. |
void |
userRatingSet(RatingEvent event)
Called by the RatingManager when a new rating was added to an user. |
| Methods inherited from class de.uka.ipd.consensus.foundation.AbstractConsensusFoundationModule |
finalize, getConsensusFoundationManager, getDynamicRightsManager, getEvolutionManager, getIncentiveManager, getLoggingManager, getOntologyManager, getRatingManager, getUserManager |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.uka.ipd.consensus.foundation.ConsensusFoundationModule |
getConsensusFoundationManager |
| Constructor Detail |
public IncentiveManagerImpl()
| Method Detail |
public void init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology)
throws Exception
IncentiveManagerConsensusFoundation constructor to initialize the IncentiveManager.
init in interface IncentiveManagerconfig - all entries from ConsensusFoundation.propertieslogging - the successfully initialized LoggingManager instanceusers - the the successfully initialized UserManager instanceontology - the the successfully initialized OntologyManager instance
Exception - if any error occurs (startup of the application is aborted in this case)ConsensusFoundation.ConsensusFoundation()
public void initCompleted(Properties config,
ConsensusFoundationManager cfm)
throws Exception
ConsensusFoundationModuleConsensusFoundation constructor after all available modules have
been initialized (i.e. their init() method has been called). Here a module can perform some final
initialization that is dependant on other modules.
initCompleted in interface ConsensusFoundationModuleinitCompleted in class AbstractConsensusFoundationModuleExceptionpublic void shutdown()
ConsensusFoundationModuleConsensusFoundation.shutdown() when the application shuts down.
When implementing this method make sure that the shutdown code is executed only once even if this method is called multiple times.
shutdown in interface ConsensusFoundationModuleshutdown in class AbstractConsensusFoundationModulepublic double getInitialUserScore()
IncentiveManager
getInitialUserScore in interface IncentiveManagerpublic void conceptRatingChanged(RatingEvent event)
RatingListener
conceptRatingChanged in interface RatingListenerevent - the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingSet(RatingEvent event)
RatingListener
conceptRatingSet in interface RatingListenerevent - the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingRemoved(RatingEvent event)
RatingListener
conceptRatingRemoved in interface RatingListenerevent - the RatingEvent object containing the user, the removed rating and the rated conceptpublic void userRatingChanged(RatingEvent event)
RatingListener
userRatingChanged in interface RatingListenerevent - the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingSet(RatingEvent event)
RatingListener
userRatingSet in interface RatingListenerevent - the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingRemoved(RatingEvent event)
RatingListener
userRatingRemoved in interface RatingListenerevent - the RatingEvent object containing the user, the removed rating and the rated userpublic void topicCreated(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the newly created topic.
topicCreated in interface OntologyListenerevent - the OntologyEvent object containing the user and the newly created topicpublic void associationCreated(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the newly created association.
associationCreated in interface OntologyListenerevent - the OntologyEvent object containing the user and the newly created associationpublic void conceptCommentChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base concept,
OntologyEvent.getOldValue() the comment's old value.
conceptCommentChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the comment's old valuepublic void conceptNameChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base concept,
OntologyEvent.getOldValue() the concept's old name.
conceptNameChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the concept's old namepublic void conceptTypeChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base concept,
OntologyEvent.getOldType() the concept's old type. For topics, the old type is null if a new type is added.
conceptTypeChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the concept's old typepublic void topicClassChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic.
OntologyEvent.getOldType() returns the topic's old superclass if it was removed, or null if a superclass was added.
topicClassChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the concept and the concept's old superclasspublic void associationTopicAdded(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the association,
OntologyEvent.getTopic() the added topic.
associationTopicAdded in interface OntologyListenerevent - the OntologyEvent object containing the user, the association and the added topicpublic void associationTopicRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the association,
OntologyEvent.getTopic() the removed topic.
associationTopicRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the association and the removed topicpublic void occurrenceCreated(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getOccurrence() the newly created occurrence.
occurrenceCreated in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the newly created occurrencepublic void occurrenceChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getOccurrence() the occurrence and
OntologyEvent.getOldValue() the occurrence's old value.
occurrenceChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic, the occurrence and its old valuepublic void occurrenceRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getOccurrence() the removed occurrence.
occurrenceRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the removed occurrencepublic void attributeAdded(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the added attribute,
OntologyEvent.getTopic() the base topic.
attributeAdded in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the added attributepublic void attributeRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the removed attribute,
OntologyEvent.getTopic() the base topic.
attributeRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the removed attributepublic void attributeValueChanged(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the attribute,
OntologyEvent.getOldValue() the attribute's old value.
attributeValueChanged in interface OntologyListenerevent - the OntologyEvent object containing the user, the attribute and its old valuepublic void synonymAdded(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getSynonym() the Synonym object that contains both synonymous topics.
synonymAdded in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the synonympublic void synonymRemoved(OntologyEvent event)
OntologyListenerOntologyEvent.getConcept() returns the base topic,
OntologyEvent.getSynonym() the removed Synonym object that contains both synonymous topics.
synonymRemoved in interface OntologyListenerevent - the OntologyEvent object containing the user, the topic and the synonympublic void associationDeleted(EvolutionEvent event)
EvolutionListenerEvolutionEvent.getConcept() contains the deleted association.
associationDeleted in interface EvolutionListenerevent - the EvolutionEvent object containing the user and the deleted associationEvolutionManager.deleteAssociation(User, Association)public void topicDeleted(EvolutionEvent event)
EvolutionListenerEvolutionEvent.getConcept() contains the deleted topic.
topicDeleted in interface EvolutionListenerevent - the EvolutionEvent object containing the user and the deleted topicEvolutionManager.deleteTopic(User, Topic),
EvolutionManager.deleteTopicAndSubtopics(User, Topic)public void topicsMerged(EvolutionEvent event)
EvolutionListenerEvolutionEvent.getConcept() contains one of the merged topics, EvolutionEvent.getTopic() the other.
topicsMerged in interface EvolutionListenerevent - the EvolutionEvent object containing the user and the two merged topicsEvolutionManager.mergeTopics(User, Topic, Topic)public void addScoringListener(ScoringListener listener)
IncentiveManagerConsensusFoundation.properties.
addScoringListener in interface IncentiveManagerlistener - the ScoringListener to be addedScoringListenerpublic void removeScoringListener(ScoringListener listener)
IncentiveManager
removeScoringListener in interface IncentiveManagerlistener - the ScoringListener to be removed
protected void fireScoringEvent(User source,
int id,
Concept concept,
User ratedUser,
Rating rating,
double oldRatingValue,
String oldValue,
Topic oldType,
Topic topic,
Occurrence occurrence,
Synonym synonym)
public String getVersion()
ConsensusFoundationModule
getVersion in interface ConsensusFoundationModule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||