blob: d89d1cdceb14b717682f1c48a92732e6e28a91b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*******************************************************************************
* Copyright (c) 2007,2008 Tata Consultancy Services and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* TCS - initial implementation for ModelMorf
* E.D.Willink - alignment with evolved specification
*******************************************************************************/
import UMLMM : 'ClassMM_IN.emof'::ClassMM;
transformation AbstractToConcrete(uml1:UMLMM, uml2:UMLMM)
{
key UMLMM::Type {name};
key UMLMM::Operation {name, class};
key UMLMM::Parameter {name, operation, type};
top relation AbstractClassToConcreteClass
{
t:UMLMM::Type;
acon, acopn:String;
domain uml1
cc:Class
{
inheritsFrom = ac:Class
{
isAbstract = true,
operation = aco:Operation
{
name = acon,
parameter = acop:Parameter
{
name = acopn,
type = t
}
}
}
};
enforce domain uml2
cc:Class
{
operation = cco:Operation
{
name = acon,
parameter = ccop:Parameter
{
name = acopn,
type = t
}
}
};
}
}
|