com.h3c.of.lib

## Interface OfpCodeBasedEnum

- All Superinterfaces:
    OfpEnum
  All Known Subinterfaces:
    ErrorCode
  All Known Implementing Classes:
    ActionType, ControllerRole, ECodeBadAction, ECodeBadInstruction, ECodeBadMatch, ECodeBadRequest, ECodeFlowModFailed, ECodeGroupModFailed, ECodeHelloFailed, ECodeMeterModFailed, ECodePortModFailed, ECodeQueueOpFailed, ECodeRoleRequestFailed, ECodeSwitchConfigFailed, ECodeTableFeaturesFailed, ECodeTableModFailed, ErrorType, FlowModCommand, FlowRemovedReason, GroupModCommand, GroupType, HelloElementType, InstructionType, MatchType, MeterBandType, MeterModCommand, MultipartType, PacketInReason, PortReason, QueuePropType, TableFeaturePropType

      public interface OfpCodeBasedEnum
      extends OfpEnum

  Implemented by enums that represent OpenFlow protocol coded values.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCode(ProtocolVersion pv)` Returns the code for the constant, under the given protocol version.

- - ### Method Detail

    - #### getCode

          int getCode(ProtocolVersion pv)

      Returns the code for the constant, under the given protocol version.
      Parameters:
        `pv` - the protocol version
      Returns:
        the code for the constant

Copyright © 2014. All Rights Reserved.