|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.outcomes.Outcome
es.ants.felixgm.trmsim_wsn.outcomes.BasicOutcome
public class BasicOutcome
This class models the outcome of a trust and reputation model. It includes the path leading to the most trustworthy and/or reputable server found as well as the satisfaction perceived by the client
| Field Summary | |
|---|---|
protected double |
avgPathLength
Average length of all the paths found |
protected double |
avgSatisfaction
Average satisfaction of the client with the received service |
| Fields inherited from class es.ants.felixgm.trmsim_wsn.outcomes.Outcome |
|---|
satisfaction |
| Constructor Summary | |
|---|---|
|
BasicOutcome(Satisfaction satisfaction,
double avgPathLength)
Class BasicOutcome constructor |
protected |
BasicOutcome(Satisfaction satisfaction,
double avgSatisfaction,
double avgPathLength)
Class BasicOutcome constructor |
| Method Summary | |
|---|---|
Outcome |
aggregate(java.util.Collection<Outcome> outcomes)
This method computes the average of all the given outcomes |
double |
get_avgPathLength()
This method returns the average length of all the paths found |
double |
get_avgSatisfaction()
This method returns the average satisfaction of the client with the received service |
protected java.lang.String |
getOutcomesFileLine()
This method returns the line of the file where to save this outcome, including all its elements |
java.lang.String |
toString()
|
| Methods inherited from class es.ants.felixgm.trmsim_wsn.outcomes.Outcome |
|---|
computeOutcomes, computeOutcomes, get_satisfaction, writeToFile, writeToFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double avgSatisfaction
protected double avgPathLength
| Constructor Detail |
|---|
public BasicOutcome(Satisfaction satisfaction,
double avgPathLength)
satisfaction - Clients satisfactionavgPathLength - Average length of all the paths found
protected BasicOutcome(Satisfaction satisfaction,
double avgSatisfaction,
double avgPathLength)
satisfaction - Clients satisfactionavgSatisfaction - Average satisfaction of the client with the received serviceavgPathLength - Average length of all the paths found| Method Detail |
|---|
public Outcome aggregate(java.util.Collection<Outcome> outcomes)
Outcome
aggregate in class Outcomeoutcomes - Outcomes to be aggregated
public double get_avgSatisfaction()
public double get_avgPathLength()
public java.lang.String toString()
toString in class Outcomeprotected java.lang.String getOutcomesFileLine()
Outcome
getOutcomesFileLine in class Outcome
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||