Package org.onosproject.net.pi.runtime
Class PiActionSet.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiActionSet.Builder
-
- Enclosing class:
- PiActionSet
public static final class PiActionSet.Builder extends Object
Builder of an action set.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiActionSet.Builder
addWeightedAction(PiAction action, int weight)
Adds a weighted action to this action set.PiActionSet
build()
Creates a new action profile action set.
-
-
-
Method Detail
-
addWeightedAction
public PiActionSet.Builder addWeightedAction(PiAction action, int weight)
Adds a weighted action to this action set.- Parameters:
action
- The action to addweight
- The weight associated to the action- Returns:
- this
-
build
public PiActionSet build()
Creates a new action profile action set.- Returns:
- action profile action set
-
-