Class S7Message
java.lang.Object
org.apache.plc4x.java.s7.readwrite.S7Message
- All Implemented Interfaces:
Message,Serializable
- Direct Known Subclasses:
S7MessageRequest,S7MessageResponse,S7MessageResponseData,S7MessageUserData
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final S7Parameterprotected final S7Payloadstatic final Shortprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintabstract ShortshortintinthashCode()voidserialize(WriteBuffer writeBuffer) protected abstract voidserializeS7MessageChild(WriteBuffer writeBuffer) static S7MessagestaticParse(ReadBuffer readBuffer) static S7MessagestaticParse(ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
PROTOCOLID
-
tpduReference
protected final int tpduReference -
parameter
-
payload
-
-
Constructor Details
-
S7Message
-
-
Method Details
-
getMessageType
-
getTpduReference
public int getTpduReference() -
getParameter
-
getPayload
-
getProtocolId
public short getProtocolId() -
serializeS7MessageChild
protected abstract void serializeS7MessageChild(WriteBuffer writeBuffer) throws SerializationException - Throws:
SerializationException
-
serialize
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
- Throws:
ParseException
-
staticParse
- Throws:
ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-