Class Ofdpa3SetMplsType

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

    public class Ofdpa3SetMplsType
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    OFDPA set MPLS Type extension instruction.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Ofdpa3SetMplsType()
      Constructs a new set MPLS type instruction.
        Ofdpa3SetMplsType​(short mplsType)
      Constructs a new set MPLS type instruction with given type.
        Ofdpa3SetMplsType​(Ofdpa3MplsType mplsType)
      Constructs a new set MPLS type instruction with given type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deserialize​(byte[] data)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      short mplsType()
      Gets the MPLS type.
      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

      • Ofdpa3SetMplsType

        protected Ofdpa3SetMplsType()
        Constructs a new set MPLS type instruction.
      • Ofdpa3SetMplsType

        public Ofdpa3SetMplsType​(short mplsType)
        Constructs a new set MPLS type instruction with given type.
        Parameters:
        mplsType - MPLS type in short
      • Ofdpa3SetMplsType

        public Ofdpa3SetMplsType​(Ofdpa3MplsType mplsType)
        Constructs a new set MPLS type instruction with given type.
        Parameters:
        mplsType - Ofdpa3MplsType
    • Method Detail

      • mplsType

        public short mplsType()
        Gets the MPLS type.
        Returns:
        MPLS type
      • 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