## Uses of Class
com.h3c.of.lib.msg.PortFeature

- Packages that use PortFeature
  Package | Description
  --- | ---
  com.h3c.of.lib.msg | Representations of OpenFlow Protocol Messages.
  com.h3c.of.sw | Provides mock implementations of OpenFlow switches.

- - ### Uses of PortFeature in com.h3c.of.lib.msg

    Methods in com.h3c.of.lib.msg that return PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `static PortFeature` | PortFeature.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static PortFeature[]` | PortFeature.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Methods in com.h3c.of.lib.msg that return types with arguments of type PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `Set<PortFeature>` | OfmPortMod.`getAdvertise()` The features of this port to advertise; Since 1.0.
    `Set<PortFeature>` | Port.`getAdvertised()` Returns the set of features advertised by the port; Since 1.0.
    `Set<PortFeature>` | Port.`getCurrent()` Returns the set of current features; Since 1.0.
    `Set<PortFeature>` | Port.`getPeer()` Returns the set of features advertised by the peer; Since 1.0.
    `Set<PortFeature>` | Port.`getSupported()` Returns the set of features supported by the port; Since 1.0.

    Method parameters in com.h3c.of.lib.msg with type arguments of type PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `OfmMutablePortMod` | OfmMutablePortMod.`advertise(Set<PortFeature> features)` Sets the features of this port to advertise; Since 1.0.
    `MutablePort` | MutablePort.`advertised(Set<PortFeature> advertised)` Sets the port advertised features flags, (may be null); Since 1.0.
    `MutablePort` | MutablePort.`current(Set<PortFeature> current)` Sets the port current features flags, (may be null); Since 1.0.
    `MutablePort` | MutablePort.`peer(Set<PortFeature> peer)` Sets the port peer features flags, (may be null); Since 1.0.
    `MutablePort` | MutablePort.`supported(Set<PortFeature> supported)` Sets the port supported features flags, (may be null); Since 1.0.

  - ### Uses of PortFeature in com.h3c.of.sw

    Methods in com.h3c.of.sw that return PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `static PortFeature` | CfgFeat.`pickRate(Set<PortFeature> portFeatures)` Picks the first Rate flag and returns it.

    Methods in com.h3c.of.sw that return types with arguments of type PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `Set<PortFeature>` | CfgFeat.`getPortFeatures()` Returns the port feature flags.
    `Set<PortFeature>` | CfgFeat.`getPortFeatures(int index)` Returns the port feature flags for the given port index.

    Methods in com.h3c.of.sw with parameters of type PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `static long` | CfgFeat.`pickCurrentSpeed(PortFeature rate)` Using the specified rate, divides by 2 to provide a fake current port speed value.
    `static long` | CfgFeat.`pickMaxSpeed(PortFeature rate)` Uses the specified rate to return a fake max port speed value.

    Method parameters in com.h3c.of.sw with type arguments of type PortFeature
    Modifier and Type | Method and Description
    --- | ---
    `void` | CfgFeat.`overridePortFeatures(int index, Set<PortFeature> features)` Overrides the default port features for the given port index.
    `static PortFeature` | CfgFeat.`pickRate(Set<PortFeature> portFeatures)` Picks the first Rate flag and returns it.
    `void` | CfgFeat.`setPortFeatures(Set<PortFeature> portFeatures)` Sets the default port features.

Copyright © 2014. All Rights Reserved.