|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IncentiveManager triggers ScoringListeners whenever an event occurs that might change a user's score. The other components do not actively push events, the IncentiveManager implementation has to register itself as a listener on various other components (usually on the RatingManager, OntologyManager and EvolutionManager).
The IncentiveManager implementation can be configured with the key cf.incentivemanager
in the ConsensusFoundation.properties
configuration file. It's an optional component.
If the key the key cf.incentivemanager
is present, the implementation is loaded by the
ConsensusFoundation
constructor. For successful instantiation, the IncentiveManager implementation must provide
a default constructor without arguments.
ScoringListener
,
ConsensusFoundation
Method Summary | |
void |
addScoringListener(ScoringListener listener)
Registers a new ScoringListener. |
double |
getInitialUserScore()
Returns the initial score for newly created users. |
void |
init(Properties config,
LoggingManager logging,
UserManager users,
OntologyManager ontology)
This method is called by the ConsensusFoundation constructor to initialize the IncentiveManager. |
void |
removeScoringListener(ScoringListener listener)
Removes a ScoringListener, if it is registered with the IncentiveManager (otherwise this call is ignored). |
Methods inherited from interface de.uka.ipd.consensus.foundation.ConsensusFoundationModule |
getConsensusFoundationManager, getVersion, initCompleted, shutdown |
Method Detail |
public void init(Properties config, LoggingManager logging, UserManager users, OntologyManager ontology) throws Exception
ConsensusFoundation
constructor to initialize the 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 double getInitialUserScore()
public void addScoringListener(ScoringListener listener)
ConsensusFoundation.properties
.
listener
- the ScoringListener to be addedScoringListener
public void removeScoringListener(ScoringListener listener)
listener
- the ScoringListener to be removed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |