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

List of all members.

Public Member Functions

 RankbasedTrustAlg ()
boolean trusts (Agent src, Agent sink) throws Exception
void setRatio (double ratio) throws Exception
double getRatio ()

Static Package Attributes

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

Detailed Description

Author:
partheinstein This is an implementation of a rank based trust algorithm.

Definition at line 20 of file RankbasedTrustAlg.java.


Constructor & Destructor Documentation

cu.repsystestbed.algorithms.RankbasedTrustAlg.RankbasedTrustAlg ( )

Definition at line 26 of file RankbasedTrustAlg.java.


Member Function Documentation

double cu.repsystestbed.algorithms.RankbasedTrustAlg.getRatio ( )

Definition at line 87 of file RankbasedTrustAlg.java.

void cu.repsystestbed.algorithms.RankbasedTrustAlg.setRatio ( double  ratio) throws Exception

Definition at line 76 of file RankbasedTrustAlg.java.

boolean cu.repsystestbed.algorithms.RankbasedTrustAlg.trusts ( Agent  src,
Agent  sink 
) throws Exception [virtual]

Returns true if the sink is in the top ratio of trusted agents by source. Else returns false

Implements cu.repsystestbed.algorithms.TrustAlgorithm.

Definition at line 35 of file RankbasedTrustAlg.java.


Member Data Documentation

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

Reimplemented from cu.repsystestbed.algorithms.TrustAlgorithm.

Definition at line 22 of file RankbasedTrustAlg.java.


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