[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla/messages AgillaProxyBeaconMsgJ.java, NONE, 1.1.2.1

Chien-Liang Fok chien-liang at users.sourceforge.net
Mon Nov 20 19:39:44 PST 2006


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

Added Files:
      Tag: GroupComm
	AgillaProxyBeaconMsgJ.java 
Log Message:
Initial commit.

--- NEW FILE: AgillaProxyBeaconMsgJ.java ---
// $Id: AgillaProxyBeaconMsgJ.java,v 1.1.2.1 2006/11/21 03:39:42 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.*;
import net.tinyos.message.*;

public class AgillaProxyBeaconMsgJ implements MessageJ, AgillaConstants {
	private int id, vID;
	
	public AgillaProxyBeaconMsgJ() {}
	
	public AgillaProxyBeaconMsgJ(AgillaProxyBeaconMsg msg) {
		id = msg.get_id();
		vID = msg.get_vID();
	}
	
	public int getType() {
		//return AM_AGILLABEACONMSG;
		return AgillaProxyBeaconMsg.AM_TYPE;
	}
	
	public Message toTOSMsg() {
		AgillaProxyBeaconMsg msg = new AgillaProxyBeaconMsg();
		msg.set_id(id);
		msg.set_vID(vID);		
		return msg;
	}
	
	public String toString() {
		return "PROXY BEACON: " + id + ", vID = " + vID;
	}
}




More information about the Tinyos-contrib-commits mailing list