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
  • Field Details

    • status

      protected final short status
    • transactionCounter

      protected final int transactionCounter
  • Constructor Details

    • DF1Command

      public DF1Command(short status, int transactionCounter)
  • Method Details

    • getCommandCode

      public abstract Short 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:
      serialize in interface org.apache.plc4x.java.spi.utils.Serializable
      Throws:
      org.apache.plc4x.java.spi.generation.SerializationException
    • getLengthInBytes

      public int getLengthInBytes()
      Specified by:
      getLengthInBytes in interface org.apache.plc4x.java.spi.generation.Message
    • getLengthInBits

      public int getLengthInBits()
      Specified by:
      getLengthInBits in interface org.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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object