|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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
IncentiveManager
ConsensusFoundation
constructor to initialize the IncentiveManager.
init
in interface IncentiveManager
config
- all entries from ConsensusFoundation.properties
logging
- 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
ConsensusFoundationModule
ConsensusFoundation
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 ConsensusFoundationModule
initCompleted
in class AbstractConsensusFoundationModule
Exception
public void shutdown()
ConsensusFoundationModule
ConsensusFoundation.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 ConsensusFoundationModule
shutdown
in class AbstractConsensusFoundationModule
public double getInitialUserScore()
IncentiveManager
getInitialUserScore
in interface IncentiveManager
public void conceptRatingChanged(RatingEvent event)
RatingListener
conceptRatingChanged
in interface RatingListener
event
- the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingSet(RatingEvent event)
RatingListener
conceptRatingSet
in interface RatingListener
event
- the RatingEvent object containing the user, his rating and the rated conceptpublic void conceptRatingRemoved(RatingEvent event)
RatingListener
conceptRatingRemoved
in interface RatingListener
event
- the RatingEvent object containing the user, the removed rating and the rated conceptpublic void userRatingChanged(RatingEvent event)
RatingListener
userRatingChanged
in interface RatingListener
event
- the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingSet(RatingEvent event)
RatingListener
userRatingSet
in interface RatingListener
event
- the RatingEvent object containing the rating user, his rating and the rated userpublic void userRatingRemoved(RatingEvent event)
RatingListener
userRatingRemoved
in interface RatingListener
event
- the RatingEvent object containing the user, the removed rating and the rated userpublic void topicCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the newly created topic.
topicCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user and the newly created topicpublic void associationCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the newly created association.
associationCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user and the newly created associationpublic void conceptCommentChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldValue()
the comment's old value.
conceptCommentChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the comment's old valuepublic void conceptNameChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base concept,
OntologyEvent.getOldValue()
the concept's old name.
conceptNameChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old namepublic void conceptTypeChanged(OntologyEvent event)
OntologyListener
OntologyEvent.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 OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old typepublic void topicClassChanged(OntologyEvent event)
OntologyListener
OntologyEvent.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 OntologyListener
event
- the OntologyEvent object containing the user, the concept and the concept's old superclasspublic void associationTopicAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the association,
OntologyEvent.getTopic()
the added topic.
associationTopicAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the association and the added topicpublic void associationTopicRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the association,
OntologyEvent.getTopic()
the removed topic.
associationTopicRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the association and the removed topicpublic void occurrenceCreated(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the newly created occurrence.
occurrenceCreated
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the newly created occurrencepublic void occurrenceChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the occurrence and
OntologyEvent.getOldValue()
the occurrence's old value.
occurrenceChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic, the occurrence and its old valuepublic void occurrenceRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getOccurrence()
the removed occurrence.
occurrenceRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the removed occurrencepublic void attributeAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the added attribute,
OntologyEvent.getTopic()
the base topic.
attributeAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the added attributepublic void attributeRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the removed attribute,
OntologyEvent.getTopic()
the base topic.
attributeRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the removed attributepublic void attributeValueChanged(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the attribute,
OntologyEvent.getOldValue()
the attribute's old value.
attributeValueChanged
in interface OntologyListener
event
- the OntologyEvent object containing the user, the attribute and its old valuepublic void synonymAdded(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getSynonym()
the Synonym object that contains both synonymous topics.
synonymAdded
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the synonympublic void synonymRemoved(OntologyEvent event)
OntologyListener
OntologyEvent.getConcept()
returns the base topic,
OntologyEvent.getSynonym()
the removed Synonym object that contains both synonymous topics.
synonymRemoved
in interface OntologyListener
event
- the OntologyEvent object containing the user, the topic and the synonympublic void associationDeleted(EvolutionEvent event)
EvolutionListener
EvolutionEvent.getConcept()
contains the deleted association.
associationDeleted
in interface EvolutionListener
event
- the EvolutionEvent object containing the user and the deleted associationEvolutionManager.deleteAssociation(User, Association)
public void topicDeleted(EvolutionEvent event)
EvolutionListener
EvolutionEvent.getConcept()
contains the deleted topic.
topicDeleted
in interface EvolutionListener
event
- the EvolutionEvent object containing the user and the deleted topicEvolutionManager.deleteTopic(User, Topic)
,
EvolutionManager.deleteTopicAndSubtopics(User, Topic)
public void topicsMerged(EvolutionEvent event)
EvolutionListener
EvolutionEvent.getConcept()
contains one of the merged topics, EvolutionEvent.getTopic()
the other.
topicsMerged
in interface EvolutionListener
event
- the EvolutionEvent object containing the user and the two merged topicsEvolutionManager.mergeTopics(User, Topic, Topic)
public void addScoringListener(ScoringListener listener)
IncentiveManager
ConsensusFoundation.properties
.
addScoringListener
in interface IncentiveManager
listener
- the ScoringListener to be addedScoringListener
public void removeScoringListener(ScoringListener listener)
IncentiveManager
removeScoringListener
in interface IncentiveManager
listener
- the ScoringListener to be removedprotected 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 |