-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJD2SACM.atl
More file actions
58 lines (51 loc) · 1.12 KB
/
JD2SACM.atl
File metadata and controls
58 lines (51 loc) · 1.12 KB
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
58
module JD2SACM;
-- @path SACM=/JD_to_SACM/SACM.ecore
-- @path JD=/JD_to_SACM/JD.ecore
create OUT: SACM from IN: JD;
rule JustificationDiagram2ArgumentPackage{
from
jd : JD!JustificationDiagram (not jd.isAbstract())
to
package : SACM!ArgumentPackage (
content <- jd.name,
argumentAsset <-
jd.steps ->
collect(e | thisModule.Step2Inference(e))->flatten()
)
}
lazy rule Step2Inference{
from
step: JD!JustificationStep
to
inference: SACM!AssertedInference(
content <- step.name,
reasoning <- thisModule.Strategy2ArgumentReasoning(step.strategy),
target <- thisModule.Assertion2Assertion(step.conclusion),
source <- step.supports ->
collect(e | thisModule.Assertion2Assertion(e))->flatten()
)
}
lazy rule Strategy2ArgumentReasoning{
from
strategy: JD!Strategy
to
reasoning: SACM!ArgumentReasoning(
content <- strategy.name
)
}
lazy rule Assertion2Assertion{
from
a: JD!Assertion
to
assertion: SACM!Assertion(
content <- a.name
)
}
--lazy rule Artifact2ArtifactElement{
-- from
-- a: JD!Artifact
-- to
-- ap: SACM!ArtifactElement(
--content <- a.name
-- )
--}