Class HdlcFrame
- java.lang.Object
-
- org.openmuc.jdlms.sessionlayer.hdlc.HdlcFrame
-
public class HdlcFrame extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
decode
public static HdlcFrame decode(byte[] frame) throws FrameInvalidException
- Throws:
FrameInvalidException
-
newInformationFrame
public static HdlcFrame newInformationFrame(HdlcAddressPair addressPair, int sendSequence, int receiveSequence, byte[] data, boolean segmented, boolean addLcc)
-
newReceiveReadyFrame
public static HdlcFrame newReceiveReadyFrame(HdlcAddressPair addressPair, int receiveSeq, boolean poll)
-
newSetNormalResponseModeFrame
public static HdlcFrame newSetNormalResponseModeFrame(HdlcAddressPair addressPair, HdlcParameters negotiationParams, boolean poll)
-
newUnnumberedInformationFrame
public static HdlcFrame newUnnumberedInformationFrame(HdlcAddressPair addressPair, byte[] information, boolean poll)
-
newDisconnectFrame
public static HdlcFrame newDisconnectFrame(HdlcAddressPair addressPair, boolean poll)
-
newReceiveNotReadyFrame
public static HdlcFrame newReceiveNotReadyFrame(HdlcAddressPair addressPair, int receiveSeq, boolean poll)
-
newUnnumberedAcknowledgeFrame
public static HdlcFrame newUnnumberedAcknowledgeFrame(HdlcAddressPair addressPair, HdlcParameters negotiationParams, boolean poll) throws java.io.IOException
- Throws:
java.io.IOException
-
newDisconnectModeFrame
public static HdlcFrame newDisconnectModeFrame(HdlcAddressPair addressPair, byte[] information, boolean poll)
-
newFrameRejectFrame
public static HdlcFrame newFrameRejectFrame(HdlcAddressPair addressPair, FrameRejectReason reason, boolean poll)
-
getDestinationAddress
public HdlcAddress getDestinationAddress()
-
getSourceAddress
public HdlcAddress getSourceAddress()
-
getAddressPair
public HdlcAddressPair getAddressPair()
-
getFrameType
public FrameType getFrameType()
-
getInformationField
public byte[] getInformationField()
-
getInformationFieldWithoutLlc
public byte[] getInformationFieldWithoutLlc()
-
getLength
public int getLength()
-
getSendSequence
public int getSendSequence()
-
getReceiveSequence
public int getReceiveSequence()
-
isSegmented
public boolean isSegmented()
-
encode
public byte[] encode()
-
encodeWithoutFlags
public byte[] encodeWithoutFlags()
-
-