Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
36
Добавлен:
16.04.2013
Размер:
3.34 Mб
Скачать

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

'HOHWLQJ D UHSOLFDWLRQ IURP WKH OLVW RI UHSOLFDWLRQV

You can delete a replication from the list of replications.

ϖ7R GHOHWH D UHSOLFDWLRQ IURP WKH OLVW RI UHSOLFDWLRQV

1 Select ModelReplications to open the list of replications. 2 Select a replication in the list.

3 Click the Delete tool.

4 Click OK.

&RPSDULQJ DQG PHUJLQJ UHSOLFDWLRQV

You can compare and merge a replica together with its list of replicated attributes and replicated collections.

Sub-replications are also compared and merged under their parent replication and appear in the sub-replications category.

The replication represents the link with the target object and allows you to get the replica.

When merging models containing object replications, you must select to merge both replication objects and replica objects in order to merge a complete replication. Otherwise they will be merged as ordinary objects and not as replicas.

General Features Guide

 

:RUNLQJ ZLWK REMHFW UHSOLFDWLRQV

For more information on the comparison and merging feature, see chapter Comparing and Merging Models.

*HQHUDWLQJ UHSOLFDWLRQV

You can generate a replication in another type of model and preserve the link with its original object through generation. You will then be able to continue the synchronization in the generated model.

This requires first generating all original object models to the destination model type so that these new objects can be referenced as the original objects for the generated replicas.

You specify original object models to be used during generation through the

Target Models page located in the PRGHO W\SH Generation Options dialog box

Before you generate a replication, you must:

Select the Generate check box in the replication property sheet otherwise the replica will be generated as an ordinary object and not as a replica

Select generated models in the Target Model page located in the PRGHO

 

W\SH Generation Options dialog box in order to retrieve the

 

corresponding original object of each replica in the generated model

 

The Target Model page also allows you to select generated model for

 

shortcuts.

 

For more information on the Target Model page, see section Generating

 

shortcuts in chapter Managing Shortcuts.

Example of an

The following example shows the generation of a PDM from an OOM:

intermodel

 

generation with

 

replications

 

Here is the proper sequence of events for replication generation:

OOM 1 is the target model of a replica in OOM 2

 

PowerDesigner

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

OOM 1 is generated to PDM 1

OOM 2 is the referencing model that contains the replica

OOM 2 is generated to PDM 2 while preserving the link between the replica in PDM2 and the original object in PDM 1

0RYLQJ UHSOLFDWLRQV

When you move a replica, the corresponding replication object is also moved.

You can move a original object within the same model without loosing its corresponding replicas and replication objects, but if you move an original object to another model its corresponding replicas and replication objects are deleted.

You cannot move a replication object alone, it stays together with the replica and can only be moved when the replica is moved.

For more information on moving objects, see section Moving objects from package to package in chapter Managing Objects.

'HOHWLQJ D UHSOLFDWLRQ

Whenever you delete a replication object, you automatically break the link with its corresponding replica. The replica becomes a common object and is no longer a local copy of an original object. Any further synchronization is impossible.

You can delete a replication from the List of Replications, or from the Version Info page of the replica property sheet.

For more information on how to delete a replication from the list of replications, see section Deleting a replication from the list of replications.

'HOHWLQJ D UHSOLFDWLRQ IURP WKH UHSOLFD SURSHUW\ VKHHW

You can delete a replication from the Version Info page of the replica property sheet.

ϖ7R GHOHWH D UHSOLFDWLRQ IURP WKH 9HUVLRQ ,QIR SDJH RI WKH UHSOLFD SURSHUW\ VKHHW

1 Double click a replica in the Browser to open its property sheet.

General Features Guide

 

:RUNLQJ ZLWK REMHFW UHSOLFDWLRQV

2Click the Version Info tab to display the corresponding page.

3Click the Delete Replication button in the Replicated From groupbox in the lower part of the property sheet.

 

PowerDesigner

C H A P T E R 1 0

&RPSDULQJ DQG 0HUJLQJ 0RGHOV

About this chapter

This chapter describes the comparison and merge features of models in

 

PowerDesigner.

 

Contents

7RSLF

3DJH

 

 

Comparing models

360

 

Merging models

372

General Features Guide

 

&RPSDULQJ PRGHOV

&RPSDULQJ PRGHOV

PowerDesigner allows you to compare the content of two models or two resources of the same type. The Comparison feature highlights all the differences that exist between them.

You can compare the following items:

0RGHOV CDM, PDM, OOM, BPM, and FEM.

5HVRXUFHV DBMS, object languages, extended model definitions, report languages.

For more information on the comparison of resources, see section Comparing and merging resource files in chapter The Resource Editor.

You use the comparison feature to:

Follow up evolutions in models or resources manipulated by different development teams.

Evaluate the differences that exist between the models or resources before merging them.

8QGHUVWDQGLQJ WKH FRPSDULVRQ ZLQGRZ

The PowerDesigner comparison window is divided in two parts:

The REMHFW FRPSDULVRQ SDUW in the upper part of the comparison window

The SURSHUW\ FRPSDULVRQ SDUW in the lower part of the comparison window

2EMHFW FRPSDULVRQ SDUW

The object comparison part displays two selected models of the same type.

The object comparison part is divided in two panes; each pane displaying a model tree view.

The left pane displays Model 1

The right pane displays Model 2

Comparison highlights all the differences existing between models.

 

PowerDesigner

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

3URSHUW\ FRPSDULVRQ SDUW

The property comparison part displays the properties of the nodes selected in the model trees in the object comparison part. The property comparison part is divided in three columns:

Property: this column displays the name of the compared property

Model 1: this column displays the properties of the object belonging to the model on the left of the dialog box

Model 2: this column displays the properties of the object belonging to the model on the right of the dialog box

'HILQLQJ FRPSDULVRQ SDUDPHWHUV

When you start a comparison, you have to select the models you want to compare; these models must be of the same type. You can also define the types of objects and the properties you want to compare.

6HOHFWLQJ PRGHOV WR FRPSDUH

When you start the comparison process, Model 2 is by default the model whose diagram is displayed, and Model 1 must be of the same type in the Select Model to Compare dialog box.

Models to compare must be opened in the workspace to be included in the

Model 1 dropdown listbox of the Select Models to Compare dialog box.

If you click the Options button, you can open the Comparison Options dialog box and define options before you start comparison.

For more information on defining comparison options, see section Defining comparison options.

ϖ7R VHOHFW PRGHOV WR FRPSDUH

1Select ToolsCompare Models.

The Select Models to Compare dialog box appears. The model selected in the Browser tree view appears by default in the Model 2 box.

General Features Guide

 

&RPSDULQJ PRGHOV

2 Select a model from the Model 1 dropdown listbox.

3Click OK.

The Compare Models window appears.

'HILQLQJ FRPSDULVRQ RSWLRQV

If you want to focus on the comparison of selected objects, you can define comparison options.

The Comparison Options dialog box is divided into three parts:

A list of Metaclasses on the left hand side. These are the objects that can be compared in the model

A list of Attributes on the top right hand side. These are the properties associated with the objects

A list of Collections on the bottom right hand side. These are the lists of properties associated with the objects

 

PowerDesigner

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

For each metaclass you click, the list of attributes and the list of collections change accordingly.

When you open the Comparison Options dialog box, all check boxes are selected by default.

You can perform the following option selections:

<RX FDQ

Select or deselect a metaclass check box

Right-click a metaclass attribute or collection

Click the Select All or Deselect All tools

7R

Select or deselect all its attributes and collections at once

Select or deselect the attribute or collection for all metaclasses at once from the contextual menu

Select or deselect all metaclasses, attributes and collections at once

Metaclass selection and deselection

General Features Guide

When you select a metaclass check box, you do not select the metaclass itself for comparison, but only its attributes and collections. If you want to select or deselect a metaclass for comparison, you have to click a Model and/or Package metaclass to display its corresponding attributes and collections and select or deselect the collection check box that corresponds to the unwanted metaclass in the list of Collections on the bottom right handside.

In the following illustration, the Entities collection check box is deselected for comparison:

&RPSDULQJ PRGHOV

Check box status Depending on the option selections you perform, the metaclass check box can have the following statuses:

6WDWXV

&KHFN ER[

'HVFULSWLRQ

Deselected

 

No attributes or collections are selected for the

 

 

metaclass

Selected

 

All attributes and collections are selected for the

 

 

 

metaclass

Selected

 

Some attributes or/and collections are selected for

 

and grayed

 

the metaclass and others are not

 

 

 

'HIDXOW FRPSDULVRQ RSWLRQV

You can set your current selection of comparison options as default by clicking the Set as default button in the Comparison Options dialog box.

ϖ7R GHILQH FRPSDULVRQ RSWLRQV

1Select ToolsCompare models to display the Select Models to compare dialog box.

2Select a model from the Model 1 dropdown listbox.

3Click OK.

The Compare Models window appears.

4Select the Comparison Options tool.

 

PowerDesigner

Тут вы можете оставить комментарий к выбранному абзацу или сообщить об ошибке.

Оставленные комментарии видны всем.

Соседние файлы в папке PowerDesigner 9