es.ants.felixgm.trmsim_wsn.search
Class IsPreTrustedPeerSearchCondition

java.lang.Object
  extended by es.ants.felixgm.trmsim_wsn.search.IsPreTrustedPeerSearchCondition
All Implemented Interfaces:
ISearchCondition

public class IsPreTrustedPeerSearchCondition
extends java.lang.Object
implements ISearchCondition

This class represents a searching condition which is accomplished if a given sensor acts as a pre-trusted peer within the EigenTrust model

Since:
0.4
Version:
0.4
Author:
Félix Gómez Mármol, Gregorio Martínez Pérez

Constructor Summary
IsPreTrustedPeerSearchCondition()
           
 
Method Summary
 boolean sensorAcomplishesCondition(Sensor sensor)
          Indicates if a given sensor acts as a pre-trusted peer within the EigenTrust model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsPreTrustedPeerSearchCondition

public IsPreTrustedPeerSearchCondition()
Method Detail

sensorAcomplishesCondition

public boolean sensorAcomplishesCondition(Sensor sensor)
Indicates if a given sensor acts as a pre-trusted peer within the EigenTrust model

Specified by:
sensorAcomplishesCondition in interface ISearchCondition
Parameters:
sensor - Sensor to be queried
Returns:
true if the given sensor acts as a pre-trusted peer within the EigenTrust model, false otherwise