Class Ofdpa3SetQosIndex

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

    public class Ofdpa3SetQosIndex
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    OFDPA set Qos Index extension instruction.
    • Constructor Detail

      • Ofdpa3SetQosIndex

        protected Ofdpa3SetQosIndex()
        Constructs a new set Qos index instruction.
      • Ofdpa3SetQosIndex

        public Ofdpa3SetQosIndex​(int qosindex)
        Constructs a new set Qos index instruction with a given int.
        Parameters:
        qosindex - Qos index as integer
    • Method Detail

      • qosIndex

        public int qosIndex()
        Gets the Qos index as int.
        Returns:
        the Qos index as int.
      • 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