sidnet.stack.std.mac.ieee802_15_4
Class hdr_cmn

java.lang.Object
  extended by 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


Field Summary
 int error_
           
 int iface_
           
 int lastHopAddr
           
 int next_hop_
           
 int num_forwards_
           
 Packet_t ptype_
           
 int size_
           
 int uid_
           
 boolean xmit_failure_
           
 short xmit_reason_
           
 
Constructor Summary
hdr_cmn()
           
 
Method Summary
 hdr_cmn copy()
           
 sidnet.stack.std.mac.ieee802_15_4.hdr_cmn.dir_t direction()
           
 int error()
           
 void getBytes(byte[] hdr, int offset)
          Store header into byte array.
 int getSize()
          Return header size or Constants.ZERO_WIRE_SIZE.
 Packet_t ptype()
           
 void setDirection(sidnet.stack.std.mac.ieee802_15_4.hdr_cmn.dir_t direction)
           
 void setError(int error)
           
 void setPtype(Packet_t ptype)
           
 void setSize(int size)
           
 void setTxtime(double txtime)
           
 void setUid(int uid)
           
 int size()
           
 double txtime()
           
 int uid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_
Constructor Detail

hdr_cmn

public hdr_cmn()
Method Detail

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]