blob: 8d4de95e4dcb7aeb88c6ae540b2530a1f5ca223f (
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
|
/*******************************************************************************
* Copyright (c) 2012 protos software gmbh (http://www.protos.de).
* 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:
* Henrik Rentz-Reichert (initial contribution)
*
*******************************************************************************/
grammar org.eclipse.etrice.core.etmap.ETMap with org.eclipse.etrice.core.common.Base
generate eTMap "http://www.eclipse.org/etrice/core/etmap/ETMap"
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
import "http://www.eclipse.org/etrice/Room" as room
import "http://www.eclipse.org/etrice/core/etphys/ETPhys" as phys
MappingModel:
'MappingModel' name=FQN '{'
(imports+=Import)*
mappings+=Mapping*
'}'
;
Mapping:
'Mapping' logicalSys=[room::LogicalSystem|FQN] '->' physicalSys=[phys::PhysicalSystem|FQN] '{'
subsysMappings+=SubSystemMapping*
'}'
;
SubSystemMapping:
'SubSystemMapping' logicalSubSys=[room::SubSystemRef|ID] '->' node=[phys::NodeRef|ID] ('{'
threadMappings+=ThreadMapping*
'}')?
;
ThreadMapping:
'ThreadMapping' logicalThread=[room::LogicalThread|ID] '->' physicalThread=[phys::PhysicalThread|ID]
;
|