280 likes | 425 Views
exff u2e demo slideshow. David Price. 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
E N D
exff u2e demo slideshow David Price
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
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
Tool layout menus and buttons to create model elements list of UML diagrams and model elements enter/select details of UML model element here current diagram area
Open exff template(2) template file
Save template with schema name make UML file and model name the same
model name – same as UML file name Rename diagram and model(2) diagram name
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
Inserting UML Class = Entity select the class input button
Click on the diagram to place it the class is the box
Type in name of class class name field goes here
Inserting UML Association = Attribute select the association input button
Select the two classes the line is the association
Name the association notice the association ends. "product" is the target end type association name
After selecing, "product", name the end remember association and target end named the same, results in attribute in source - "product_version" type end name notice "product" is end type
Inserting UML Generalization = subtype select the generalization input button
Start at subtype, drag towards supertype the arrow is the generalization, the arrowhead is at supertype
Review and then save the list of model elements the diagram
Drop model file on u2ePos.bat (2) In this tool, files are "zargo" u2ePos.bat
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!