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

List of all members.

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())

Detailed Description

Definition at line 13 of file EigenTrust.java.


Constructor & Destructor Documentation

cu.repsystestbed.algorithms.EigenTrust.EigenTrust ( )

Definition at line 26 of file EigenTrust.java.

cu.repsystestbed.algorithms.EigenTrust.EigenTrust ( int  iterations,
double  threshold2Satisfy 
)
Parameters:
iterations
threshold2Satisfy

Definition at line 35 of file EigenTrust.java.


Member Function Documentation

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.

Here is the caller graph for this function:

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.


Member Data Documentation

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.


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