|
||||||||||
| 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.EigenTrustEnergyConsumptionOutcome
public class EigenTrustEnergyConsumptionOutcome
This class models the outcome of EigenTrust model. It includes,
besides the elements of a EnergyConsumptionOutcome, the energy consumption of each
pre-trusted peer of a network
| Field Summary | |
|---|---|
protected double |
preTrustedPeerEnergyConsumption
Energy consumption per pre-trusted peer and per each execution of the trust model |
| 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 | |
|---|---|
|
EigenTrustEnergyConsumptionOutcome(Satisfaction satisfaction,
double avgPathLength)
Class EigenTrustEnergyConsumptionOutcome constructor |
protected |
EigenTrustEnergyConsumptionOutcome(Satisfaction satisfaction,
double avgSatisfaction,
double avgPathLength,
double preTrustedPeerEnergyConsumption,
double maliciousServerEnergyConsumption,
double benevolentServerEnergyConsumption,
double relayServerEnergyConsumption)
Class EigenTrustEnergyConsumptionOutcome constructor |
| Method Summary | |
|---|---|
Outcome |
aggregate(java.util.Collection<Outcome> outcomes)
This method computes the average of all the given outcomes |
double |
get_preTrustedPeerEnergyConsumption()
This method returns the energy consumption per pre-trusted peer and per each execution of the trust model of this outcome |
protected java.lang.String |
getOutcomesFileLine()
This method returns the line of the file where to save this outcome, including all its elements |
void |
setEnergyConsumption(Network network,
Service requiredService,
int numExecutions)
This method sets the energy consumption of the sensors of a given network in this outcome |
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 |
| 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 |
| Field Detail |
|---|
protected double preTrustedPeerEnergyConsumption
| Constructor Detail |
|---|
public EigenTrustEnergyConsumptionOutcome(Satisfaction satisfaction,
double avgPathLength)
satisfaction - Clients satisfactionavgPathLength - Average length of all the paths found
protected EigenTrustEnergyConsumptionOutcome(Satisfaction satisfaction,
double avgSatisfaction,
double avgPathLength,
double preTrustedPeerEnergyConsumption,
double maliciousServerEnergyConsumption,
double benevolentServerEnergyConsumption,
double relayServerEnergyConsumption)
satisfaction - Clients satisfactionavgSatisfaction - Average satisfaction of the client with the received serviceavgPathLength - Average length of all the paths foundpreTrustedPeerEnergyConsumption - Energy consumption per pre-trusted peer 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 model| Method Detail |
|---|
public void setEnergyConsumption(Network network,
Service requiredService,
int numExecutions)
EnergyConsumptionOutcome
setEnergyConsumption in class EnergyConsumptionOutcomenetwork - Network whose sensors energy consumption is to be set in this outcomerequiredService - Service requested by every client in the networknumExecutions - Number of times the selected trust and reputation model has been executedpublic Outcome aggregate(java.util.Collection<Outcome> outcomes)
Outcome
aggregate in class EnergyConsumptionOutcomeoutcomes - Outcomes to be aggregated
public double get_preTrustedPeerEnergyConsumption()
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 | |||||||||