Class 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
      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​(java.lang.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.
      java.lang.String toString()  
      org.onosproject.net.flow.instructions.ExtensionTreatmentType type()  
      • Methods inherited from class org.onosproject.net.flow.AbstractExtension

        getProperties, getPropertyValue, setPropertyValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.flow.Extension

        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 offset
        dstOfs - destination offset
        nBits - nbits
        src - source
        dst - destination
        type - extension treatment type
    • Method Detail

      • type

        public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
        Specified by:
        type in interface org.onosproject.net.flow.instructions.ExtensionTreatment
      • serialize

        public byte[] serialize()
        Specified by:
        serialize in interface org.onosproject.net.flow.Extension
      • deserialize

        public void deserialize​(byte[] data)
        Specified by:
        deserialize in interface org.onosproject.net.flow.Extension
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object