28
All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

Embed Size (px)

Citation preview

Page 1: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

All Presentation Material Copyright Eurostep Limited

®

exff u2e demo slideshow

David Price

Page 2: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

The demonstration

• This slideshow is screen shots showing the following– Creating a UML model using an exff template

for a specific UML tool• The tool used has OMG XMI as its native file format• XMI is an OMG-standardized XML format for UML

models

– Transforming the UML as XML into EXPRESS text

Page 3: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

The demo software

• The demo uses the following software– Poseidon Community Edition UML Tool (Java-based)– An exff DOS batch file to execute the

transformation– A command line WinZip utility to extract the XMI

file– Two exff XSLT stylesheets that perform the

transformation• One adds a DOCTYPE to the XMI file providing the second

XSLT stylesheet with access to the DTD• The second performs the actual transformation

– MSXSL to execute the XSLT– Notepad to view and save the EXPRESS

Page 4: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Start UML Tool

Page 5: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Tool layout

list of UML diagramsand model elements

enter/select details ofUML model element here

current diagram area

menus and buttons to create model elements

Page 6: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Open exff template

Page 7: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Open exff template(2)

template file

Page 8: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

The template built-in EXPRESS

Page 9: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Save template with schema name

make UML file and model name the same

Page 10: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Rename diagram and model

Page 11: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Rename diagram and model(2)

diagram name

model name – same as UML file name

Page 12: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Add elements following exff guidelines

• We add:– a couple of UML Class which = EXPRESS Entity– a UML Association with = EXPRESS attribute

• If the association and target end of the association have the same name, the attribute is added to the source end and the attribute name is the association name

– a UML Generalization which = EXPRESS subtype– a UML Attribute of type Class string which =

EXPRESS attribute of type STRING

Page 13: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Inserting UML Class = Entity

select the class input button

Page 14: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Click on the diagram to place it

the class is the box

Page 15: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Type in name of class

class name field goes here

Page 16: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Inserting UML Association = Attribute

select the association input button

Page 17: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Select the two classes

the line is the association

Page 18: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Name the association

type association name

notice the association ends."product" is the target end

Page 19: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

After selecing, "product", name the end

type end name

notice "product" is end type

remember association and target end named the same, results in attribute in source - "product_version"

Page 20: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Inserting UML Generalization = subtype

select the generalization input button

Page 21: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Start at subtype, drag towards supertype

the arrow is the generalization, the arrowhead is at supertype

Page 22: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Review and then save

the list of model elements

the diagram

Page 23: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Drop model file on u2ePos.bat

Page 24: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Drop model file on u2ePos.bat (2)

u2ePos.bat

In this tool,files are "zargo"

Page 25: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Watch the process execute

Page 26: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Check the EXPRESS

Page 27: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Save the EXPRESS from Notepad

Page 28: All Presentation Material Copyright Eurostep Limited ® exff u2e demo slideshow David Price

®

All Presentation Material Copyright Eurostep Limited

Conclusions

• This demo shows the creation a small subset of EXPRESS using a UML tool

• The exff goal is to support all of the structures of EXPRESS– and the constraints that are possible

• The same EXPRESS can be modified and read back into the UML tool using EEP to create the EXPRESS as XML and the exff EXPRESS-to-UML stylesheets– Graphical EXPRESS also generates EXPRESS as XML!

• We need your support to continue this development!