Class HdlcParameters
- java.lang.Object
-
- org.openmuc.jdlms.sessionlayer.hdlc.HdlcParameters
-
public class HdlcParameters extends java.lang.Object
This class represents optional parameter that are negotiated during the connection phase between client and server on the HDLC layer. For more information, see IEC 62056-46 section 6.4.4.4.3.2 and ISO 13239 section 5.5.3.2.2
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_INFORMATION_LENGTH
static int
MAX_WINDOW_SIZE
static int
MIN_INFORMATION_LENGTH
static int
MIN_WINDOW_SIZE
-
Constructor Summary
Constructors Constructor Description HdlcParameters()
HdlcParameters(int transmitInformationLength, int transmitWindowSize)
HdlcParameters(int receiveInformationLength, int receiveWindowSize, int transmitInformationLength, int transmitWindowSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HdlcParameters
decode(byte[] data)
byte[]
encode()
int
getReceiveInformationLength()
int
getReceiveWindowSize()
int
getTransmitInformationLength()
int
getTransmitWindowSize()
java.lang.String
toString()
-
-
-
Field Detail
-
MAX_INFORMATION_LENGTH
public static final int MAX_INFORMATION_LENGTH
- See Also:
- Constant Field Values
-
MIN_INFORMATION_LENGTH
public static final int MIN_INFORMATION_LENGTH
- See Also:
- Constant Field Values
-
MIN_WINDOW_SIZE
public static final int MIN_WINDOW_SIZE
- See Also:
- Constant Field Values
-
MAX_WINDOW_SIZE
public static final int MAX_WINDOW_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTransmitInformationLength
public int getTransmitInformationLength()
-
getTransmitWindowSize
public int getTransmitWindowSize()
-
getReceiveInformationLength
public int getReceiveInformationLength()
-
getReceiveWindowSize
public int getReceiveWindowSize()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
decode
public static HdlcParameters decode(byte[] data) throws FrameInvalidException
- Throws:
FrameInvalidException
-
encode
public byte[] encode()
-
-