|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.link.medium.RawFrameBase
public abstract class RawFrameBase
Implementation for raw frames with common used functionality in L-data and L-polldata frames.
For now, implementation is only done to accommodate reception of raw frame (contained in byte arrays), not to build raw frames out of information parts required to assemble a new raw frame.
Objects of this type are considered immutable.
Field Summary | |
---|---|
protected KNXAddress |
dst
Destination address. |
protected boolean |
ext
Is this an extended ( true ) or a standard frame (false ). |
protected int |
fcs
Frame checksum. |
protected int |
hopcount
Frame hop count. |
protected Priority |
p
Frame priority. |
protected boolean |
repetition
Frame repetition flag. |
protected IndividualAddress |
src
Source address. |
protected byte[] |
tpdu
Transport layer protocol data unit. |
protected int |
type
Frame type identifier. |
Fields inherited from interface tuwien.auto.calimero.link.medium.RawFrame |
---|
ACK_FRAME, LDATA_FRAME, LPOLLDATA_FRAME |
Constructor Summary | |
---|---|
RawFrameBase()
|
Method Summary | |
---|---|
int |
getChecksum()
Returns the frame checksum as contained in the frame. |
KNXAddress |
getDestination()
Returns the KNX destination address. |
int |
getFrameType()
Returns the type of this frame. |
byte |
getHopcount()
Returns the hop count of this frame. |
Priority |
getPriority()
Returns the message priority used for this frame. |
IndividualAddress |
getSource()
Returns the KNX individual source address. |
byte[] |
getTPDU()
Returns a copy of the TPDU, if available. |
boolean |
isRepetition()
Returns whether frame repetition is requested, or this is a repeated frame. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected KNXAddress dst
protected boolean ext
true
) or a standard frame (false
).
protected int fcs
protected int hopcount
protected Priority p
protected boolean repetition
protected IndividualAddress src
protected byte[] tpdu
In L-polldata frame tpdu is not used.
protected int type
Constructor Detail |
---|
public RawFrameBase()
Method Detail |
---|
public final int getChecksum()
The returned checksum is taken from the frame "as is", it is not recalculated for
validation nor checked for correctness.
The length and structure of the returned checksum depends on the communication
medium.
public final KNXAddress getDestination()
public final int getFrameType()
RawFrame
getFrameType
in interface RawFrame
public final byte getHopcount()
public final Priority getPriority()
public final IndividualAddress getSource()
public final byte[] getTPDU()
null
for L-polldata framespublic final boolean isRepetition()
A request for repetition or repeated frame is indicated with true
,
otherwise false
is returned.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |