Class DF1ResponseMessage
java.lang.Object
org.apache.plc4x.java.abeth.readwrite.DF1ResponseMessage
- All Implemented Interfaces:
Message,Serializable
- Direct Known Subclasses:
DF1CommandResponseMessageProtectedTypedLogicalRead
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final shortprotected final Integerprotected final shortprotected final shortprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionDF1ResponseMessage(short destinationAddress, short sourceAddress, short status, int transactionCounter, Integer payloadLength) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract ShortshortintintshortshortintinthashCode()voidserialize(WriteBuffer writeBuffer) protected abstract voidserializeDF1ResponseMessageChild(WriteBuffer writeBuffer) static DF1ResponseMessagestaticParse(ReadBuffer readBuffer, Integer payloadLength) static DF1ResponseMessagestaticParse(ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
destinationAddress
protected final short destinationAddress -
sourceAddress
protected final short sourceAddress -
status
protected final short status -
transactionCounter
protected final int transactionCounter -
payloadLength
-
-
Constructor Details
-
DF1ResponseMessage
public DF1ResponseMessage(short destinationAddress, short sourceAddress, short status, int transactionCounter, Integer payloadLength)
-
-
Method Details
-
getCommandCode
-
getDestinationAddress
public short getDestinationAddress() -
getSourceAddress
public short getSourceAddress() -
getStatus
public short getStatus() -
getTransactionCounter
public int getTransactionCounter() -
serializeDF1ResponseMessageChild
protected abstract void serializeDF1ResponseMessageChild(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
public static DF1ResponseMessage staticParse(ReadBuffer readBuffer, Object... args) throws ParseException - Throws:
ParseException
-
staticParse
public static DF1ResponseMessage staticParse(ReadBuffer readBuffer, Integer payloadLength) throws ParseException - Throws:
ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-