tuwien.auto.eicl.struct.eibnetip.util
Class CRI_CRD
java.lang.Object
tuwien.auto.eicl.struct.eibnetip.util.CRI_CRD
public class CRI_CRD
extends java.lang.Object
CRI_CRD = connection request information / connection response data. This
class is able to parse a CRI or CRD structure. All encapsulated information
can be accessed and set by get and set methods. The data body is restricted
to two bytes. (Enough for our purpose)
CRI_CRD(byte[] _Data) - Creates a new instance from a byte array
|
CRI_CRD(short _Connectiontypecode, short[] _Data) - Creates a new instance with the given parameters.
|
CRI_CRD
public CRI_CRD(byte[] _Data)
throws EICLException
Creates a new instance from a byte array
EICLException
- if the byte array has the wrong length this exception is
thrown
CRI_CRD
public CRI_CRD(short _Connectiontypecode,
short[] _Data)
Creates a new instance with the given parameters.
_Connectiontypecode
- The connection type code._Data
- The connection type dependent data bytes.
getConnectionTypeCode
public short getConnectionTypeCode()
Extracts the structure connection type code.
- The structure connection type.
getData
public short[] getData()
Get the data bytes included
getStructLength
public short getStructLength()
Returns the message structure length.
toByteArray
public byte[] toByteArray()
Get the structure byte array representation.
- byte array The structure as byte array.