Class OplinkAttenuation

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

    public class OplinkAttenuation
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    Instruction for Oplink channel attenuation.
    • Constructor Detail

      • OplinkAttenuation

        public OplinkAttenuation​(int attenuation)
        Creates new attenuation instruction.
        Parameters:
        attenuation - attenuation value
    • Method Detail

      • getAttenuation

        public int getAttenuation()
        Gets the attenuation value.
        Returns:
        attenuation
      • setAttenuation

        public void setAttenuation​(int attenuation)
        Modify the attenuation value.
        Parameters:
        attenuation - new attenuation value
      • type

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

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object