sidnet.stack.std.mac.ieee802_15_4
Class hdr_mac

java.lang.Object
  extended by sidnet.stack.std.mac.ieee802_15_4.hdr_mac
All Implemented Interfaces:
java.io.Serializable, JistAPI.Timeless, Header

public class hdr_mac
extends java.lang.Object
implements Header, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
hdr_mac()
           
 
Method Summary
 hdr_mac copy()
           
 sidnet.stack.std.mac.ieee802_15_4.MacFrameType ftype()
           
 void getBytes(byte[] hdr, int offset)
          Store header into byte array.
 int getSize()
          Return header size or Constants.ZERO_WIRE_SIZE.
 int hdr_type()
           
 int macDA()
           
 int macSA()
           
 char[] serialize()
           
 void set(sidnet.stack.std.mac.ieee802_15_4.MacFrameType ft, short sa, short da)
           
 double txtime()
           
static hdr_mac unserialize(byte[] stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

hdr_mac

public hdr_mac()
Method Detail

set

public void set(sidnet.stack.std.mac.ieee802_15_4.MacFrameType ft,
                short sa,
                short da)

ftype

public sidnet.stack.std.mac.ieee802_15_4.MacFrameType ftype()

macSA

public int macSA()

macDA

public int macDA()

hdr_type

public int hdr_type()

txtime

public double txtime()

copy

public hdr_mac 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]

serialize

public char[] serialize()

unserialize

public static hdr_mac unserialize(byte[] stream)