public class OplinkAttenuation
extends org.onosproject.net.flow.AbstractExtension
implements org.onosproject.net.flow.instructions.ExtensionTreatment
| Constructor and Description |
|---|
OplinkAttenuation(int attenuation)
Creates new attenuation instruction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(byte[] data) |
boolean |
equals(Object obj) |
int |
getAttenuation()
Gets the attenuation value.
|
int |
hashCode() |
byte[] |
serialize() |
void |
setAttenuation(int attenuation)
Modify the attenuation value.
|
String |
toString() |
org.onosproject.net.flow.instructions.ExtensionTreatmentType |
type() |
getProperties, getPropertyValue, setPropertyValuepublic OplinkAttenuation(int attenuation)
attenuation - attenuation valuepublic int getAttenuation()
public void setAttenuation(int attenuation)
attenuation - new attenuation valuepublic org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
type in interface org.onosproject.net.flow.instructions.ExtensionTreatmentpublic byte[] serialize()
serialize in interface org.onosproject.net.flow.Extensionpublic void deserialize(byte[] data)
deserialize in interface org.onosproject.net.flow.Extension