Animating black-box sequence diagrams
IBM® Engineering Systems Design Rhapsody® includes extended animation for sequence diagrams. Animated instance lines (classifier roles) can represent run-time objects and their internal structure (their parts) as opposed to a single, run-time object (as in previous versions). This enables you to validate higher-level sequence diagrams specified before the elaboration of the internal structure of the classes.
About this task
You can map any instance line on a sequence diagram to one of the following items:
- A single object
- An object and its parts
- An object and all the objects derived from its reference sequence diagram
In addition, you can specify that during animation, messages sent from the instance line to itself are not displayed.
Two properties support this functionality:
Animation::ClassifierRole::DisplayMessagesToSelf
determines whether messages-to-self are displayed during animation. The possible values are as follows:None
which means do not display any messages-to-self.All
which means to display all messages-to-self.
Animation::ClassifierRole::MappingPolicy
specifies how to map instance lines during animation. The possible values are as follows:Smart
where the product decides the mapping policy.If the instance line has a reference sequence diagram, the mapping will be equivalent to
ObjectAndDerivedFromRefSD
; otherwise, the mapping is equivalent toObjectAndItsParts
(which, for an object without any parts, is the same asSingleObject
).ObjectAndItsParts
where the instance line is mapped to an object and all its parts (recursively), excluding parts that are explicitly shown in the diagram.SingleObject
where the instance line is mapped to a single, run-time object.ObjectAndDerivedFromRefSD
where the instance line is mapped to an object by its role name (if it exists) and to all derived objects from the reference sequence diagrams (according to their mapping rules).