MOFLON Examples

To give you some impressions what can be done with MOFLON, we provide some examples in this section:

MOFLON UML 2.0 MOF 2.0 STaX State Diagram Editor

The MOFLON specification in MOFLON

With an earlier version of the MOFLON editor a MOF project containing the MOF 2.0 metamodel has been created. From this specification, Java code describing the metamodel for MOFLON can be generated by the MOFLON compiler, so the MOFLON tool set can bootstrap itself. For the code generated in this manner an adaption layer for the Fujaba tool suite has been implemented. This makes MOFLON available as a plugin for Fujaba, so within the MOFLON editor you can use features of Fujaba like story driven modeling on MOF compliant meta models.

The following downloads are available for this example:

The UML 2.0 specification

The Unified Modeling language, version 2.0, has been specified using MOF and can therefore be described by a MOFLON specification. This includes the specification of the UML 2.0 superstructure as well as the one of the UML 2.0 infrastructure. With MOFLON you can browse the specification. Generation of JMI compliant Java Code obtaining the entire UML 2.0 semantics is currently not possible, due to inconsistencies in the metamodel. A revised version of the UML 2.0 metamodel without inconsistencies could be used for codegeneration. This example has been created using the official OMG Rose model for UML 2.0 and imported using our RoseXMI plugin.

The following downloads are available for this example:

The MOF 2.0 specification

The Meta Object Facility, version 2.0, has been specified using MOF itself and can therefore be described by a MOFLON specification. This includes the specification of the UML 2.0 Infrastructure, Essential MOF (EMOF) and Complete MOF (CMOF). Code generation from this document is not yet possible, because it contains the outdated <<combine>> dependency. This example has been directly created from the official OMG XMI file for MOF 2.0 and imported using our RoseXMI plugin.

The following downloads are available for this example:

STaX - A Graphical State Diagram Editor

STaX is a graphical editor for UML state diagrams specified in MOF, which has been developed in one of our students' projects. The code generated from the STaX specification has been enhanced by an adaption layer that enables it to run as a plugin in Eclipse using the Graphical Editing Framework (GEF).
You will find a detailed tutorial that explains the first steps in MOFLON by example (modeling the STaX editor) in the tutorial section.