OMG-OCUP2-INT200 practice question 9 of 10

What characteristic does a behavior port possess?

Full set: 136 questions
Answer options
A: owns the behavior of the classifier that owns the port
B: must have a protocol state machine
C: has its own behavior that is distinct from the behavior of the classifier
D: relays any incoming messages directly to the behavior of the owning object Correct answer
E: defines the behavior that the owning classifier must realize
F: is a kind of behavior
Correct Answer:
D. relays any incoming messages directly to the behavior of the owning object
Explanation

In UML composite structures, a Port is a structural feature that specifies a distinct point of interaction between an EncapsulatedClassifier and its environment. When a Port has its isBehavior property set to true, it is designated as a behavior port. The key characteristic of a behavior port is that any incoming requests or messages arriving at the port are not forwarded to internal parts or sub-components of the classifier. Instead, they are routed directly to the behavior of the owning classifier object (typically its classifierBehavior). This allows the owning object itself to handle incoming interactions directly at its boundary.

Why Incorrect

A: Incorrect. A behavior port does not own the classifier's behavior; it specifies how incoming requests are directed. B: Incorrect. A behavior port is not required to have a protocol state machine attached to it. C: Incorrect. A behavior port routes messages to the encapsulating classifier's behavior rather than possessing its own separate behavior. E: Incorrect. Interfaces or realize relationships define requirements, whereas a behavior port routes execution calls to the classifier behavior. F: Incorrect. A Port is a structural feature (Property), not a type or kind of Behavior.

References

- OMG Unified Modeling Language (OMG UML) Specification

Version 2.5.1

Section 11.3.3 (Ports)

p. 189.

- OMG Unified Modeling Language (OMG UML) Specification

Version 2.5.1

Section 11.3.3.1 (Semantics - Behavior Ports)

p. 190.

Scroll to Top