|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.knxnetip.util.CRD
tuwien.auto.calimero.knxnetip.util.TunnelCRD
public class TunnelCRD
Connection response data used for KNX tunneling connection.
Constructor Summary | |
---|---|
TunnelCRD(byte[] data,
int offset)
Creates a new CRD for tunnel connection type out of a byte array. |
|
TunnelCRD(IndividualAddress addr)
Creates a new CRD for tunnel connection type containing the given address information. |
Method Summary | |
---|---|
IndividualAddress |
getAssignedAddress()
Returns the assigned address for the tunneling connection. |
short |
getConnectionType()
Returns the used connection type code. |
byte[] |
getOptionalData()
Returns a copy of the optional data field. |
short |
getStructLength()
Returns the structure length of this CR in bytes. |
byte[] |
toByteArray()
Returns the byte representation of the whole CR structure. |
java.lang.String |
toString()
Returns a textual representation of this tunnel CRD. |
Methods inherited from class tuwien.auto.calimero.knxnetip.util.CRD |
---|
createResponse, createResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TunnelCRD(byte[] data, int offset) throws KNXFormatException
The CRD structure has a length of 4 bytes.
data
- byte array containing a CRD structure,
data.length - offset = 4
offset
- start offset of CRD in data
KNXFormatException
- if no CRD found or invalid structurepublic TunnelCRD(IndividualAddress addr)
addr
- individual address assigned to the tunneling connectionMethod Detail |
---|
public final IndividualAddress getAssignedAddress()
IndividualAddress
public java.lang.String toString()
public final short getConnectionType()
public final byte[] getOptionalData()
Optional data starts at offset 2 in the CR structure.
public final short getStructLength()
public byte[] toByteArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |