[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/wustl/apps/Agilla/components
AgentMgrM.nc, 1.29, 1.30
Chien-Liang Fok
chien-liang at users.sourceforge.net
Sun Jul 2 11:45:50 PDT 2006
Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24607
Modified Files:
AgentMgrM.nc
Log Message:
Modifed the location reporting code to not report an agent's location if it is arriving or leaving.
Index: AgentMgrM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components/AgentMgrM.nc,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** AgentMgrM.nc 18 May 2006 19:58:40 -0000 1.29
--- AgentMgrM.nc 2 Jul 2006 18:45:48 -0000 1.30
***************
*** 1,500 ****
! // $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.
[...973 lines suppressed...]
! return SUCCESS;
! }*/
!
!
! /**
! * Send a location update heartbeat to the base station.
! */
! event result_t LocationUpdateTimer.fired() {
! int i;
! for (i=0; i < AGILLA_NUM_AGENTS; i++) {
! if (agents[i].state != AGILLA_STATE_HALT &&
! agents[i].state != AGILLA_STATE_ARRIVING &&
! agents[i].state != AGILLA_STATE_LEAVING)
! call LocationReporterI.updateLocation(&agents[i]);
! }
! return SUCCESS;
! }
! }
!
!
More information about the Tinyos-contrib-commits
mailing list