• Aucun résultat trouvé

On Model Subtyping

N/A
N/A
Protected

Academic year: 2021

Partager "On Model Subtyping"

Copied!
2
0
0

Texte intégral

(1)

HAL Id: hal-00726399

https://hal.inria.fr/hal-00726399

Submitted on 30 Aug 2012

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

On Model Subtyping

Clément Guy

To cite this version:

Clément Guy. On Model Subtyping. 4emes journées nationales du GDR-GPL 2012, Jun 2012, Rennes, France. �hal-00726399�

(2)

Technologies de l’informatique, simulation numérique

On Model Subtyping

Clément Guy, Triskell and Cairn teams, IRISA-Inria

[email protected]

CONTEXT

•Rapid increase of the number of modeling languages

•More and more model manipulation operators

•Need for a systematic engineering

•Providing design methods and facilities (reuse of operators and structures, advanced tools…)

•Existing approaches remain disconnected from each other

Need for a unified theory

Model types for graphs

MODEL-ORIENTED TYPE SYSTEMS

•Model-oriented type systems should provide facilities such as abstraction, reuse, safety, auto-completion…

A type of a model is a set of types (MOF classes) of objects which may belong to the model, and their relations.

MODEL SUBTYPING RELATIONS

•Context of the subtyping relation

•Total subtyping: Models typed by A can be safely used everywhere models typed by B are expected

•Partial subtyping: Models typed by A can be safely used in a given context in which models typed by B are expected (e.g., a given model transformation)

A family of model-oriented type systems

CLASSIFICATION OF EXISTING APPROACHES

•Underused approaches:

•Partial subtyping (i.e., subtyping wrt. a specific context)

•Implicit declaration of a subtyping relation

•Declaration at the definition of a type

•Isomorphic subtyping (too restrictive)

•Lack of information on subtyping relations checking

Classification of existing approaches for model manipulation reuse

Total / Partial

Isomorphic/

¬isomorphic

At / After definition

Explicit / Implicit

Checking Legacy tool reuse

Varrò et al. Total Class renaming After Implicit ? No

Cuccurru et al. Total Class renaming After Explicit ? Yes

Steel et al. Total Class renaming multiplicities contraction

After Implicit At design time,

with errors at runtime

Yes

Sanchez Cuadrado et al.

Total Class renaming multiplicities contraction

After Explicit ? Yes

Sen et al. Partial Any adaptation After Explicit At design time,

with errors at runtime

Yes

De Lara et al. Total Class renaming navigation and

filtering of properties, n-to-1 bindings

After (Binding) At (Specialization)

Explicit ? No

Babau et al. Total Isomorphic After Explicit ? Yes

•How can we safely use model typed by A where a model typed by B is expected?

•Structure of the model types

•Isomorphic subtyping: Same names, multiplicities…

•Non-isomorphic subtyping: Adaptation from the subtype to its supertype

Edge Node

MT_Graph

Graph

* *

* 2

<<subtyping?>>

Or Xor

Mandatory feature

Supervisor: Jean-Marc Jézéquel

Co-advisors: Benoit Combemale & Steven Derrien

PERSPECTIVES

•Could we propose a type system providing each one of those features?

Graph algorithm

Edge

Node MT_ColoredGraph

Graph

Color

*

*

*

1 2

Ecore

Control Flow Graph

Références

Documents relatifs

We present a way how to express con- structs available in DTD in a functional data model and propose algo- rithms for performing insert, update and delete operations.. After that

Then, using a smoothing inequality for the quenched free energy and second moment estimates for the quenched partition function, combined with decoupling inequalities, we prove

This was used in an essential way for the proof of the main theorem in [20], which implies the Hodge conjecture for a hypersurface section of sufficiently large degree belonging to

The last section contains examples of distortion elements in the group of homeomorphisms of the annulus for which the growth of the diameter of a fundamental domain is “fast”..

A necessary condition for behavioural subtyping between classes is signature subtyping: objects in a subclass should at least have all the methods that objects in the superclass

One of the main goals of the re-engineering driven by models is to use the same representation model for the description of the predictive scenario by the designer as for the

which states that (when memory has type Ψ, free construc- tor variables have kinds given by ∆ and free value variables have types given by Γ) it is legal to execute the term e,

A subtype extends its supertype if its objects have extra methods in addition to those of the supertype. Abstraction functions for extension subtypes are onto, i.e., the range of