Interface PiMatchFieldModel


  • @Beta
    public interface PiMatchFieldModel
    Model of a table match field in a protocol-independent pipeline.
    • 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