Class COTPPacketData
java.lang.Object
org.apache.plc4x.java.s7.readwrite.COTPPacket
org.apache.plc4x.java.s7.readwrite.COTPPacketData
- 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 booleanprotected final shortFields inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
parameters, payload -
Constructor Summary
ConstructorsConstructorDescriptionCOTPPacketData(List<COTPParameter> parameters, S7Message payload, boolean eot, short tpduRef, Integer cotpLen) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetEot()intintshortinthashCode()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
-
eot
protected final boolean eot -
tpduRef
protected final short tpduRef -
cotpLen
-
-
Constructor Details
-
COTPPacketData
public COTPPacketData(List<COTPParameter> parameters, S7Message payload, boolean eot, short tpduRef, Integer cotpLen)
-
-
Method Details
-
getTpduCode
- Specified by:
getTpduCodein classCOTPPacket
-
getEot
public boolean getEot() -
getTpduRef
public short getTpduRef() -
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 COTPPacketData.COTPPacketDataBuilder staticParseBuilder(ReadBuffer readBuffer, Integer cotpLen) throws ParseException - Throws:
ParseException
-
equals
- Overrides:
equalsin classCOTPPacket
-
hashCode
public int hashCode()- Overrides:
hashCodein classCOTPPacket
-
toString
- Overrides:
toStringin classCOTPPacket
-