Class OplinkAttenuation
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.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.ExtensionTreatmentInstruction for Oplink channel attenuation.
-
-
Constructor Summary
Constructors Constructor Description OplinkAttenuation(int attenuation)Creates new attenuation instruction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)booleanequals(java.lang.Object obj)intgetAttenuation()Gets the attenuation value.inthashCode()byte[]serialize()voidsetAttenuation(int attenuation)Modify the attenuation value.java.lang.StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
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:
typein interfaceorg.onosproject.net.flow.instructions.ExtensionTreatment
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceorg.onosproject.net.flow.Extension
-
deserialize
public void deserialize(byte[] data)
- Specified by:
deserializein interfaceorg.onosproject.net.flow.Extension
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-