Kurt Stephens > UMMF > UMMF

Download:
UMMF-1.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.02   Source  

NAME ^

UMMF - UML Meta-Model Framework. UML to code generation via XMI. Implements UML 1.5 meta-model. Provides object-oriented Perl interface for processing UML meta-models and models. Imports XMI. Includes XMI, Perl and Java code generation back-ends.

SYNOPSIS ^

  bin/ummf -e Perl someumlmodel.xmi

VERSION ^

1.02

DESCRIPTION ^

See http://ummf.umleta.com/ and the "examples" directory in the distribution for more information.

What is UMMF? ^

UMMF is an open-source implementation of a UML Meta-meta-model, for the purposes of reifying UML meta-model implementations and to provide a platform for building flexible UML transformation tools.

It is written in Perl and provides an almost complete specification of the UML 1.5 meta-model in a human and machine-readable meta-meta-model description language.

The meta-meta-model description is used to generate implementations of the UML meta-model in XMI, Perl and Java and other languages. Thus, one specification of the meta-model can generate meta-model implementations in many programming languages. Once a programming language has been targeted with an exporter, code can be generated for UML meta-models and other models.

Why UMMF? ^

The goal of UMMF is processing of UML models and meta-models in a variety of implementation languages for the purpose of transforming UML models.

UMMF is self-hosting; for example: the Perl UMMF:UML::MetaModel package is generated by bootstrapping from the meta-meta-model. The meta-meta-model is specified with the same specification as the meta-model.

Models can be imported from popular UML editors via XMI 1.0 and 1.2. Meta-models and models can currently exported to XMI 1.2.

Code generated from UML models by UMMF is reflective; models can reflect on their own meta-models. For example, the code exporters generate a __classifier() method for each Class that will return the meta-model Classifier object for the model object.

Many inexpensive UML editors have inflexible or non-existant code generation tools. Generating code using XSLT on XMI is an adventure into the pain of a W3C-sponsored hell.

UMMF allows you to control how your Model will be translated into code; add your special archtectural or environmental support without relying on third-party proprietary tools!

UMMF can provide a base UML meta-model implementation for other UML tools.

What does UMMF do? ^

UMMF transforms UML models to simplify code generation; for example:

Additional transformations will be developed to support other architectural concerns.

What can UMMF do? ^

As of 2006/05/13 (v1.02), UMMF can:

What doesn't UMMF do? ^

As of 2003/09/31:

Where can I get UMMF? ^

The SourceForge site, http://sourceforge.net/projects/ummf/ or a pre-built version from CPAN. You may want to check the CVS repository for the latests changes; point your browser at http://cvs.sourceforge.net/viewcvs.py/ummf/ummf/1.1/.

More information is available at http://ummf.umleta.com/

What does UMMF need? ^

As of 2004/03/30, UMMF requires:

Bootstrapping dependencies:

How do I use UMMF? ^

How do I build (bootstrap) UMMF? ^

1. Make sure Perl is in your PATH.
2. tar -zxvf ummf-*.tar.gz
3. cd ummf-*
4. If you do not have all the prerequise modules already installed:

perl sbin/ummf_install.pl

5. make bootstrap-simple

This will build the UML meta-model classes in gen/perl and gen/java.

6. make

This will build the bin, gen/perl and doc/html directories.

What mailing lists are available for UMMF? ^

COMPATABILITY ^

UMMF 1.x is not namespace compatable with UMMF 0.x.

However, most code that used UML metamodel packages named "UMMF::UML::MetaModel::..." will now work with "UMMF::UML1_5::..".

Most other modules under "UMMF::UML::..." moved to "UMMF::Core::..." or "UMMF::Boot::...".

ENVIRONMENT VARIABLES ^

UMMF_BOOTSTRAPPING

Defined to be true during bootstrapping into gen/perl.

UMMF_RESOURCE_PATH

List of ":"-separated paths to search for UMMF resources. If you are using the compiled CPAN distribution, you must include the "data" directory from the distribution in this variable, or you can copy the "data" directory to the directory named "UMMF" where "UMMF.pm" was installed by make install.

UMMF_TEMPLATE_PATH

List of ":"-separated paths to search for UMMF Exporter templates.

EXPORT ^

None exported.

AUTHOR ^

Kurt Stephens, kurt@umleta.com 2006/05/13

SEE ALSO ^

http://ummf.umleta.com

REVISION ^

$Revision: 1.17 $

METHODS ^

resource_path

  UMMF->resource_path($type);

Returns a list of directories to search for files of type $type.

tmp_dir

  my $dir = UMMF->tmp_dir;

Returns directory to be used for temporary files.

make_tempfile

  my $filename = UMMF->make_tempfile;

Returns a temporary file.