tuwien.auto.calimero.link.medium
Class PL132LData

java.lang.Object
  extended by tuwien.auto.calimero.link.medium.RawFrameBase
      extended by tuwien.auto.calimero.link.medium.PL132LData
All Implemented Interfaces:
RawFrame

public class PL132LData
extends RawFrameBase

L-data frame format on PL132 communication medium.

Supports standard and extended frame format.


Field Summary
 
Fields inherited from class tuwien.auto.calimero.link.medium.RawFrameBase
dst, ext, fcs, hopcount, p, repetition, src, tpdu, type
 
Fields inherited from interface tuwien.auto.calimero.link.medium.RawFrame
ACK_FRAME, LDATA_FRAME, LPOLLDATA_FRAME
 
Constructor Summary
PL132LData(byte[] data, int offset)
          Creates a new L-data frame out of a byte array.
 
Method Summary
 byte[] getDomainAddress()
          Returns the domain address of this frame.
 boolean isAckRequested()
          Returns whether layer 2 acknowledge is requested or not.
 java.lang.String toString()
           
 
Methods inherited from class tuwien.auto.calimero.link.medium.RawFrameBase
getChecksum, getDestination, getFrameType, getHopcount, getPriority, getSource, getTPDU, isRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PL132LData

public PL132LData(byte[] data,
                  int offset)
           throws KNXFormatException
Creates a new L-data frame out of a byte array.

Parameters:
data - byte array containing the L-data frame
offset - start offset of frame structure in data, offset >= 0
Throws:
KNXFormatException - if length of data too short for frame, on no valid frame structure
Method Detail

getDomainAddress

public final byte[] getDomainAddress()
Returns the domain address of this frame.

The address is returned in network byte order.

Returns:
domain address as byte array of length 2

isAckRequested

public final boolean isAckRequested()
Returns whether layer 2 acknowledge is requested or not.

Returns:
true if L2-ACK requested, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class RawFrameBase