Maximum operators per package#

Maximum operators per package

Description#

Maximum operators per package.

The rule parameter is an integer value describing the maximum authorized number of operators per package. Default value is 10.

Rationale#

This enforces compliance with a specific modeling standard by placing an upper bound on the number of operators in each package.

Verification#

This rule checks each package in the model. It retrieves the Number of operators per package metric associated to each package, and fails if the count exceeds the authorized maximum.

Resolution#

Modify the offending package to reduce its number of operators.

Customization#

This rule depends on the Number of operators per package 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.