What happens to the elements of a model when a profile is applied to the model?

Choose the correct answer

What happens to the elements of a model when a profile is applied to the model?
A . The stereotypes defined in the profile are applied to the model’s metamodel elements
B. The stereotypes defined in the profile are available to be applied to any element in the model.
C. The stereotypes defined in the profile may be applied to elements sharing compatible metaclasses
D. The stereotypes defined in the profile ate automatically applied lo the elements sharing compatible metaclasses

Answer: C

Explanation:

A profile is a mechanism for extending the UML or SysML metamodel with domain-specific concepts. A profile defines stereotypes, which are extensions of existing metaclasses. A metaclass is a modeling construct that defines the properties and behavior of a set of model elements. For example, the metaclass Class defines the properties and behavior of all classes in a model. When a profile is applied to a model, the stereotypes defined in the profile may beapplied to elements sharing compatible metaclasses. For example, if a profile defines a stereotype <<device>> as an extension of the metaclass Class, then the stereotype <<device>> may be applied to any class in the model.

References: https://www.omg.org/ocsmp/ocsmp-adv-exam.htm https://www.omg.org/spec/UML/About-UML/https://www.omg.org/spec/SysML/About-SysML/

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments