public class DefaultMoveExtensionTreatment extends org.onosproject.net.flow.AbstractExtension implements MoveExtensionTreatment
Constructor and Description |
---|
DefaultMoveExtensionTreatment(int srcOfs,
int dstOfs,
int nBits,
int src,
int dst,
org.onosproject.net.flow.instructions.ExtensionTreatmentType type)
Creates a new move Treatment.
|
Modifier and Type | Method and Description |
---|---|
void |
deserialize(byte[] data) |
int |
dst()
Returns DST field of move extension action.
|
int |
dstOffset()
Returns DST_OFS field of move extension action.
|
boolean |
equals(Object obj) |
int |
hashCode() |
int |
nBits()
Returns N_BITS field of move extension action.
|
byte[] |
serialize() |
int |
src()
Returns SRC field of move extension action.
|
int |
srcOffset()
Returns SRC_OFS field of move extension action.
|
String |
toString() |
org.onosproject.net.flow.instructions.ExtensionTreatmentType |
type() |
getProperties, getPropertyValue, setPropertyValue
public DefaultMoveExtensionTreatment(int srcOfs, int dstOfs, int nBits, int src, int dst, org.onosproject.net.flow.instructions.ExtensionTreatmentType type)
srcOfs
- source offsetdstOfs
- destination offsetnBits
- nbitssrc
- sourcedst
- destinationtype
- extension treatment typepublic org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
type
in interface org.onosproject.net.flow.instructions.ExtensionTreatment
public byte[] serialize()
serialize
in interface org.onosproject.net.flow.Extension
public void deserialize(byte[] data)
deserialize
in interface org.onosproject.net.flow.Extension
public int srcOffset()
MoveExtensionTreatment
srcOffset
in interface MoveExtensionTreatment
public int dstOffset()
MoveExtensionTreatment
dstOffset
in interface MoveExtensionTreatment
public int src()
MoveExtensionTreatment
src
in interface MoveExtensionTreatment
public int dst()
MoveExtensionTreatment
dst
in interface MoveExtensionTreatment
public int nBits()
MoveExtensionTreatment
nBits
in interface MoveExtensionTreatment
Copyright © 2016. All rights reserved.