|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.search.IsServerSearchCondition
public class IsServerSearchCondition
This class represents a searching condition which is accomplished if a given sensor acts as a server, providing some services
| Field Summary | |
|---|---|
static int |
BENEVOLENT_SERVER
Used in order to find a server offering a specific service benevolently |
static int |
MALICIOUS_SERVER
Used in order to find a server offering a specific service maliciously |
static int |
RELAY_SERVER
Used in order to find a server offering only the standard relay service |
| Constructor Summary | |
|---|---|
IsServerSearchCondition()
Class IsServerSearchCondition constructor. |
|
IsServerSearchCondition(Service service)
Class IsServerSearchCondition constructor. |
|
IsServerSearchCondition(Service service,
int serverType)
Class IsServerSearchCondition constructor. |
|
| Method Summary | |
|---|---|
int |
get_serverType()
Returns the type of server to be searched (benevolent, malicious or relay) |
boolean |
sensorAcomplishesCondition(Sensor sensor)
Indicates if a sensor acts as a server, offering a given service with or without a given goodness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MALICIOUS_SERVER
public static final int BENEVOLENT_SERVER
public static final int RELAY_SERVER
| Constructor Detail |
|---|
public IsServerSearchCondition()
public IsServerSearchCondition(Service service)
service - Service to be found
public IsServerSearchCondition(Service service,
int serverType)
service - Service to be foundserverType - Type of server to be found (benevolent, malicious, etc.)| Method Detail |
|---|
public boolean sensorAcomplishesCondition(Sensor sensor)
sensorAcomplishesCondition in interface ISearchConditionsensor - Sensor to be queried
public int get_serverType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||