TrustGrapher  r52
A playabale simulator for modelling trust between agents
cu.repsystestbed.algorithms.ReputationAlgorithm Class Reference
Inheritance diagram for cu.repsystestbed.algorithms.ReputationAlgorithm:
Collaboration diagram for cu.repsystestbed.algorithms.ReputationAlgorithm:

List of all members.

Public Member Functions

void setFeedbackHistoryGraph (FeedbackHistoryGraph feedbackHistoryGraph)
ReputationGraph getReputationGraph () throws GenericTestbedException
void update () throws Exception
abstract double calculateTrustScore (Agent src, Agent sink) throws Exception
void setGlobal (boolean isGlobal)
boolean isGlobal ()

Static Public Member Functions

static ReputationAlgorithm getInstance (String className) throws GenericTestbedException

Protected Attributes

FeedbackHistoryGraph feedbackHistoryGraph

Static Package Attributes

static Logger logger = Logger.getLogger(ReputationAlgorithm.class.getName())

Detailed Description

Definition at line 15 of file ReputationAlgorithm.java.


Member Function Documentation

abstract double cu.repsystestbed.algorithms.ReputationAlgorithm.calculateTrustScore ( Agent  src,
Agent  sink 
) throws Exception [pure virtual]

Implemented in cu.repsystestbed.algorithms.EigenTrust.

Here is the caller graph for this function:

static ReputationAlgorithm cu.repsystestbed.algorithms.ReputationAlgorithm.getInstance ( String  className) throws GenericTestbedException [static]

Given the class name of a reputation algorithm, this method returns an instance of it.

Parameters:
className
Returns:
ReputationAlgorithm
Exceptions:
GenericTestbedException

Definition at line 34 of file ReputationAlgorithm.java.

ReputationGraph cu.repsystestbed.algorithms.ReputationAlgorithm.getReputationGraph ( ) throws GenericTestbedException

Definition at line 76 of file ReputationAlgorithm.java.

boolean cu.repsystestbed.algorithms.ReputationAlgorithm.isGlobal ( )

Definition at line 148 of file ReputationAlgorithm.java.

Here is the caller graph for this function:

void cu.repsystestbed.algorithms.ReputationAlgorithm.setFeedbackHistoryGraph ( FeedbackHistoryGraph  feedbackHistoryGraph)

set the local feedback history graph variable and also initializes the reputation graph based.

Parameters:
feedbackHistoryGraph

Definition at line 56 of file ReputationAlgorithm.java.

Here is the caller graph for this function:

void cu.repsystestbed.algorithms.ReputationAlgorithm.setGlobal ( boolean  isGlobal)

Definition at line 144 of file ReputationAlgorithm.java.

Here is the call graph for this function:

void cu.repsystestbed.algorithms.ReputationAlgorithm.update ( ) throws Exception

To be called by FeedbackHistoryGraph.notifyObservers() only Everytime a feedback is added, this method is called.

If this is a global reputation algorithm, then the reputation graph is a complete graph

this is a local trust algorithm, calculate trust scores of sink agents that are reachable from the source. that is determine the transitive closure of the feedback history graph and set the weights of the edges.

Definition at line 86 of file ReputationAlgorithm.java.

Here is the call graph for this function:


Member Data Documentation

Definition at line 20 of file ReputationAlgorithm.java.

Logger cu.repsystestbed.algorithms.ReputationAlgorithm.logger = Logger.getLogger(ReputationAlgorithm.class.getName()) [static, package]

Reimplemented in cu.repsystestbed.algorithms.EigenTrust.

Definition at line 17 of file ReputationAlgorithm.java.


The documentation for this class was generated from the following file: