An operational view of conformance as defined by the Matter Specification.

We extend the specification's syntax to add ">", "<", ">=" and "<=". These are required to encode some portions of the specification that are described in prose.

"Conformance" controls when a data field or cluster element is allowed or required.

Hierarchy (view full)

Constructors

Properties

ast: Ast
definition: Definition
errors?: DefinitionError[]

Accessors

  • get isMandatory(): boolean
  • Is the associated element mandatory?

    This supports a limited subset of conformance and is only appropriate for field and requirement conformance.

    Returns boolean

Methods

  • Perform limited conformance evaluation to determine whether this conformance is applicable given a feature combination.

    Ignores subexpressions that reference field values.

    This is useful for filtering elements at compile time. For complete accuracy you then need to filter at runtime once field values are known.

    Parameters

    • features: Iterable<string, any, any>
    • supportedFeatures: Iterable<string, any, any>

    Returns boolean