DRCL J-Sim API

drcl.inet.sensorsim
Class SensorPacket

java.lang.Object
  extended bydrcl.net.Packet
      extended bydrcl.inet.sensorsim.SensorPacket
All Implemented Interfaces:
java.lang.Cloneable, Countable, ObjectCloneable, PacketWrapper

public class SensorPacket
extends Packet

This class implements the packet that a sensor node sends/forwards to the sink node.

Version:
1.0, 12/19/2003
Author:
Ahmed Sobeih

Field Summary
 
Fields inherited from class drcl.net.Packet
body, headerSize, id, size
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 void duplicate(java.lang.Object source_)
           
 int getDataSize()
          Gets the data size.
 double getMaxSnr()
          Gets the MaxSNR.
 java.lang.String getName()
          Returns the name of this packet.
 long getTargetNid()
          Gets the ID of the target node to which the enclosed information pertains.
 java.lang.String toString(java.lang.String separator_)
          Prints the content of this packet; subclasses should override Packet._toString(String).
 
Methods inherited from class drcl.net.Packet
_toString, equals, getBody, getByteCount, getHeaderSize, getNumberCount, getPacketCount, getPacketSize, getPacketType, getSize, getSizeCount, getTimestamp, isByteCountSupported, isPacketCountSupported, isTimestampSupported, setBody, setBody, setHeaderSize, setPacketSize, setSize, setTimestamp, toString, wraps
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDataSize

public int getDataSize()
Gets the data size.


getMaxSnr

public double getMaxSnr()
Gets the MaxSNR.


getTargetNid

public long getTargetNid()
Gets the ID of the target node to which the enclosed information pertains.


getName

public java.lang.String getName()
Description copied from class: Packet
Returns the name of this packet.

Specified by:
getName in class Packet

duplicate

public void duplicate(java.lang.Object source_)

clone

public java.lang.Object clone()
Description copied from interface: ObjectCloneable
Returns a clone of this object.

Specified by:
clone in interface ObjectCloneable
Specified by:
clone in class Packet

toString

public java.lang.String toString(java.lang.String separator_)
Description copied from class: Packet
Prints the content of this packet; subclasses should override Packet._toString(String).

Overrides:
toString in class Packet

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~