tuwien.auto.calimero.link.medium
Class TP1LPollData

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

public class TP1LPollData
extends RawFrameBase

L-polldata frame format on TP1 communication medium.


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
TP1LPollData(byte[] data, int offset)
          Creates a new L-polldata frame out of a byte array.
 
Method Summary
 int getExpectedDataLength()
          Returns the length of expected poll data.
 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

TP1LPollData

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

Parameters:
data - byte array containing the L-polldata 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

getExpectedDataLength

public final int getExpectedDataLength()
Returns the length of expected poll data.

Returns:
length of expected polldata bytes, 1 <= length <= 15

toString

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