Package org.onosproject.net.pi.model
Interface PiMatchFieldModel
-
@Beta public interface PiMatchFieldModelModel of a table match field in a protocol-independent pipeline.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intbitWidth()Returns the number of bits matched by this field.booleanhasBitWidth()Return true is the match field has a predefined bit width.PiMatchFieldIdid()Returns the ID of this match field.PiMatchTypematchType()Returns the type of match applied to this field.
-
-
-
Method Detail
-
id
PiMatchFieldId id()
Returns the ID of this match field.- Returns:
- match field ID
-
bitWidth
int bitWidth()
Returns the number of bits matched by this field. It returns -1 if the bit width of the match field is not predefined.- Returns:
- number of bits, -1 in case it is not predefined
-
hasBitWidth
boolean hasBitWidth()
Return true is the match field has a predefined bit width. It returns false if it can have arbitrary bit width.- Returns:
- True if the match field has predefined bit width, false otherwise
-
matchType
PiMatchType matchType()
Returns the type of match applied to this field.- Returns:
- a match type
-
-