Synchronizing modeling domains in your project

To enable the model synchronization capability in your project, add the Model Synchronization profile to your Rhapsody® model. For example, you can synchronize the SysML domain to the AUTOSAR domain in your model. In another example, you might synchronize the SysML domain to the UML domain in your model. After the model synchronization capability is enabled in your Rhapsody model, you can use a wizard to set up the capability, and then you can use it.

About this task

Software development can be modeled in various phases. For example, one phase might be modeled in one domain, such as SysML/UML, while another phase might be modeled in another domain, such as AUTOSAR. When an element is modified in one domain, the modification might affect an element in another development phase. Gaps between modeling phases can occur. With the use of model synchronization in Rhapsody , you can pair domains so that a change in one domain can be synchronized with its paired domain. For example, you can synchronize high-level requirements that are modeled in SysML/UML with SW Detailed Architecture and Design that is modeled in AUTOSAR.

Model synchronization uses a dependent pair element (known as a DependentPairSet). After elements are paired, you can see when pairs are out of synchronization (when any modifications are made after the pairing was created or updated). After you create the DependentPairSet, use the Pair Matching Wizard to guide you through the steps to pair the two domains. Source and target elements might match automatically (such as element1 in the source domain to element1 in the target domain) or you can manually pair elements when there is no automatic match (such as package1 to package_1). All pairings are saved with a date/timestamp and pairings are persistent with the model. If needed, you can rerun the Pair Matching Wizard, right-click the DependentPairSet, and select Pair Matching Wizard.

To see videos about model synchronization, go to the Rhapsody wiki.

Procedure

The following steps describe in general terms how to set up and use the model synchronization capability.

  1. To enable the capability, add the Model Synchronization profile (ModelSynchronization.sbs) to your Rhapsody model. The profile is provided with the product in <product installation path>\Share\Profiles\ModelSynchronization.
  2. In the model that contains the two domains to synchronize, create a package with a dependent pair element (known as a DependentPairSet) and define the primary rule set for the pairing. The package (for example, PairingDomain) must be outside of the packages for the two domains to be paired (for example, SysML_UML_Domain and AUTOSAR_Domain).
  3. After you create the DependentPairSet, use the Pair Matching Wizard to guide you through the steps to pair the two domains. To make changes to your DependentPairSet, from the model browser, open the Features window for the DependentPairSet to review your settings on the Dependent Pairs tab. For example, on the Dependent Pairs tab, right-click an element to see its menu of options. The menu is also available in the Pair Matching Wizard.
  4. After pairings are defined, whenever the model is open, you go to the Dependent Pairs tab of the Features window for your DependentPairSet to see if synchronization is needed. Right-click an element to see its menu of options. For example, use the Synchronize option to pair a source element that is not already paired to a target element, as shown in the following figure.
    Dependent Pairs tab on the Features window