TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
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()) |
Definition at line 15 of file ReputationAlgorithm.java.
abstract double cu.repsystestbed.algorithms.ReputationAlgorithm.calculateTrustScore | ( | Agent | src, |
Agent | sink | ||
) | throws Exception [pure virtual] |
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.
className |
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.
void cu.repsystestbed.algorithms.ReputationAlgorithm.setFeedbackHistoryGraph | ( | FeedbackHistoryGraph | feedbackHistoryGraph | ) |
set the local feedback history graph variable and also initializes the reputation graph based.
feedbackHistoryGraph |
Definition at line 56 of file ReputationAlgorithm.java.
void cu.repsystestbed.algorithms.ReputationAlgorithm.setGlobal | ( | boolean | isGlobal | ) |
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.
FeedbackHistoryGraph cu.repsystestbed.algorithms.ReputationAlgorithm.feedbackHistoryGraph [protected] |
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.