Maximum diagrams per element#

Maximum diagrams per element

Description#

Maximum diagrams defining an operator, a state, or an action. Parameter: maximum value (e.g.: ‘7’)

Rationale#

This enforces compliance with a specific modeling standard by placing an upper bound on the number of graphical diagrams for each model element.

Verification#

This rule checks all operators, state machines, state machine actions/states, and variables in the model. It retrieves the Number of diagrams per element metric associated to each element.

The rule fails if the limit exceeds the authorized maximum.

Resolution#

Modify the offending element to reduce its number of diagrams, as detailed in the rule failure message.

Customization#

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