[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/collection LinkEstimator.nc, 1.1.2.3, 1.1.2.4

Omprakash Gnawali gnawali at users.sourceforge.net
Fri May 19 22:11:43 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/collection
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19156

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	LinkEstimator.nc 
Log Message:
added insert

Index: LinkEstimator.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/collection/Attic/LinkEstimator.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** LinkEstimator.nc	1 May 2006 06:28:04 -0000	1.1.2.3
--- LinkEstimator.nc	20 May 2006 05:11:40 -0000	1.1.2.4
***************
*** 25,35 ****
   * provided quality increases when the true link quality increases.
   *  @author Rodrigo Fonseca
   *  @date   $Date$
   */
  interface LinkEstimator {
!     command uint8_t getLinkQuality(uint16_t neighbor);
!     command uint8_t getReverseQuality(uint16_t neighbor);
!     command uint8_t getForwardQuality(uint16_t neighbor);
!     event void evicted(am_addr_t neighbor);
  }
  
--- 25,52 ----
   * provided quality increases when the true link quality increases.
   *  @author Rodrigo Fonseca
+  *  @author Omprakash Gnawali
   *  @date   $Date$
   */
+ 
+ /* Quality of a link is defined by the implementor of this interface.
+  * It could be ETX, PRR, etc.
+  */
+ 
  interface LinkEstimator {
!   
!   /* get bi-directional link quality for link to the neighbor */
!   command uint8_t getLinkQuality(uint16_t neighbor);
! 
!   /* get quality of the link from neighbor to this node */
!   command uint8_t getReverseQuality(uint16_t neighbor);
! 
!   /* get quality of the link from this node to the neighbor */
!   command uint8_t getForwardQuality(uint16_t neighbor);
! 
!   /* insert this neighbor into the neighbor table */
!   command error_t insertNeighbor(am_addr_t neighbor);
! 
!   /* signal when this neighbor is evicted from the neighbor table */
!   event void evicted(am_addr_t neighbor);
  }
  



More information about the Tinyos-2-commits mailing list