Class Ofdpa3CopyField
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.Ofdpa3CopyField
-
- All Implemented Interfaces:
org.onosproject.net.flow.Extension,org.onosproject.net.flow.instructions.ExtensionTreatment
public class Ofdpa3CopyField extends org.onosproject.net.flow.AbstractExtension implements org.onosproject.net.flow.instructions.ExtensionTreatmentOFDPA copy field extension instruction.
-
-
Field Summary
Fields Modifier and Type Field Description static intOXM_ID_PACKET_REG_1static intOXM_ID_VLAN_VID
-
Constructor Summary
Constructors Constructor Description Ofdpa3CopyField()Ofdpa3CopyField(int nBits, int srcOffset, int dstOffset, int src, int dst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)booleanequals(java.lang.Object obj)intgetDst()Returns the dst value.intgetDstOffset()Returns the dstOffset value.intgetnBits()Returns the nBits value.intgetSrc()Returns the src value.intgetSrcOffset()Returns the srcOffset value.inthashCode()byte[]serialize()java.lang.StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
Field Detail
-
OXM_ID_VLAN_VID
public static final int OXM_ID_VLAN_VID
- See Also:
- Constant Field Values
-
OXM_ID_PACKET_REG_1
public static final int OXM_ID_PACKET_REG_1
- See Also:
- Constant Field Values
-
-
Method Detail
-
getnBits
public int getnBits()
Returns the nBits value.- Returns:
- nBits value.
-
getSrcOffset
public int getSrcOffset()
Returns the srcOffset value.- Returns:
- srcOffset value.
-
getDstOffset
public int getDstOffset()
Returns the dstOffset value.- Returns:
- dstOffset value.
-
getSrc
public int getSrc()
Returns the src value.- Returns:
- src value.
-
getDst
public int getDst()
Returns the dst value.- Returns:
- dst value.
-
type
public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
- Specified by:
typein interfaceorg.onosproject.net.flow.instructions.ExtensionTreatment
-
deserialize
public void deserialize(byte[] data)
- Specified by:
deserializein interfaceorg.onosproject.net.flow.Extension
-
serialize
public byte[] serialize()
- Specified by:
serializein 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
-
-