Upload
jayce-hereford
View
222
Download
1
Tags:
Embed Size (px)
Citation preview
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
®
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
®
All Presentation Material Copyright Eurostep Limited
Start UML Tool
®
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
®
All Presentation Material Copyright Eurostep Limited
Open exff template
®
All Presentation Material Copyright Eurostep Limited
Open exff template(2)
template file
®
All Presentation Material Copyright Eurostep Limited
The template built-in EXPRESS
®
All Presentation Material Copyright Eurostep Limited
Save template with schema name
make UML file and model name the same
®
All Presentation Material Copyright Eurostep Limited
Rename diagram and model
®
All Presentation Material Copyright Eurostep Limited
Rename diagram and model(2)
diagram name
model name – same as UML file name
®
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
®
All Presentation Material Copyright Eurostep Limited
Inserting UML Class = Entity
select the class input button
®
All Presentation Material Copyright Eurostep Limited
Click on the diagram to place it
the class is the box
®
All Presentation Material Copyright Eurostep Limited
Type in name of class
class name field goes here
®
All Presentation Material Copyright Eurostep Limited
Inserting UML Association = Attribute
select the association input button
®
All Presentation Material Copyright Eurostep Limited
Select the two classes
the line is the association
®
All Presentation Material Copyright Eurostep Limited
Name the association
type association name
notice the association ends."product" is the target end
®
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"
®
All Presentation Material Copyright Eurostep Limited
Inserting UML Generalization = subtype
select the generalization input button
®
All Presentation Material Copyright Eurostep Limited
Start at subtype, drag towards supertype
the arrow is the generalization, the arrowhead is at supertype
®
All Presentation Material Copyright Eurostep Limited
Review and then save
the list of model elements
the diagram
®
All Presentation Material Copyright Eurostep Limited
Drop model file on u2ePos.bat
®
All Presentation Material Copyright Eurostep Limited
Drop model file on u2ePos.bat (2)
u2ePos.bat
In this tool,files are "zargo"
®
All Presentation Material Copyright Eurostep Limited
Watch the process execute
®
All Presentation Material Copyright Eurostep Limited
Check the EXPRESS
®
All Presentation Material Copyright Eurostep Limited
Save the EXPRESS from Notepad
®
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!