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 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 Object