Kermeta

Kermeta

Kermeta is a modeling and programming language for metamodel engineering.

History

The Kermeta language was initiated by F.Fleurey in 2005 within the [http://www.irisa.fr/triskell Triskell] team of IRISA (gathering researchers of the INRIA, CNRS, INSA and the University of Rennes 1).

The Kermeta language borrows concepts from languages such MOF, OCL and QVT, but also from BasicMTL, a model transformation language implemented in 2004 in the Triskell team by D.Vojtisek and F.Fondement. It is also inspired by the previous experience on MTL, the first transformation language created by Triskell, and by the Xion action language for UML.

The name Kermeta is an abbreviation for "Kernel Metamodeling" and reflects the fact that the language is conceived as a core for (meta-)modeling. The Breton language consonance of this name is an intentional reflection of the Triskell team's location in Britanny.

Kermeta, and its execution platform under Eclipse is currently available under its version 1.1.0. It is open-source, under the Eclipse Public License.

Philosophy

Kermeta is a modeling and aspect oriented programming language. Its underlying metamodel conforms to the EMOF standard. It is designed to write programs which are also models, to write transformations of models (programs that transform a model into another), to write constraints on these models, and to execute them 1). The goal of this model approach is to bring an additional level of abstraction on top of the "object" level and thus to see a given system like a set of concepts (and instances of concepts) that form an explicitly coherent whole, which one will call a model.

Kermeta thus brings:

* all the concepts of EMOF used for the specifications of a model.
* a real concept of model, more precisely of model type (J.Steel).
* a concrete syntax that fits well to model and metamodel writing.
* two paradigms: the object, and the model.
* a bridge towards the Eclipse ECore formalism

Characteristics

The main characteristics of the Kermeta language are :

* imperative: traditional structures of control
* object-oriented: multiple inheritance, late binding
* model-oriented: first-class concepts of associations and composition
* aspect-oriented: integrate a simple but powerful weaver for simple meta-modeling tasks. Arbitrary complex weaving is achieved using a dedicated composer written in Kermeta. This allows to extend existing metamodel. Especially in order to add behavior to them by weaving behavioral semantic (operational or translational).
* design-by-contract: operations support pre and post conditions, classes use invariants.
* functional: functions and first class lambda-expressions
* statically typed: genericity for the classes and the operations, function types...
* complete introspection: the complete model of the program is available during execution.

Syntax

The curious reader will find further information on the Kermeta website: http://www.kermeta.org

package fsm; require kermeta using kermeta::standard class FSM { attribute ownedState : set State [0..*] #owningFSM reference initialState : State [1..1] reference currentState : State /** * Print the FSM on the standard output */ operation printFSM() is do self.ownedState.each { s | stdio.writeln("State : " + s.name) s.outgoingTransition.each { t | stdio.writeln(" Transition : " + t.source.name + "-(" + t.input + "/" + t.output + ")->" + t.target.name) } } end } class State { attribute name : String reference owningFSM : FSM#ownedState attribute outgoingTransition : set Transition [0..*] #source reference incomingTransition : set Transition [0..*] #target operation step(c : String) : String is do // Get the valid transitions var validTransitions : Collection validTransitions := outgoingTransition.select { t | t.input.equals(c) } // Check if there is one and only one valid transition if validTransitions.empty then raise "No Transition!" end if validTransitions.size > 1 then raise "Non Determinism" end // fire the transition result := validTransitions.one.fire end } class Transition { reference source : State [1..1] #outgoingTransition reference target : State [1..1] #incomingTransition attribute output : String attribute input : String operation fire() : String is do // update FSM current state source.owningFSM.currentState := target result := output end }

Links

* Model Driven Engineering
* Domain Specific Language
* Domain Specific Modelling
* Model-Based Testing
* Metamodeling
* OCL
* Model Transformation Language
* Meta-Object Facility

External links

* [http://www.kermeta.org/ Kermeta official website]

References

* Weaving executability into object-oriented meta-languages. Pierre-Alain Muller, Franck Fleurey, and Jean-Marc Jézéquel. In S. Kent L. Briand, editor, Proceedings of MODELS/UML'2005, LNCS, Montego Bay, Jamaica, October 2005. Springer. ( [http://www.irisa.fr/triskell/publis/2005/Muller05a.pdf pdf] )

more scientific references can be found on this [http://www.kermeta.org/documents/articles/ article list] .


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Kermeta — est un langage de métamodélisation exécutable disponible en Open source. Il dispose d’un environnement de développement de métamodèles basé sur EMOF dans un environnement Eclipse. Il permet non seulement de décrire la structure des métamodèles,… …   Wikipédia en Français

  • Meta-Object Facility — Illustration of the Meta Object Facility. The Meta Object Facility (MOF) is an Object Management Group (OMG) standard for model driven engineering. The official reference page may be found at OMG s website.[1] Contents …   Wikipedia

  • Metamodeling — For other uses, see Meta model (disambiguation). Example of a Geologic map information meta model, with four types of meta objects, and their self references.[1] Metamodeling, or meta modeling in software engineering and systems engineering among …   Wikipedia

  • Meta-Object Facility — Иллюстрация MetaObject Facility Meta Object Facility (MOF) стандарт Object Management Group (OMG) для model driven engineering  методологии разработки, основанной на моделях. Официальное описание стандарта может быть найдено на сейте OMG …   Википедия

  • Platform-independent model — A platform independent model or PIM is a model of a software or business system that is independent of the specific technological platform used to implement it.The term platform independent model is most frequently used in the context of the MDA… …   Wikipedia

  • Model Transformation Language — Presentation = Ubiquitous transformations The notion of Model transformation is of central importance to Information Technology. A software system may be seen as a set of information transformations. The Unix system itself may be viewed as a… …   Wikipedia

  • List of Eclipse Modeling Framework based software — List of tools internally available from the Eclipse platform= * Connected Data Objects (CDO), a free implementation of a Distributed Shared Model on top of EMF * [http://www.eclipse.org/m2m/ M2M] : a framework for model to model transformation… …   Wikipedia

  • Genie logiciel — Génie logiciel Le génie logiciel (en anglais : software engineering) désigne l ensemble des méthodes, des techniques et des outils concourant à la production d un logiciel, au delà de la seule activité de programmation. Sommaire 1… …   Wikipédia en Français

  • Génie Logiciel — Le génie logiciel (en anglais : software engineering) désigne l ensemble des méthodes, des techniques et des outils concourant à la production d un logiciel, au delà de la seule activité de programmation. Sommaire 1 Définitions 2 Compétences …   Wikipédia en Français

  • Génie logiciel — Le génie logiciel (anglais software engineering) est une science de génie industriel qui étudie les méthodes de travail et les bonnes pratiques des ingénieurs qui développent des logiciels. Le génie logiciel s intéresse en particulier aux… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”