Package org.onosproject.net.pi.runtime
Class PiActionSet
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiActionSet
-
- All Implemented Interfaces:
PiTableAction
@Beta public final class PiActionSet extends Object implements PiTableAction
Instance of an action set of a protocol-independent pipeline used when doing one-shot action selector programming. Contains a set of weighted actions, and it is equivalent to the action profile action set from P4Runtime specifications.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PiActionSet.Builder
Builder of an action set.static class
PiActionSet.WeightedAction
Weighted action used in an actions set.-
Nested classes/interfaces inherited from interface org.onosproject.net.pi.runtime.PiTableAction
PiTableAction.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<PiActionSet.WeightedAction>
actions()
Returns the set of actions.static PiActionSet.Builder
builder()
Returns a new builder of an action set.boolean
equals(Object o)
int
hashCode()
String
toString()
PiTableAction.Type
type()
Type of this action.
-
-
-
Method Detail
-
actions
public Set<PiActionSet.WeightedAction> actions()
Returns the set of actions.- Returns:
- the set of actions
-
type
public PiTableAction.Type type()
Description copied from interface:PiTableAction
Type of this action.- Specified by:
type
in interfacePiTableAction
- Returns:
- a type
-
builder
public static PiActionSet.Builder builder()
Returns a new builder of an action set.- Returns:
- action set builder
-
-