es.ants.felixgm.trmsim_wsn.search
Class IsPowerNodeSearchCondition

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

public class IsPowerNodeSearchCondition
extends java.lang.Object
implements ISearchCondition

This class represents a searching condition which is accomplished if a given sensor acts as a power node within the PowerTrust model

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

Constructor Summary
IsPowerNodeSearchCondition()
           
 
Method Summary
 boolean sensorAcomplishesCondition(Sensor sensor)
          Indicates if a given sensor acts as a power node within the PowerTrust model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsPowerNodeSearchCondition

public IsPowerNodeSearchCondition()
Method Detail

sensorAcomplishesCondition

public boolean sensorAcomplishesCondition(Sensor sensor)
Indicates if a given sensor acts as a power node within the PowerTrust model

Specified by:
sensorAcomplishesCondition in interface ISearchCondition
Parameters:
sensor - Sensor to be queried
Returns:
true if the given sensor acts as a power node within the PowerTrust model, false otherwise