Class DefaultMoveExtensionTreatment
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.DefaultMoveExtensionTreatment
-
- All Implemented Interfaces:
MoveExtensionTreatment,org.onosproject.net.flow.Extension,org.onosproject.net.flow.instructions.ExtensionTreatment
public class DefaultMoveExtensionTreatment extends org.onosproject.net.flow.AbstractExtension implements MoveExtensionTreatment
Default implementation of Move treatment.
-
-
Constructor Summary
Constructors Constructor Description DefaultMoveExtensionTreatment(int srcOfs, int dstOfs, int nBits, int src, int dst, org.onosproject.net.flow.instructions.ExtensionTreatmentType type)Creates a new move Treatment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)intdst()Returns DST field of move extension action.intdstOffset()Returns DST_OFS field of move extension action.booleanequals(java.lang.Object obj)inthashCode()intnBits()Returns N_BITS field of move extension action.byte[]serialize()intsrc()Returns SRC field of move extension action.intsrcOffset()Returns SRC_OFS field of move extension action.java.lang.StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
Constructor Detail
-
DefaultMoveExtensionTreatment
public DefaultMoveExtensionTreatment(int srcOfs, int dstOfs, int nBits, int src, int dst, org.onosproject.net.flow.instructions.ExtensionTreatmentType type)Creates a new move Treatment.- Parameters:
srcOfs- source offsetdstOfs- destination offsetnBits- nbitssrc- sourcedst- destinationtype- extension treatment type
-
-
Method Detail
-
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
-
srcOffset
public int srcOffset()
Description copied from interface:MoveExtensionTreatmentReturns SRC_OFS field of move extension action.- Specified by:
srcOffsetin interfaceMoveExtensionTreatment- Returns:
- SRC_OFS
-
dstOffset
public int dstOffset()
Description copied from interface:MoveExtensionTreatmentReturns DST_OFS field of move extension action.- Specified by:
dstOffsetin interfaceMoveExtensionTreatment- Returns:
- DST_OFS
-
src
public int src()
Description copied from interface:MoveExtensionTreatmentReturns SRC field of move extension action.- Specified by:
srcin interfaceMoveExtensionTreatment- Returns:
- SRC
-
dst
public int dst()
Description copied from interface:MoveExtensionTreatmentReturns DST field of move extension action.- Specified by:
dstin interfaceMoveExtensionTreatment- Returns:
- DST
-
nBits
public int nBits()
Description copied from interface:MoveExtensionTreatmentReturns N_BITS field of move extension action.- Specified by:
nBitsin interfaceMoveExtensionTreatment- Returns:
- N_BITS
-
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
-
-