-
Notifications
You must be signed in to change notification settings - Fork 3
/
tournament.ecore
42 lines (42 loc) · 2.78 KB
/
tournament.ecore
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
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="tournament" nsURI="http://mattsch.com/emf/examples/tournament"
nsPrefix="tournament">
<eClassifiers xsi:type="ecore:EClass" name="Tournament" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="groups" lowerBound="1"
upperBound="-1" eType="#//Group" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="teams" lowerBound="1" upperBound="-1"
eType="#//Team" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="matches" lowerBound="1"
upperBound="-1" eType="#//Match" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Group" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="teams" lowerBound="1" upperBound="-1"
eType="#//Team" eOpposite="#//Team/group"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Team" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="group" lowerBound="1" eType="#//Group"
eOpposite="#//Group/teams"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Match">
<eStructuralFeatures xsi:type="ecore:EReference" name="group" lowerBound="1" eType="#//Group"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="homeTeam" lowerBound="1"
eType="#//Team"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="guestTeam" lowerBound="1"
eType="#//Team"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="date" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="location" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" lowerBound="1" eType="#//MatchKind"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="MatchKind">
<eLiterals name="RoundOf32" literal="RoundOf32"/>
<eLiterals name="RoundOf16" value="1"/>
<eLiterals name="QuarterFinal" value="2"/>
<eLiterals name="SemiFinal" value="3"/>
<eLiterals name="Final" value="4"/>
</eClassifiers>
</ecore:EPackage>