Commit 9f3e74f2 authored by Ådne Karstad's avatar Ådne Karstad

[minor] Working example of Lektor i realfag

parent 7b076bd5
......@@ -9,13 +9,8 @@
<programs
name="Lektor i realfag"
duration="IntegratedMasters">
<semesters
year="1"/>
<semesters
year="2"
season="Spring"/>
<semesters
year="4"/>
<mandatoryCourses
courses="//@institutes.0/@courses.0 //@institutes.0/@courses.3"/>
</programs>
<institutes
name="Institutt for datateknologi og informatikk">
......
......@@ -9,6 +9,13 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="institutes" upperBound="-1"
eType="#//Institute" containment="true" eOpposite="#//Institute/university"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Institute">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course" containment="true" eOpposite="#//Course/responsibleUnit"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="university" eType="#//University"
eOpposite="#//University/institutes"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Program">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" eType="#//LevelType"/>
......@@ -17,9 +24,9 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="specialisation" eType="#//Specialisation"
containment="true" eOpposite="#//Specialisation/program"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="mandatoryCourses" upperBound="-1"
eType="#//MandatoryCourses" containment="true" eOpposite="#//MandatoryCourses/semester"/>
eType="#//MandatoryCourses" containment="true" eOpposite="#//MandatoryCourses/program"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="electiveCourses" upperBound="-1"
eType="#//ElectiveCourses" containment="true" eOpposite="#//ElectiveCourses/semester"/>
eType="#//ElectiveCourses" containment="true" eOpposite="#//ElectiveCourses/program"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Semester">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="year" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
......@@ -27,7 +34,7 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="season" eType="#//SeasonType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="program" eType="#//Program"
eOpposite="#//Program/semesters"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
<eStructuralFeatures xsi:type="ecore:EReference" name="selectedCourses" upperBound="-1"
eType="#//Course"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Course">
......@@ -44,6 +51,18 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="program" eType="#//Program"
eOpposite="#//Program/specialisation"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="MandatoryCourses">
<eStructuralFeatures xsi:type="ecore:EReference" name="program" eType="#//Program"
eOpposite="#//Program/mandatoryCourses"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ElectiveCourses">
<eStructuralFeatures xsi:type="ecore:EReference" name="program" eType="#//Program"
eOpposite="#//Program/electiveCourses"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="LevelType">
<eLiterals name="Bachelor" value="3"/>
<eLiterals name="Master" value="2"/>
......@@ -54,23 +73,4 @@
<eLiterals name="Spring" value="1"/>
<eLiterals name="Both" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Institute">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course" containment="true" eOpposite="#//Course/responsibleUnit"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="university" eType="#//University"
eOpposite="#//University/institutes"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ElectiveCourses">
<eStructuralFeatures xsi:type="ecore:EReference" name="semester" eType="#//Semester"
eOpposite="#//Program/electiveCourses"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="MandatoryCourses">
<eStructuralFeatures xsi:type="ecore:EReference" name="semester" eType="#//Semester"
eOpposite="#//Program/mandatoryCourses"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course"/>
</eClassifiers>
</ecore:EPackage>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment