TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Public Member Functions | |
EigenTrust () | |
EigenTrust (int iterations, double threshold2Satisfy) | |
void | setMatrixFilled (boolean filled) |
double | calculateTrustScore (Agent src, Agent sink) throws Exception |
int | getIterations () |
void | setIterations (int iterations) |
double | getThreshold2Satisfy () |
void | setThreshold2Satisfy (double threshold2Satisfy) |
String | printMatrix (double[][] mat) |
Static Package Attributes | |
static Logger | logger = Logger.getLogger(EigenTrust.class.getName()) |
Definition at line 13 of file EigenTrust.java.
cu.repsystestbed.algorithms.EigenTrust.EigenTrust | ( | ) |
Definition at line 26 of file EigenTrust.java.
cu.repsystestbed.algorithms.EigenTrust.EigenTrust | ( | int | iterations, |
double | threshold2Satisfy | ||
) |
iterations | |
threshold2Satisfy |
Definition at line 35 of file EigenTrust.java.
double cu.repsystestbed.algorithms.EigenTrust.calculateTrustScore | ( | Agent | src, |
Agent | sink | ||
) | throws Exception [virtual] |
first time this method is invoked, it actually calculates the trust scores for all nodes but returns the trust score only for sink. subsequent invocations are simple lookups to the trust score
1. get all the edges from the source agent 2. for each edge from #1, get the experiences 3. calculate sij for each sink using experiences in #2 4. normalize cij matrix 5. get tij matrix by multiplying transformed cij
Implements cu.repsystestbed.algorithms.ReputationAlgorithm.
Definition at line 48 of file EigenTrust.java.
int cu.repsystestbed.algorithms.EigenTrust.getIterations | ( | ) |
Definition at line 171 of file EigenTrust.java.
double cu.repsystestbed.algorithms.EigenTrust.getThreshold2Satisfy | ( | ) |
Definition at line 182 of file EigenTrust.java.
String cu.repsystestbed.algorithms.EigenTrust.printMatrix | ( | double | mat[][] | ) |
Definition at line 193 of file EigenTrust.java.
void cu.repsystestbed.algorithms.EigenTrust.setIterations | ( | int | iterations | ) |
Definition at line 176 of file EigenTrust.java.
void cu.repsystestbed.algorithms.EigenTrust.setMatrixFilled | ( | boolean | filled | ) |
Definition at line 42 of file EigenTrust.java.
void cu.repsystestbed.algorithms.EigenTrust.setThreshold2Satisfy | ( | double | threshold2Satisfy | ) |
Definition at line 188 of file EigenTrust.java.
Logger cu.repsystestbed.algorithms.EigenTrust.logger = Logger.getLogger(EigenTrust.class.getName()) [static, package] |
Reimplemented from cu.repsystestbed.algorithms.ReputationAlgorithm.
Definition at line 24 of file EigenTrust.java.