|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.network.Sensor
es.ants.felixgm.trmsim_wsn.trm.templatetrm.TemplateTRM_Sensor
public class TemplateTRM_Sensor
This class models a Sensor implementing TemplateTRM
| Field Summary |
|---|
| Fields inherited from class es.ants.felixgm.trmsim_wsn.network.Sensor |
|---|
_maxDistance, activeState, collusion, dynamic, id, idCount, links, numRequests, outcome, requiredService, servicesGoodness, transmittedDistance, trmmodelWSN, xPosition, yPosition |
| Constructor Summary | |
|---|---|
TemplateTRM_Sensor()
This constructor creates a new Sensor implementing TemplateTRM |
|
TemplateTRM_Sensor(int id,
double x,
double y)
This constructor creates a new Sensor implementing PowerTrust |
|
| Method Summary | |
|---|---|
void |
reset()
This method resets a Sensor to its initial state |
| Methods inherited from class es.ants.felixgm.trmsim_wsn.network.Sensor |
|---|
addLink, addService, addTransmittedDistance, distance, equals, findSensors, get_goodness, get_numServices, get_outcome, get_services, get_transmittedDistance, get_TRModel_WSN, getNeighbors, getX, getY, id, isActive, isNeighbor, offersService, removeAllNeighbors, removeLink, resetId, run, serve, set_goodness, set_requiredService, set_TRModel_WSN, setActiveState, setCollusion, setDynamic, setMaxDistance, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateTRM_Sensor()
public TemplateTRM_Sensor(int id,
double x,
double y)
id - Identifier of the new sensorx - X coordinate of the new sensory - Y coordinate of the new sensor| Method Detail |
|---|
public void reset()
Sensor
reset in class Sensor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||