es.ants.felixgm.trmsim_wsn.network
Class Link

java.lang.Object
  extended by es.ants.felixgm.trmsim_wsn.network.Link
Direct Known Subclasses:
BTRM_Link, LFTM_Link

public class Link
extends java.lang.Object

This class models a link between two nodes./p>

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

Field Summary
protected  Sensor destination
          Destination node of the link
protected  Sensor source
          Source node of the link
 
Constructor Summary
Link(Sensor source, Sensor destination)
          Class Link constructor
 
Method Summary
 Sensor get_destination()
          Retrives the destination sensor of this link
 Sensor get_source()
          Retrives the source sensor of this link
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Sensor source
Source node of the link


destination

protected Sensor destination
Destination node of the link

Constructor Detail

Link

public Link(Sensor source,
            Sensor destination)
Class Link constructor

Parameters:
source - Source sensor of the link
destination - Destination sensor of the link
Method Detail

get_source

public Sensor get_source()
Retrives the source sensor of this link

Returns:
The source sensor of this link

get_destination

public Sensor get_destination()
Retrives the destination sensor of this link

Returns:
The destination sensor of this link