Class DF1Command
java.lang.Object
org.apache.plc4x.java.df1.readwrite.DF1Command
- All Implemented Interfaces:
org.apache.plc4x.java.spi.generation.Message,org.apache.plc4x.java.spi.utils.Serializable
- Direct Known Subclasses:
DF1UnprotectedReadRequest,DF1UnprotectedReadResponse
public abstract class DF1Command
extends Object
implements org.apache.plc4x.java.spi.generation.Message
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final shortprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract ShortintintshortintinthashCode()voidserialize(org.apache.plc4x.java.spi.generation.WriteBuffer writeBuffer) protected abstract voidserializeDF1CommandChild(org.apache.plc4x.java.spi.generation.WriteBuffer writeBuffer) static DF1CommandstaticParse(org.apache.plc4x.java.spi.generation.ReadBuffer readBuffer) static DF1CommandstaticParse(org.apache.plc4x.java.spi.generation.ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
status
protected final short status -
transactionCounter
protected final int transactionCounter
-
-
Constructor Details
-
DF1Command
public DF1Command(short status, int transactionCounter)
-
-
Method Details
-
getCommandCode
-
getStatus
public short getStatus() -
getTransactionCounter
public int getTransactionCounter() -
serializeDF1CommandChild
protected abstract void serializeDF1CommandChild(org.apache.plc4x.java.spi.generation.WriteBuffer writeBuffer) throws org.apache.plc4x.java.spi.generation.SerializationException - Throws:
org.apache.plc4x.java.spi.generation.SerializationException
-
serialize
public void serialize(org.apache.plc4x.java.spi.generation.WriteBuffer writeBuffer) throws org.apache.plc4x.java.spi.generation.SerializationException - Specified by:
serializein interfaceorg.apache.plc4x.java.spi.utils.Serializable- Throws:
org.apache.plc4x.java.spi.generation.SerializationException
-
getLengthInBytes
public int getLengthInBytes()- Specified by:
getLengthInBytesin interfaceorg.apache.plc4x.java.spi.generation.Message
-
getLengthInBits
public int getLengthInBits()- Specified by:
getLengthInBitsin interfaceorg.apache.plc4x.java.spi.generation.Message
-
staticParse
public static DF1Command staticParse(org.apache.plc4x.java.spi.generation.ReadBuffer readBuffer, Object... args) throws org.apache.plc4x.java.spi.generation.ParseException - Throws:
org.apache.plc4x.java.spi.generation.ParseException
-
staticParse
public static DF1Command staticParse(org.apache.plc4x.java.spi.generation.ReadBuffer readBuffer) throws org.apache.plc4x.java.spi.generation.ParseException - Throws:
org.apache.plc4x.java.spi.generation.ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-