|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.trm.GatheredInformation
es.ants.felixgm.trmsim_wsn.trm.eigentrust.GatheredInformationEigenTrust
public class GatheredInformationEigenTrust
This class models the information gathered by a Sensor implementing EigenTrust model
| Field Summary |
|---|
| Fields inherited from class es.ants.felixgm.trmsim_wsn.trm.GatheredInformation |
|---|
pathsToServers |
| Constructor Summary | |
|---|---|
GatheredInformationEigenTrust(java.util.Collection<java.util.Vector<Sensor>> pathsToServers,
int numSensors)
Class GatheredInformationEigenTrust constructor |
|
| Method Summary | |
|---|---|
double[][] |
get_normalizedLocalTrustValuesMatrix()
Gets the normalized local trust values matrix, C=(c_{ij}) |
java.util.Vector<Sensor> |
getPathToServer(int serverId)
This method returns the path leading to a given server |
void |
setCollectionClients(java.util.Collection<java.util.Vector<Sensor>> pathsToClients)
This method establishes the set of paths leading from a certain client to all the reachable clients |
void |
setNormalizedTrustValue(EigenTrust_Sensor sensor)
This method sets the normalized trust value c_{ij} |
| Methods inherited from class es.ants.felixgm.trmsim_wsn.trm.GatheredInformation |
|---|
getPathsToServers, setCollectionServers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GatheredInformationEigenTrust(java.util.Collection<java.util.Vector<Sensor>> pathsToServers,
int numSensors)
pathsToServers - Set of paths leading from a certain client to all the reachable serversnumSensors - Number of sensors composing the network| Method Detail |
|---|
public void setNormalizedTrustValue(EigenTrust_Sensor sensor)
sensor - Sensor jpublic java.util.Vector<Sensor> getPathToServer(int serverId)
serverId - Server identifier
public void setCollectionClients(java.util.Collection<java.util.Vector<Sensor>> pathsToClients)
pathsToClients - Set of paths leading from a certain client to all the reachable clientspublic double[][] get_normalizedLocalTrustValuesMatrix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||