es.ants.felixgm.trmsim_wsn.search
Class IsClientSearchCondition

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

public class IsClientSearchCondition
extends java.lang.Object
implements ISearchCondition

This class represents a searching condition which is accomplished if a given sensor acts as a client, requesting a service

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

Constructor Summary
IsClientSearchCondition()
           
 
Method Summary
 boolean sensorAcomplishesCondition(Sensor sensor)
          Indicates if a given sensor acts as a client because it does not offer any service or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsClientSearchCondition

public IsClientSearchCondition()
Method Detail

sensorAcomplishesCondition

public boolean sensorAcomplishesCondition(Sensor sensor)
Indicates if a given sensor acts as a client because it does not offer any service or not

Specified by:
sensorAcomplishesCondition in interface ISearchCondition
Parameters:
sensor - Sensor to be queried
Returns:
true if the given sensor does not offer any service and therefore acts as a client, false otherwise