Commit f8f660b6 authored by Ådne Karstad's avatar Ådne Karstad

[minor] Introduced Mandatory- & ElectiveCourses and Institutes

parent 88f444fc
<?xml version="1.0" encoding="UTF-8"?>
<spp:University
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spp="platform:/plugin/tdt4250.spp.model/model/spp.ecore"
xsi:schemaLocation="platform:/plugin/tdt4250.spp.model/model/spp.ecore spp.ecore"
name="NTNU">
<programs
name="Lektor i realfag"
duration="IntegratedMasters">
<semesters
year="1"/>
<semesters
year="2"
season="Spring"/>
<semesters
year="4"/>
</programs>
<institutes
name="Institutt for datateknologi og informatikk">
<courses
code="TDT4110"
name="Informasjonsteknologi, grunnkurs"
credits="7.5"
level="1"/>
<courses
code="TDT4250"
name="Avansert programvaredesign"
credits="7.5"/>
<courses
code="TDT4175"
name="Informasjonssystemer"
credits="7.5"/>
<courses
code="TDT4140"
name="Programvareutvikling"
credits="7.5"
season="Spring"/>
</institutes>
</spp:University>
......@@ -5,13 +5,12 @@
<eClassifiers xsi:type="ecore:EClass" name="University">
<eStructuralFeatures xsi:type="ecore:EReference" name="programs" upperBound="-1"
eType="#//Program" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="institutes" upperBound="-1"
eType="#//Institute" containment="true" eOpposite="#//Institute/university"/>
</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="semesters" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" eType="#//LevelType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="semesters" upperBound="-1"
eType="#//Semester" containment="true" eOpposite="#//Semester/program"/>
......@@ -19,17 +18,24 @@
containment="true" eOpposite="#//Specialisation/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"
defaultValueLiteral=""/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="season" eType="#//SeasonType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="program" eType="#//Program"
eOpposite="#//Program/semesters.1"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="courses" upperBound="-1"
eType="#//Course"/>
eOpposite="#//Program/semesters"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="mandatoryCourses" upperBound="-1"
eType="#//MandatoryCourses" containment="true" eOpposite="#//MandatoryCourses/semester"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="electiveCourses" upperBound="-1"
eType="#//ElectiveCourses" containment="true" eOpposite="#//ElectiveCourses/semester"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Course">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="code" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="credits" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="level" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="status" eType="#//StatusType"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="level" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="season" eType="#//SeasonType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="responsibleUnit" eType="#//Institute"
eOpposite="#//Institute/courses"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Specialisation">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
......@@ -41,8 +47,28 @@
<eLiterals name="Master" value="2"/>
<eLiterals name="IntegratedMasters" value="5"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StatusType">
<eLiterals name="MandatoryCourse"/>
<eLiterals name="ElectiveCourse" value="1"/>
<eClassifiers xsi:type="ecore:EEnum" name="SeasonType">
<eLiterals name="Fall" literal="Fall"/>
<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="#//Semester/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="#//Semester/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