sidnet.stack.std.mac.ieee802_15_4
Class hdr_cmn
java.lang.Object
sidnet.stack.std.mac.ieee802_15_4.hdr_cmn
- All Implemented Interfaces:
- JistAPI.Timeless, Header
public class hdr_cmn
- extends java.lang.Object
- implements Header
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ptype_
public Packet_t ptype_
size_
public int size_
uid_
public int uid_
error_
public int error_
iface_
public int iface_
lastHopAddr
public int lastHopAddr
xmit_failure_
public boolean xmit_failure_
xmit_reason_
public short xmit_reason_
num_forwards_
public int num_forwards_
next_hop_
public int next_hop_
hdr_cmn
public hdr_cmn()
ptype
public Packet_t ptype()
setPtype
public void setPtype(Packet_t ptype)
size
public int size()
setSize
public void setSize(int size)
uid
public int uid()
setUid
public void setUid(int uid)
error
public int error()
setError
public void setError(int error)
direction
public sidnet.stack.std.mac.ieee802_15_4.hdr_cmn.dir_t direction()
setDirection
public void setDirection(sidnet.stack.std.mac.ieee802_15_4.hdr_cmn.dir_t direction)
txtime
public double txtime()
setTxtime
public void setTxtime(double txtime)
copy
public hdr_cmn copy()
getBytes
public void getBytes(byte[] hdr,
int offset)
- Description copied from interface:
Header
- Store header into byte array.
- Specified by:
getBytes
in interface Header
offset
- byte array starting offset
getSize
public int getSize()
- Description copied from interface:
Header
- Return header size or Constants.ZERO_WIRE_SIZE.
- Specified by:
getSize
in interface Header
- Returns:
- header size [in bytes]