TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
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()) |
Definition at line 20 of file RankbasedTrustAlg.java.
cu.repsystestbed.algorithms.RankbasedTrustAlg.RankbasedTrustAlg | ( | ) |
Definition at line 26 of file RankbasedTrustAlg.java.
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.
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.