Class Ofdpa3CopyField

  • All Implemented Interfaces:
    org.onosproject.net.flow.Extension, org.onosproject.net.flow.instructions.ExtensionTreatment

    public class Ofdpa3CopyField
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    OFDPA copy field extension instruction.
    • Constructor Summary

      Constructors 
      Constructor Description
      Ofdpa3CopyField()  
      Ofdpa3CopyField​(int nBits, int srcOffset, int dstOffset, int src, int dst)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deserialize​(byte[] data)  
      boolean equals​(java.lang.Object obj)  
      int getDst()
      Returns the dst value.
      int getDstOffset()
      Returns the dstOffset value.
      int getnBits()
      Returns the nBits value.
      int getSrc()
      Returns the src value.
      int getSrcOffset()
      Returns the srcOffset value.
      int hashCode()  
      byte[] serialize()  
      java.lang.String toString()  
      org.onosproject.net.flow.instructions.ExtensionTreatmentType type()  
      • Methods inherited from class org.onosproject.net.flow.AbstractExtension

        getProperties, getPropertyValue, setPropertyValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.flow.Extension

        getProperties, getPropertyValue, setPropertyValue
    • Constructor Detail

      • Ofdpa3CopyField

        public Ofdpa3CopyField()
      • Ofdpa3CopyField

        public Ofdpa3CopyField​(int nBits,
                               int srcOffset,
                               int dstOffset,
                               int src,
                               int dst)
    • Method Detail

      • getnBits

        public int getnBits()
        Returns the nBits value.
        Returns:
        nBits value.
      • getSrcOffset

        public int getSrcOffset()
        Returns the srcOffset value.
        Returns:
        srcOffset value.
      • getDstOffset

        public int getDstOffset()
        Returns the dstOffset value.
        Returns:
        dstOffset value.
      • getSrc

        public int getSrc()
        Returns the src value.
        Returns:
        src value.
      • getDst

        public int getDst()
        Returns the dst value.
        Returns:
        dst value.
      • type

        public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
        Specified by:
        type in interface org.onosproject.net.flow.instructions.ExtensionTreatment
      • deserialize

        public void deserialize​(byte[] data)
        Specified by:
        deserialize in interface org.onosproject.net.flow.Extension
      • serialize

        public byte[] serialize()
        Specified by:
        serialize in interface org.onosproject.net.flow.Extension
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object