Class COTPPacketConnectionRequest
- java.lang.Object
-
- org.apache.plc4x.java.s7.readwrite.COTPPacket
-
- org.apache.plc4x.java.s7.readwrite.COTPPacketConnectionRequest
-
- All Implemented Interfaces:
Message,Serializable
public class COTPPacketConnectionRequest extends COTPPacket implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCOTPPacketConnectionRequest.COTPPacketConnectionRequestBuilderImpl-
Nested classes/interfaces inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
COTPPacket.COTPPacketBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected intdestinationReferenceprotected COTPProtocolClassprotocolClassprotected intsourceReference-
Fields inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
parameters, payload
-
-
Constructor Summary
Constructors Constructor Description COTPPacketConnectionRequest(List<COTPParameter> parameters, S7Message payload, int destinationReference, int sourceReference, COTPProtocolClass protocolClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetDestinationReference()intgetLengthInBits()intgetLengthInBytes()COTPProtocolClassgetProtocolClass()intgetSourceReference()ShortgetTpduCode()inthashCode()protected voidserializeCOTPPacketChild(WriteBuffer writeBuffer)static COTPPacket.COTPPacketBuilderstaticParseCOTPPacketBuilder(ReadBuffer readBuffer, Integer cotpLen)StringtoString()-
Methods inherited from class org.apache.plc4x.java.s7.readwrite.COTPPacket
getParameters, getPayload, serialize, staticParse, staticParse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.plc4x.java.spi.utils.Serializable
serialize
-
-
-
-
Field Detail
-
destinationReference
protected final int destinationReference
-
sourceReference
protected final int sourceReference
-
protocolClass
protected final COTPProtocolClass protocolClass
-
-
Constructor Detail
-
COTPPacketConnectionRequest
public COTPPacketConnectionRequest(List<COTPParameter> parameters, S7Message payload, int destinationReference, int sourceReference, COTPProtocolClass protocolClass)
-
-
Method Detail
-
getTpduCode
public Short getTpduCode()
- Specified by:
getTpduCodein classCOTPPacket
-
getDestinationReference
public int getDestinationReference()
-
getSourceReference
public int getSourceReference()
-
getProtocolClass
public COTPProtocolClass getProtocolClass()
-
serializeCOTPPacketChild
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException
- 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
-
staticParseCOTPPacketBuilder
public static COTPPacket.COTPPacketBuilder staticParseCOTPPacketBuilder(ReadBuffer readBuffer, Integer cotpLen) throws ParseException
- Throws:
ParseException
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCOTPPacket
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCOTPPacket
-
toString
public String toString()
- Overrides:
toStringin classCOTPPacket
-
-