es.ants.felixgm.trmsim_wsn.search
Interface ISearchCondition

All Known Implementing Classes:
IsClientSearchCondition, IsPowerNodeSearchCondition, IsPreTrustedPeerSearchCondition, IsSensorSearchCondition, IsServerSearchCondition, NumHopsSearchCondition

public interface ISearchCondition

This interface represents a searching condition to be accomplished by a sensor when looking for the shortest path between two sensors

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

Method Summary
 boolean sensorAcomplishesCondition(Sensor sensor)
          Indicates if a given sensor accomplishes a certain condition
 

Method Detail

sensorAcomplishesCondition

boolean sensorAcomplishesCondition(Sensor sensor)
Indicates if a given sensor accomplishes a certain condition

Parameters:
sensor - Sensor to be queried
Returns:
true if the given sensor accomplishes the condition, false otherwise