Class COTPPacketTpduError
java.lang.Object
org.apache.plc4x.java.s7.readwrite.COTPPacket
org.apache.plc4x.java.s7.readwrite.COTPPacketTpduError
- All Implemented Interfaces:
Message,Serializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
COTPPacket.COTPPacketBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Integerprotected final intprotected final shortFields inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
parameters, payload -
Constructor Summary
ConstructorsConstructorDescriptionCOTPPacketTpduError(List<COTPParameter> parameters, S7Message payload, int destinationReference, short rejectCause, Integer cotpLen) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintshortinthashCode()protected voidserializeCOTPPacketChild(WriteBuffer writeBuffer) staticParseBuilder(ReadBuffer readBuffer, Integer cotpLen) toString()Methods inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
getParameters, getPayload, serialize, staticParse, staticParseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.plc4x.java.spi.utils.Serializable
serialize
-
Field Details
-
destinationReference
protected final int destinationReference -
rejectCause
protected final short rejectCause -
cotpLen
-
-
Constructor Details
-
COTPPacketTpduError
public COTPPacketTpduError(List<COTPParameter> parameters, S7Message payload, int destinationReference, short rejectCause, Integer cotpLen)
-
-
Method Details
-
getTpduCode
- Specified by:
getTpduCodein classCOTPPacket
-
getDestinationReference
public int getDestinationReference() -
getRejectCause
public short getRejectCause() -
serializeCOTPPacketChild
- Specified by:
serializeCOTPPacketChildin classCOTPPacket- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()- Specified by:
getLengthInBytesin interfaceMessage- Overrides:
getLengthInBytesin classCOTPPacket
-
getLengthInBits
public int getLengthInBits()- Specified by:
getLengthInBitsin interfaceMessage- Overrides:
getLengthInBitsin classCOTPPacket
-
staticParseBuilder
public static COTPPacketTpduError.COTPPacketTpduErrorBuilder staticParseBuilder(ReadBuffer readBuffer, Integer cotpLen) throws ParseException - Throws:
ParseException
-
equals
- Overrides:
equalsin classCOTPPacket
-
hashCode
public int hashCode()- Overrides:
hashCodein classCOTPPacket
-
toString
- Overrides:
toStringin classCOTPPacket
-