• Aucun résultat trouvé

Java Multi-Method Framework

N/A
N/A
Protected

Academic year: 2023

Partager "Java Multi-Method Framework"

Copied!
16
0
0

Texte intégral

(1)

HAL Id: hal-00627861

https://hal.science/hal-00627861

Submitted on 29 Sep 2011

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.

Java Multi-Method Framework

Rémi Forax, Étienne Duris, Gilles Roussel

To cite this version:

Rémi Forax, Étienne Duris, Gilles Roussel. Java Multi-Method Framework. 2000. �hal-00627861�

(2)
(3)
(4)

ValueImpl PlusImpl

String toString(Value v) String toString(Plus p) String call(Expr e)

ToStringAlgo int getValue()

Value

Expr getLeft() Expr getRight()

Plus Expr

implements

(provided) specifications

Interface

(user defined)

(provided) classes Implementation

specification algorithm

Apart

extends

Figure 1. Algorithm user-specified apart from provided interfaces and classes

(5)
(6)
(7)
(8)

Serializable Cloneable

Object

J I

K C

E D

[D

[B B

[Object

double

float

long

int

char short

byte primitive

Interface Class

T’

T

is a supertype of

Figure 2. Classes, interfaces and primitive types hierarchies

(9)

is a supertype of

B D

Object

m2 m3 m1 1 2 3 T

J

The fact that T could be the type of - the 2nd parameter of m3 or - the 3rd parameter of m1 is depicted by:

D

B C

E K I

Figure 3. An example of annotated DAG

(10)

K C B

I I D

K

E E C B

D E

I I

E D D

m3 : (D,E,E)

and

With m1 : (B,C,K) m2 : (D,I,I)

and are not comparable

m1 m2

more precise than m1

is

m3 m3

more precise than m2

is

Figure 4. Using partial orders to resolve ambiguities

(11)
(12)

T’

T

¡

1 2 3 T

E E E

K I K K C

C I C

there is a conflict case ( ) onEin first position.

¡ ¡ ¡ Object

¡I I I

¡I K K

¡ ¡ ¡ J

¡E E E

¡C I C

D¡¡ D

B¡ ¡ B

conflict (propagated) weak strong (set)

"no type" (init.) at each parameter position:

Behavioral annotations of T With two additional methods:

m4 : (K, C, K) m5 : (C, C, K)

(a) (b)

Figure 5. Behavioral annotations of the DAG

(13)

The newly added type behaves as a

and as a in third position.

in second position

I K

F

D¡ ¡ D

¡I K K

¡C I C

¡E E E

¡I K F

¡I I I

¡ ¡ ¡ Object

B¡ ¡ B

¡ ¡ ¡ J

Figure 6. Dynamically supplement behavioral DAG

(14)
(15)
(16)

Références

Documents relatifs

To test whether the vesicular pool of Atat1 promotes the acetyl- ation of -tubulin in MTs, we isolated subcellular fractions from newborn mouse cortices and then assessed

Néanmoins, la dualité des acides (Lewis et Bronsted) est un système dispendieux, dont le recyclage est une opération complexe et par conséquent difficilement applicable à

Cette mutation familiale du gène MME est une substitution d’une base guanine par une base adenine sur le chromosome 3q25.2, ce qui induit un remplacement d’un acide aminé cystéine

En ouvrant cette page avec Netscape composer, vous verrez que le cadre prévu pour accueillir le panoramique a une taille déterminée, choisie par les concepteurs des hyperpaysages

Chaque séance durera deux heures, mais dans la seconde, seule la première heure sera consacrée à l'expérimentation décrite ici ; durant la seconde, les élèves travailleront sur

A time-varying respiratory elastance model is developed with a negative elastic component (E demand ), to describe the driving pressure generated during a patient initiated

The aim of this study was to assess, in three experimental fields representative of the various topoclimatological zones of Luxembourg, the impact of timing of fungicide

Attention to a relation ontology [...] refocuses security discourses to better reflect and appreciate three forms of interconnection that are not sufficiently attended to