Previous UML Classes Table of Contents UML Packages Next


14.3.11 Gate

Fragments


*Generalizations

   

    MessageEnd (from BasicInteractions ) on page 515

*Description

   A Gate is a connection point for relating a Message outside an InteractionFragment with a Message inside the InteractionFragment .

   Gate is a specialization of MessageEnd .

   Gate s are connected through Messages. A Gate is actually a representative of an OccurrenceSpecification that is not in the same scope as the Gate .

   Gate s play different roles: we have formal gates on Interactions, actual gates on InteractionUse s, expression gates on CombinedFragment s.

   Constraints

   [1] The message leading to/from an actualGate of an InteractionUse must correspond to the message leading from/to the formalGate with the same name of the Interaction referenced by the InteractionUse .

   [2] The message leading to/from an (expression) Gate within a CombinedFragment must correspond to the message leading from/to the CombinedFragment on its outside.

   Semantics

   The gates are named either explicitly or implicitly. Gate s may be identified either by name (if specified), or by a constructed identifier formed by concatenating the direction of the message and the message name (e.g., out_CardOut). The gates and the messages between gates have one purpose, namely to establish the concrete sender and receiver for every message.

   Notation

   Gate s are just points on the frame, the ends of the messages. They may have an explicit name (see Figure 14.19).

   The same gate may appear several times in the same or different diagrams.