/***************************************************************** SPINE - Signal Processing In-Node Environment is a framework that allows dynamic on node configuration for feature extraction and a OtA protocol for the management for WSN Copyright (C) 2007 Telecom Italia S.p.A. GNU Lesser General Public License This library is free software; you can redistribute modify it under the terms of the sub-license (below). *****************************************************************/ /***************************************************************** BSPAN - BlueTooth Sensor Processing for Android is a framework that extends the SPINE framework to work on Android and the Android Bluetooth communication services. Copyright (C) 2011 The National Center for Telehealth and Technology Eclipse Public License 1.0 (EPL-1.0) This library is free software; you can redistribute it and/or modify it under the terms of the Eclipse Public License as published by the Free Software Foundation, version 1.0 of the License. The Eclipse Public License is a reciprocal license, under Section 3. REQUIREMENTS iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. Post your updates and modifications to our GitHub or email to t2@tee2.org. This library is distributed WITHOUT ANY WARRANTY; without the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Eclipse Public License 1.0 (EPL-1.0) for more details. You should have received a copy of the Eclipse Public License along with this library; if not, visit http://www.opensource.org/licenses/EPL-1.0 *****************************************************************/ package com.tilab.gal; /** * Stub file for base class of generic Message * * @author scott.coleman * */ public class Message { // Field descriptor #8 S protected short srcAddr; // Field descriptor #8 S protected short srcEndpoint; // Field descriptor #8 S protected short dstAddr; // Field descriptor #8 S protected short destEndpoint; // Field descriptor #13 Ljava/lang/String; protected java.lang.String sourceURL; // Field descriptor #13 Ljava/lang/String; protected java.lang.String destinationURL; // Field descriptor #13 Ljava/lang/String; protected java.lang.String connectionURL; // Field descriptor #8 S protected short wasBroadcast; // Field descriptor #8 S protected short linkQuality; // Field descriptor #8 S protected short securityUse; // Field descriptor #20 J protected long timestamp; // Field descriptor #8 S protected short transSeqNumber; // Field descriptor #23 B protected byte txSettings; // Field descriptor #8 S protected short options; // Field descriptor #8 S protected short radius; // Field descriptor #27 I protected int maxHopsNumber; // Field descriptor #8 S protected short len; // Field descriptor #30 [S protected short[] data; // Field descriptor #8 S protected short clusterId; // Field descriptor #8 S protected short profileId; // Field descriptor #8 S protected short groupId; // Field descriptor #27 I static final int SECURITYSTATUS_UNSECURE = 0; // Field descriptor #27 I static final int SECURITYSTATUS_SECUREDNETWORKKEY = 1; // Field descriptor #27 I static final int SECURITYSTATUS_SECUREDLINKKEY = 2; // Field descriptor #23 B static final byte TXSETTING_SECURITYENABLEDTRANSMISSION = 1; // Field descriptor #23 B static final byte TXSETTING_USENETWORKKEY = 2; // Field descriptor #23 B static final byte TXSETTING_ACKNOWLEDGEDTRANSMISSION = 4; // Field descriptor #23 B static final byte TXSETTING_FRAGMENTATIONPERMITTED = 8; public Message(short dstAddr, short destEndpoint, short srcEndpoint, short clusterId, short transId, short options, short radius, short len, short[] data) { this.dstAddr = dstAddr; this.destEndpoint = destEndpoint; this.srcEndpoint = srcEndpoint; this.clusterId = clusterId; this.transSeqNumber = transId; this.options = options; this.radius = radius; this.len = len; this.data = data; } public Message() { } public short getSrcAddr() { return this.srcAddr; } public short getSrcEndpoint() { return this.srcEndpoint; } public short getDstAddr() { return this.dstAddr; } public short getDestEndpoint() { return this.destEndpoint; } public java.lang.String getSourceURL() { return this.sourceURL; } public java.lang.String getDestinationURL() { return this.destinationURL; } public void setDestinationURL(java.lang.String destinationURL) { this.destinationURL = destinationURL; } public java.lang.String getConnectionURL() { return this.connectionURL; } public boolean isBroadcast() { return (wasBroadcast != 0) ? true:false; } public short getLinkQuality() { return this.linkQuality; } public void setLinkQuality(short linkQuality) { this.linkQuality = linkQuality; } public short getSecurityStatus() { return this.securityUse; } // Method descriptor #110 (S)V // Stack: 2, Locals: 2 public void setSecurityStatus(short securityStatus) { this.securityUse = securityStatus; } public long getTimestamp() { return this.timestamp; } public short getTransNo() { return this.transSeqNumber; } public byte getTxSettings() { return this.txSettings; } public void setTxSettings(byte txSettings) { this.txSettings = txSettings; } public short getOptions() { return this.options; } public short getRadius() { return this.radius; } public int getMaxHopsNumber() { return this.maxHopsNumber; } public void setMaxHopsNumber(int maxHopsNumber) { this.maxHopsNumber = maxHopsNumber; } public short getLen() { return this.len; } public short[] getPayload() { return this.data; } public void setPayload(short[] payload) { this.data = payload; } public short getClusterId() { return this.clusterId; } public void setClusterId(short clusterId) { this.clusterId = clusterId; } public short getProfileId() { return this.profileId; } public void setProfileId(short profileId) { this.profileId = profileId; } public short getGroupId() { return this.groupId; } }