|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.net.Packet
drcl.inet.sensorsim.SensorPacket
This class implements the packet that a sensor node sends/forwards to the sink node.
| 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 |
public int getDataSize()
public double getMaxSnr()
public long getTargetNid()
public java.lang.String getName()
Packet
getName in class Packetpublic void duplicate(java.lang.Object source_)
public java.lang.Object clone()
ObjectCloneable
clone in interface ObjectCloneableclone in class Packetpublic java.lang.String toString(java.lang.String separator_)
PacketPacket._toString(String).
toString in class Packet
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||