Perl UMMF Tutorial?

I want to be able to create UML diagrams from source code, and I found UMMF - the UML Meta-Model Framework . However, I could not find any tutorial to start with creating a diagram with two classes and a simple relationship between them.

I am currently trying to create a simple diagram of two tables in relation to 1..n:

two tables diagram to realize with perl UMMF

The XMI output for this diagram is quite detailed because I created the diagram with Enterprise Architect - you can find this XMI file here (I could not insert text here because it is too big)

I want to use UMMF because it creates XMI files based on the hierarchy of perl objects that are associated with OMG UML , and these files can be imported into any modeling tool that implements these standards.

So the question is, how can I create this diagram using UMMF ? - It’s not necessary to be so complicated.

I need a chart:

  • two tables
  • at least one table:
    • one field as a primary key
    • one indexed field
    • one regular field (not indexed)
  • relationship between two tables

Also, if you are aware of the existence of any good Perl UMMF tutorials , please show us their links.

+4
source share
2 answers

UML :: Class :: Simple can create XMI files from source code. This could be a good starting point.

+1
source

You can use UMMF to programmatically create UML models with Perl and export them to XMI. However, UMMF only supports UML 1.5 - the standard metamodel of the graphic diagram did not exist before UML 2.0 AFAIK.

You might want to look at Graphvis: http://www.graphviz.org/

I did some basic things to create diagrams like UML with it. It has basic support for recordable charts.

Maybe someone can write an XMI-> Graphvis transformer using UMMF. :)

By the way: I am the author of UMMF.

+1
source

All Articles