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

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

The Comparison Options dialog box appears. By default all check boxes are selected.

2SHQLQJ WKH &RPSDULVRQ 2SWLRQV GLDORJ ER[ EHIRUH WKH FRPSDULVRQ

You can also define comparison options before comparing models in the Compare Models window by clicking the Options button in the Select Models to Compare dialog box.

5Deselect the metaclasses, attributes and collections you do not want to compare in the different lists.

6Click OK.

The Compare Models window displays the differences between models according to the comparison options you have defined.

When you merge two models, differences are ignored for metaclasses, attributes and collections not selected for comparison. No changes will be applied to the model to be merged for a metaclass, attribute or collection where the selection checkmark has been cleared in the comparison options lists.

General Features Guide

 

&RPSDULQJ PRGHOV

'HILQLQJ D FRPSDULVRQ ILOWHU

You can define a filter on the comparison display if you want to show:

All objects

All changes

Only created objects

Only deleted objects

Only modified objects

Only moved objects

Only identical objects

ϖ7R GHILQH D ILOWHU RQ WKH FRPSDULVRQ GLVSOD\

1 Select ToolsCompare Models. The Select Models dialog box.

2 Select a model from the Model 1 dropdown listbox. 3 Click OK.

The Compare Models window appears.

4 Click the arrow next to the Change Filter tool.

 

PowerDesigner

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

The Filter dropdown listbox appears.

5Select a filter in the dropdown listbox.

The filter is automatically applied to the compared models.

$QDO\]LQJ REMHFW GLIIHUHQFHV LQ WKH REMHFW FRPSDULVRQ SDUW

Four types of differences between the models can be detected during a comparison:

&UHDWLRQ: When an object is created in one of the models, it is displayed in blue.

'HOHWLRQ: When an object is deleted from a model, it appears as a ghost object in the model tree.

0RGLILFDWLRQ: When the properties of an object are different between models, a red exclamation mark appears in the bottom right corner of the object node.

General Features Guide

 

&RPSDULQJ PRGHOV

Comparison symbols

0RYH: When the object has been moved to a different position, for example, a column moved in the list of columns. In this case a green triangle appears in the bottom right corner of the object indicates that there has been a move. The green triangle is displayed both on the ghost object indicating the original position of the item and on the object in its new location.

6\PERO

'HVFULSWLRQ

 

Ghost object which does not exist in one of the models

 

Shortcut exists in model

 

 

Sub-objects are different

 

(yellow)

 

 

Object exists in both models with different properties

 

(red)

 

 

Object was moved and modified. This symbol indicates the initial

 

 

location of the object in the model.

(green)

This symbol always appears besides a ghost object.

 

Object was moved and modified. This symbol indicates the new

 

 

location of the object in the model.

(red)

 

 

Object was moved

 

(green)

 

 

 

2SHQLQJ WKH SURSHUW\ VKHHW RI DQ REMHFW LQ UHDG RQO\ PRGH

You can open the property sheet of an object in read-only mode by double-clicking the object node from the object comparison part. You can also right-click the object node and select Properties from the contextual menu .

You can open several property sheets in order to compare the properties of different objects. However, all property sheets will be closed when you close the Comparison window.

PowerDesigner

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

$QDO\]LQJ REMHFW GLIIHUHQFHV LQ WKH SURSHUWLHV FRPSDULVRQ SDUW

Differences between objects are displayed with more details in the properties comparison part of the comparison window.

 

 

 

0RGHO

'LIIHUHQFH

3URSHUW\ QDPH

0RGHO SURSHUWLHV

SURSHUWLHV

W\SH

FROXPQ

FROXPQ

FROXPQ

Object

No sign

Object properties

No properties

creation

 

displayed

displayed

Object

No sign

No properties

Object properties

deletion

 

displayed

displayed

Object

Diverging

Divergent object

Divergent object

modification

property type

properties displayed

properties

 

highlighted by an

 

displayed

 

exclamation point

 

 

Object move

No sign

Identical object

Identical object

 

 

properties displayed

properties

 

 

 

displayed

Object

Diverging

Object properties

Object properties

moved and

property type

displayed

displayed

modified

highlighted by an

 

 

 

exclamation point

 

 

 

 

 

 

1DYLJDWLQJ DPRQJ GLIIHUHQFHV LQ WKH REMHFW FRPSDULVRQ SDUW

You can navigate among the differences that appear in the object comparison part using the following tools from the comparison toolbar:

7RRO 'HVFULSWLRQ

Goes to the first difference in the tree view

Goes to the previous difference in the tree view

Goes to the next difference in the tree view

Goes to the last difference in the tree view

General Features Guide

 

&RPSDULQJ PRGHOV

+RW NH\V IRU H[SDQGLQJ DQG FROODSVLQJ DOO QRGHV DW RQFH

To expand all nodes at once, you can press the numpad star (*).

To collapse all nodes at once, you can press the numpad minus sign (-).

3UHYLHZLQJ DQG SULQWLQJ FRPSDULVRQ UHVXOW

You can preview and print the comparison result from the Compare Models dialog box.

The comparison result depends on the filter options you have previously defined.

The following convention is applied to the actions performed during the comparison process:

6\PERO 6WDQGV IRU«

[=]Identical

[+-]

Added

[-+]

Deleted

 

 

[#]Modified

[!]Child modified

<-

Moved from

->

Moved to

[’?]

Conflict

[#<-]

Modified and moved from

[->#]

Modified and moved to

 

 

ϖ7R SUHYLHZ DQG SULQW FRPSDULVRQ UHVXOW

1Click the Comparison Preview tool in the Compare Models dialog box.

The Comparison Preview window appears. It displays the result of the comparison.

2Click the Print tool.

 

PowerDesigner

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

6DYLQJ WKH FRPSDULVRQ UHVXOW

You can save the comparison result in a .TXT file. To do so, click the Save tool in the Compare preview window.

General Features Guide

 

0HUJLQJ PRGHOV

0HUJLQJ PRGHOV

PowerDesigner allows you to merge the content of two models or two resources of the same type after comparison. The Merge feature allows you to unify them.

You can merge the following items:

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

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

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

Merge is performed from left to right; the model on the left pane is used as a reference for the model to be merged according to the merge actions you define.

Both Comparison and Merge features use the same interface made of the object comparison part and the property comparison part.

8QGHUVWDQGLQJ WKH PHUJH ZLQGRZ

The PowerDesigner merge window is divided in two parts:

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

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

2EMHFW FRPSDULVRQ SDUW

The object comparison part displays the two models you want to merge.

These models must be of the same type.

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

The left pane displays the source model. This model is the reference model for the merge.

The right pane displays the model to be merged. Differences and merge actions appear in this model after comparing it with the model on the left pane.

 

PowerDesigner

&KDSWHU &RPSDULQJ DQG 0HUJLQJ 0RGHOV

Merge is performed from left to right, the model to be merged is compared to the model on the left pane, differences are highlighted in this model, and merge actions are applied in the model on the right pane.

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.

From: this column displays the properties of the object belonging to the model on the left pane. These properties are used as reference for the merge.

To: this column displays the properties of the object belonging to the model on the right pane. These properties are likely to be modified if the reference properties are different.

'HILQLQJ PHUJH SDUDPHWHUV

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

6HOHFWLQJ PRGHOV WR PHUJH

When you start the merge process, the model to be merged by default is the model that contains the active diagram. You can modify this default model, but you have to choose among models of the same type.

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

From dropdown listbox of the Select Models to Merge dialog box.

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

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

ϖ7R VHOHFW PRGHOV WR PHUJH

1Select ToolsMerge Models.

The Select Models to Merge dialog box appears. The current model appears by default in the To box.

General Features Guide

 

0HUJLQJ PRGHOV

'%06 DQG /DQJXDJH

If you want to merge physical data models, you have to select two models with the same DBMS. If you want to merge object oriented models, you have to select two models with the same language.

2 Select a model from the From dropdown listbox.

3Click OK.

The Merge Models window appears.

'HILQLQJ PHUJH RSWLRQV

After selecting the models you want to merge, the Merge Models dialog box appears to display a first comparison. You can fine tune the merge process by defining comparison options between the models.

The Comparison Options dialog box displays a list of metaclasses, a list of attributes and a list of collections likely to exist in the model. For each metaclass, you can select or clear attributes or collections.

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

'HILQLQJ D PHUJH ILOWHU

You can define a filter on the merge display if you want to show:

All objects

All changes

Only created objects

Only deleted objects

Only modified objects

Only moved objects

 

PowerDesigner

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

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

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