es.ants.felixgm.trmsim_wsn.trm
Class GatheredInformation

java.lang.Object
  extended by es.ants.felixgm.trmsim_wsn.trm.GatheredInformation
Direct Known Subclasses:
GatheredInformationEigenTrust

public class GatheredInformation
extends java.lang.Object

This class represents the collected or gathered information of a Trust and Reputation Model from the network in order to evaluate the reputation and trustworthiness of every sensor and decide which one to interact with

Since:
0.2
Version:
0.2
Author:
Félix Gómez Mármol, Gregorio Martínez Pérez and Antonio Bernárdez

Field Summary
protected  java.util.Collection<java.util.Vector<Sensor>> pathsToServers
          Set of paths leading from a certain client to all the reachable servers
 
Constructor Summary
GatheredInformation(java.util.Collection<java.util.Vector<Sensor>> pathsToServers)
          Class GatheredInformation constructor
 
Method Summary
 java.util.Collection<java.util.Vector<Sensor>> getPathsToServers()
          Returns the set of paths leading from a certain client to all the reachable servers
protected  void setCollectionServers(java.util.Collection<java.util.Vector<Sensor>> pathsToServers)
          Sets the collection of paths leading from a certain client to all the reachable servers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathsToServers

protected java.util.Collection<java.util.Vector<Sensor>> pathsToServers
Set of paths leading from a certain client to all the reachable servers

Constructor Detail

GatheredInformation

public GatheredInformation(java.util.Collection<java.util.Vector<Sensor>> pathsToServers)
Class GatheredInformation constructor

Parameters:
pathsToServers - Set of paths leading from a certain client to all the reachable servers
Method Detail

getPathsToServers

public java.util.Collection<java.util.Vector<Sensor>> getPathsToServers()
Returns the set of paths leading from a certain client to all the reachable servers

Returns:
The set of paths leading from a certain client to all the reachable servers

setCollectionServers

protected void setCollectionServers(java.util.Collection<java.util.Vector<Sensor>> pathsToServers)
Sets the collection of paths leading from a certain client to all the reachable servers

Parameters:
pathsToServers - Set of paths leading from a certain client to all the reachable servers