[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/apps/Agilla/components/ContextDiscovery ClusteringI.nc, 1.4, 1.5 NeighborListC.nc, 1.12, 1.13 NeighborListDummy.nc, 1.5, 1.6 NeighborListI.nc, 1.6, 1.7 NeighborListM.nc, 1.26, 1.27 NeighborListProxy.nc, 1.3, 1.4

Chien-Liang Fok chien-liang at users.sourceforge.net
Thu May 18 12:58:43 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components/ContextDiscovery
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25569/contrib/wustl/apps/Agilla/components/ContextDiscovery

Modified Files:
	ClusteringI.nc NeighborListC.nc NeighborListDummy.nc 
	NeighborListI.nc NeighborListM.nc NeighborListProxy.nc 
Log Message:


Index: ClusteringI.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components/ContextDiscovery/ClusteringI.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ClusteringI.nc	25 Apr 2006 22:27:38 -0000	1.4
--- ClusteringI.nc	18 May 2006 19:58:40 -0000	1.5
***************
*** 1,84 ****
! // $Id$
! 
! /* Agilla - A middleware for wireless sensor networks.
!  * Copyright (C) 2004, Washington University in Saint Louis
!  * By Chien-Liang Fok.
!  *
!  * Washington University states that Agilla is free software;
!  * you can redistribute it and/or modify it under the terms of
!  * the current version of the GNU Lesser General Public License
!  * as published by the Free Software Foundation.
!  *
!  * Agilla is distributed in the hope that it will be useful, but
!  * THERE ARE NO WARRANTIES, WHETHER ORAL OR WRITTEN, EXPRESS OR
!  * IMPLIED, INCLUDING BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
!  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.
!  *
!  * YOU UNDERSTAND THAT AGILLA IS PROVIDED "AS IS" FOR WHICH NO
!  * WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. THERE ARE NO
!  * WARRANTIES AND NO REPRESENTATION THAT AGILLA IS FREE OF
!  * INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR OTHER
!  * PROPRIETARY RIGHTS.  THERE ARE NO WARRANTIES THAT SOFTWARE IS
!  * FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP DOORS", "WORMS",
!  * OR OTHER HARMFUL CODE.
!  *
!  * YOU ASSUME THE ENTIRE RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR
!  * ASSOCIATED MATERIALS, AND TO THE PERFORMANCE AND VALIDITY OF
!  * INFORMATION GENERATED USING SOFTWARE. By using Agilla you agree to
!  * indemnify, defend, and hold harmless WU, its employees, officers and
!  * agents from any and all claims, costs, or liabilities, including
!  * attorneys fees and court costs at both the trial and appellate levels
!  * for any loss, damage, or injury caused by your actions or actions of
!  * your officers, servants, agents or third parties acting on behalf or
!  * under authorization from you, as a result of using Agilla.
!  *
!  * See the GNU Lesser General Public License for more details, which can
!  * be found here: http://www.gnu.org/copyleft/lesser.html
!  */
! 
! includes Agilla;
! 
! /**
!  * The Clustering algorithm sets up clusters by selecting cluster heads
!  * based on a routing tree rooted at the Gateway node. The clustering module
!  * maintains cluster information like whether a node is a cluster head and
!  * if not, who its cluster head is. It also stores the id of the parent node.
!  *
!  * @author Sangeeta Bhattacharya
!  */
! interface ClusteringI {
! 
!   /**
!    * Returns SUCCESS if it is a cluster head.
!    */
!   command result_t isClusterHead();
! 
!   /**
!     * Returns SUCCESS if nbr is this nodes cluster head.
!     */
!   //command result_t isNbrClusterHead(uint16_t* nbr);
! 
!   /**
!    * Returns the id of the cluster head of the cluster to which it belongs.
!    * Returns its own id if it is the cluster head.
     */
!   command result_t getClusterHead(uint16_t* chID);
! 
! 
!   /**
!    * Returns the approximate communication range of this node. The communication
!    * range is calculated as the average distance to neighbors.
!    */
!   //command uint8_t getCommRange();
! 
!   /*
!    * Returns if this node is known to belong to the same cluster.
!    */
!   command result_t isClusterMember(uint16_t id);
! 
!   #if DEBUG_CLUSTERING
!     command void sendClusterDebugMsg();
!   #endif
! 
  
! }
--- 1,84 ----
! // $Id$
! 
! /* Agilla - A middleware for wireless sensor networks.
!  * Copyright (C) 2004, Washington University in Saint Louis
!  * By Chien-Liang Fok.
!  *
!  * Washington University states that Agilla is free software;
!  * you can redistribute it and/or modify it under the terms of
!  * the current version of the GNU Lesser General Public License
!  * as published by the Free Software Foundation.
!  *
!  * Agilla is distributed in the hope that it will be useful, but
!  * THERE ARE NO WARRANTIES, WHETHER ORAL OR WRITTEN, EXPRESS OR
!  * IMPLIED, INCLUDING BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
!  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.
!  *
!  * YOU UNDERSTAND THAT AGILLA IS PROVIDED "AS IS" FOR WHICH NO
!  * WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. THERE ARE NO
!  * WARRANTIES AND NO REPRESENTATION THAT AGILLA IS FREE OF
!  * INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR OTHER
!  * PROPRIETARY RIGHTS.  THERE ARE NO WARRANTIES THAT SOFTWARE IS
!  * FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP DOORS", "WORMS",
!  * OR OTHER HARMFUL CODE.
!  *
!  * YOU ASSUME THE ENTIRE RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR
!  * ASSOCIATED MATERIALS, AND TO THE PERFORMANCE AND VALIDITY OF
!  * INFORMATION GENERATED USING SOFTWARE. By using Agilla you agree to
!  * indemnify, defend, and hold harmless WU, its employees, officers and
!  * agents from any and all claims, costs, or liabilities, including
!  * attorneys fees and court costs at both the trial and appellate levels
!  * for any loss, damage, or injury caused by your actions or actions of
!  * your officers, servants, agents or third parties acting on behalf or
!  * under authorization from you, as a result of using Agilla.
!  *
!  * See the GNU Lesser General Public License for more details, which can
!  * be found here: http://www.gnu.org/copyleft/lesser.html
!  */
! 
! includes Agilla;
! 
! /**
!  * The Clustering algorithm sets up clusters by selecting cluster heads
!  * based on a routing tree rooted at the Gateway node. The clustering module
!  * maintains cluster information like whether a node is a cluster head and
!  * if not, who its cluster head is. It also stores the id of the parent node.
!  *
!  * @author Sangeeta Bhattacharya
!  */
! interface ClusteringI {
! 
!   /**
!    * Returns SUCCESS if it is a cluster head.
     */
!   command result_t isClusterHead();
  
!   /**
!     * Returns SUCCESS if nbr is this nodes cluster head.
!     */
!   //command result_t isNbrClusterHead(uint16_t* nbr);
! 
!   /**
!    * Returns the id of the cluster head of the cluster to which it belongs.
!    * Returns its own id if it is the cluster head.
!    */
!   command result_t getClusterHead(uint16_t* chID);
! 
! 
!   /**
!    * Returns the approximate communication range of this node. The communication
!    * range is calculated as the average distance to neighbors.
!    */
!   //command uint8_t getCommRange();
! 
!   /*
!    * Returns if this node is known to belong to the same cluster.
!    */
!   command result_t isClusterMember(uint16_t id);
! 
!   #if DEBUG_CLUSTERING
!     command void sendClusterDebugMsg();
!   #endif
! 
! 
! }




Index: NeighborListM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components/ContextDiscovery/NeighborListM.nc,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** NeighborListM.nc	27 Apr 2006 23:53:18 -0000	1.26
--- NeighborListM.nc	18 May 2006 19:58:40 -0000	1.27
***************
*** 49,54 ****
      interface StdControl;
      interface NeighborListI;
      #if ENABLE_CLUSTERING
!     interface ClusteringI;
      #endif
    }
--- 49,55 ----
      interface StdControl;
      interface NeighborListI;
+     
[...1017 lines suppressed...]
  
    event TOS_MsgPtr RcvClusterDebugMsg.receive(TOS_MsgPtr m) {
        //AgillaClusterDebugMsg* cmsg = (AgillaClusterDebugMsg *)m->data;
***************
*** 1037,1041 ****
    }
  
- 
    command void ClusteringI.sendClusterDebugMsg(){
        TOS_MsgPtr msg;
--- 1101,1104 ----
***************
*** 1060,1065 ****
    }
  
- 
- 
    #endif /*DEBUG_CLUSTERING*/
  
--- 1123,1126 ----




More information about the Tinyos-contrib-commits mailing list