Maximum user operators in diagram#

Maximum user operators in diagram

Description#

Maximum graphical user-operator instances within a single diagram. Parameter: maximum value (e.g.: ‘7’)

The rule parameter is an integer value describing the maximum authorized number of user-defined operators. Default value is 7.

Rationale#

This enforces compliance with a specific modeling standard by placing an upper bound on the number of user-defined operators that may be called in a diagram.

Verification#

This rule checks all graphical diagrams in the model. It retrieves the Number of user operators in diagram metric associated to each diagram, and fails if the count exceeds the authorized maximum.

Resolution#

Modify the diagram to reduce the number of user-defined operator calls.

Customization#

This rule depends on the Number of user operators in diagram metric, that must be included in the package. If you customize the ID of this metric, you must provide it when instantiating the rule, using the parameter metric_id.

Cf. Customization for an example.