|
||||||||||
| 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
es.ants.felixgm.trmsim_wsn.outcomes.EnergyConsumptionOutcome
es.ants.felixgm.trmsim_wsn.outcomes.FuzzyOutcome
public class FuzzyOutcome
This class models the outcome of a trust and reputation model It includes,
besides the elements of a EnergyConsumptionOutcome, the percentage of
clients with each type of fuzzy satisfaction (Very high, High, Medium, etc.)
| Field Summary |
|---|
| Fields inherited from class es.ants.felixgm.trmsim_wsn.outcomes.EnergyConsumptionOutcome |
|---|
avgSensorEnergyConsumption, benevolentServerEnergyConsumption, clientEnergyConsumption, maliciousServerEnergyConsumption, relayServerEnergyConsumption |
| Fields inherited from class es.ants.felixgm.trmsim_wsn.outcomes.BasicOutcome |
|---|
avgPathLength, avgSatisfaction |
| Fields inherited from class es.ants.felixgm.trmsim_wsn.outcomes.Outcome |
|---|
satisfaction |
| Constructor Summary | |
|---|---|
|
FuzzyOutcome(SatisfactionFuzzy satisfaction,
double avgPathLength)
Class FuzzyOutcome constructor |
protected |
FuzzyOutcome(SatisfactionFuzzy satisfaction,
double avgSatisfaction,
double avgPathLength,
double clientEnergyConsumption,
double maliciousServerEnergyConsumption,
double benevolentServerEnergyConsumption,
double relayServerEnergyConsumption,
java.util.HashMap<java.lang.String,java.lang.Double> satisfactionLinguisticTermsPercentage,
java.util.HashMap<java.lang.String,java.lang.Integer> satisfactionLinguisticTermsCount,
int totalOutcomesNumber)
Class FuzzyConsumptionOutcome constructor |
| Method Summary | |
|---|---|
Outcome |
aggregate(java.util.Collection<Outcome> outcomes)
This method computes the average of all the given outcomes |
protected java.lang.String |
getOutcomesFileLine()
This method returns the line of the file where to save this outcome, including all its elements |
java.util.HashMap<java.lang.String,java.lang.Integer> |
getSatisfactionCount()
This method returns the number of clients with each type of satisfaction |
double |
getSatisfactionPercentage(java.lang.String linguisticTerm)
This method returns the percentage of clients with the given fuzzy satisfaction |
java.lang.String |
toString()
|
| Methods inherited from class es.ants.felixgm.trmsim_wsn.outcomes.EnergyConsumptionOutcome |
|---|
get_avgSensorEnergyConsumption, get_benevolentServerEnergyConsumption, get_clientEnergyConsumption, get_maliciousServerEnergyConsumption, get_relayServerEnergyConsumption, setEnergyConsumption |
| Methods inherited from class es.ants.felixgm.trmsim_wsn.outcomes.BasicOutcome |
|---|
get_avgPathLength, get_avgSatisfaction |
| 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 |
| Constructor Detail |
|---|
public FuzzyOutcome(SatisfactionFuzzy satisfaction,
double avgPathLength)
satisfaction - Clients satisfactionavgPathLength - Average length of all the paths found
protected FuzzyOutcome(SatisfactionFuzzy satisfaction,
double avgSatisfaction,
double avgPathLength,
double clientEnergyConsumption,
double maliciousServerEnergyConsumption,
double benevolentServerEnergyConsumption,
double relayServerEnergyConsumption,
java.util.HashMap<java.lang.String,java.lang.Double> satisfactionLinguisticTermsPercentage,
java.util.HashMap<java.lang.String,java.lang.Integer> satisfactionLinguisticTermsCount,
int totalOutcomesNumber)
satisfaction - Clients satisfactionavgSatisfaction - Average satisfaction of the client with the received serviceavgPathLength - Average length of all the paths foundclientEnergyConsumption - Energy consumption per client and per each execution of the trust modelmaliciousServerEnergyConsumption - Energy consumption per malicious server and per each execution of the trust modelbenevolentServerEnergyConsumption - Energy consumption per benevolent server and per each execution of the trust modelrelayServerEnergyConsumption - Energy consumption per relay server and per each execution of the trust modelsatisfactionLinguisticTermsPercentage - Percentage of clients with each type of satisfactionsatisfactionLinguisticTermsCount - Number of clients with each type of satisfactiontotalOutcomesNumber - Total number of outcomes| Method Detail |
|---|
public Outcome aggregate(java.util.Collection<Outcome> outcomes)
Outcome
aggregate in class EnergyConsumptionOutcomeoutcomes - Outcomes to be aggregated
public java.util.HashMap<java.lang.String,java.lang.Integer> getSatisfactionCount()
public double getSatisfactionPercentage(java.lang.String linguisticTerm)
linguisticTerm - The given linguistic term of the fuzzy satisfaction
public java.lang.String toString()
toString in class EnergyConsumptionOutcomeprotected java.lang.String getOutcomesFileLine()
Outcome
getOutcomesFileLine in class EnergyConsumptionOutcome
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||