Package org.onosproject.net.pi.runtime
Class PiAction
- java.lang.Object
- 
- org.onosproject.net.pi.runtime.PiAction
 
- 
- All Implemented Interfaces:
- PiTableAction
 
 @Beta public final class PiAction extends java.lang.Object implements PiTableAction Instance of an action, and its runtime parameters, of a table entry in a protocol-independent pipeline.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPiAction.BuilderBuilder of protocol-independent actions.- 
Nested classes/interfaces inherited from interface org.onosproject.net.pi.runtime.PiTableActionPiTableAction.Type
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiAction.Builderbuilder()Returns an action builder.booleanequals(java.lang.Object o)inthashCode()PiActionIdid()Return the identifier of this action.java.util.Collection<PiActionParam>parameters()Returns all runtime parameters of this action.java.lang.StringtoString()PiTableAction.Typetype()Type of this action.
 
- 
- 
- 
Method Detail- 
typepublic PiTableAction.Type type() Description copied from interface:PiTableActionType of this action.- Specified by:
- typein interface- PiTableAction
- Returns:
- a type
 
 - 
idpublic PiActionId id() Return the identifier of this action.- Returns:
- action identifier
 
 - 
parameterspublic java.util.Collection<PiActionParam> parameters() Returns all runtime parameters of this action. Return an empty collection if the action doesn't take any runtime parameters.- Returns:
- list of byte sequences
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
builderpublic static PiAction.Builder builder() Returns an action builder.- Returns:
- a new builder
 
 
- 
 
-