[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla/messages AgillaExpResultsMsgJ.java, NONE, 1.1 AgillaExpQueryResultsMsgJ.java, NONE, 1.1 AgillaExpLatencyMsgJ.java, NONE, 1.1 AgillaGetNbrMsgJ.java, 1.5, 1.6

Chien-Liang Fok chien-liang at users.sourceforge.net
Wed Apr 5 18:06:12 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla/messages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3436/edu/wustl/mobilab/agilla/messages

Modified Files:
	AgillaGetNbrMsgJ.java 
Added Files:
	AgillaExpResultsMsgJ.java AgillaExpQueryResultsMsgJ.java 
	AgillaExpLatencyMsgJ.java 
Log Message:


--- NEW FILE: AgillaExpResultsMsgJ.java ---
// $Id: AgillaExpResultsMsgJ.java,v 1.1 2006/04/06 01:06:08 chien-liang Exp $

/* 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
 */
package edu.wustl.mobilab.agilla.messages;
import edu.wustl.mobilab.agilla.*;

/**
 * AgillaExpResultsMsgJ
 *
 * @author Chien-Liang Fok
 */
public class AgillaExpResultsMsgJ implements MessageJ, AgillaConstants {
	private int numQueries, numUpdates;
	
	public AgillaExpResultsMsgJ(int numQueries, int numUpdates) {		
	}
	
	public AgillaExpResultsMsgJ(AgillaExpResultsMsg msg) {
		this.numQueries = msg.get_numQueries();
		this.numUpdates = msg.get_numUpdates();
	}	
	
	public int numQueries() {
		return numQueries;
	}
	
	public int numUpdates() {
		return numUpdates;
	}
	
	public int getType() {
		return AgillaExpResultsMsg.AM_TYPE;
	}

	public net.tinyos.message.Message toTOSMsg() {
		return new AgillaExpQueryResultsMsg();
	}
	
	public String toString() {
		return "AgillaExpResultsMsgJ: updates = " + numUpdates + ", queries = " + numQueries;		
	}
}

--- NEW FILE: AgillaExpQueryResultsMsgJ.java ---
// $Id: AgillaExpQueryResultsMsgJ.java,v 1.1 2006/04/06 01:06:08 chien-liang Exp $

/* 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
 */
package edu.wustl.mobilab.agilla.messages;
import edu.wustl.mobilab.agilla.*;

/**
 * AgillaErrorMsgJ.java
 *
 * @author Chien-Liang Fok
 */
public class AgillaExpQueryResultsMsgJ implements MessageJ, AgillaConstants {
	
	public AgillaExpQueryResultsMsgJ() {		
	}
	
	public AgillaExpQueryResultsMsgJ(AgillaExpQueryResultsMsg msg) {
	}	
	
	public int getType() {
		return AgillaExpQueryResultsMsg.AM_TYPE;
	}

	public net.tinyos.message.Message toTOSMsg() {
		return new AgillaExpQueryResultsMsg();
	}
	
	public String toString() {
		return "AgillaExpQueryResultsMsg";		
	}
}


--- NEW FILE: AgillaExpLatencyMsgJ.java ---
// $Id: AgillaExpLatencyMsgJ.java,v 1.1 2006/04/06 01:06:08 chien-liang Exp $

/* 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
 */
package edu.wustl.mobilab.agilla.messages;
import edu.wustl.mobilab.agilla.*;

/**
 * AgillaErrorMsgJ.java
 *
 * @author Chien-Liang Fok
 */
public class AgillaExpLatencyMsgJ implements MessageJ, AgillaConstants {
	private long latency;
	
	public AgillaExpLatencyMsgJ(long latency) 
	{
		this.latency = latency;
	}
	
	public AgillaExpLatencyMsgJ(AgillaExpLatencyMsg msg) {
		latency = msg.get_latency();
	}
	
	public long latency() {
		return latency;
	}
		
	public int getType() {
		return AgillaExpLatencyMsg.AM_TYPE;
	}

	public net.tinyos.message.Message toTOSMsg() {
		AgillaExpLatencyMsg msg = new AgillaExpLatencyMsg();
		msg.set_latency(latency);
		return msg;
	}
	
	public String toString() {
		return "" + latency();		
	}
}


Index: AgillaGetNbrMsgJ.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla/messages/AgillaGetNbrMsgJ.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AgillaGetNbrMsgJ.java	11 Feb 2006 18:50:49 -0000	1.5
--- AgillaGetNbrMsgJ.java	6 Apr 2006 01:06:08 -0000	1.6
***************
*** 41,44 ****
--- 41,49 ----
  import net.tinyos.message.*;
  
+ /**
+  * This message is sent to a node in the network to query its neighbor list.
+  * 
+  * @author liang
+  */
  public class AgillaGetNbrMsgJ implements MessageJ, AgillaConstants {
  	private int fromPC, replyAddr, destAddr;



More information about the Tinyos-contrib-commits mailing list