Package org.onosproject.net.pi.model
Interface PiActionParamModel
-
@Beta public interface PiActionParamModel
Model of an action runtime parameter in a protocol-independent pipeline.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
bitWidth()
Return the size in bits of this action parameter.boolean
hasBitWidth()
Return true is the action parameters has a predefined bit width.PiActionParamId
id()
Returns the ID of this action parameter.
-
-
-
Method Detail
-
id
PiActionParamId id()
Returns the ID of this action parameter.- Returns:
- action parameter ID
-
bitWidth
int bitWidth()
Return the size in bits of this action parameter. It returns -1 if the bit width of the action parameters is not predefined.- Returns:
- size in bits, -1 if not predefined
-
hasBitWidth
boolean hasBitWidth()
Return true is the action parameters has a predefined bit width. It returns false if it can have arbitrary bit width.- Returns:
- True if the action parameter has predefined bit width, false otherwise
-
-