mirror of
https://github.com/Echtzeitsysteme/gips-tests.git
synced 2024-05-20 12:00:56 +00:00
Fixes missing EOpposite in metamodel
This commit is contained in:
parent
e535de47a5
commit
83b4a397ec
|
@ -2,7 +2,7 @@ package "gipsl.generic.scheduling"
|
|||
import "platform:/resource/gips.scheduling.taskmodel/model/Taskmodel.ecore"
|
||||
|
||||
config {
|
||||
solver := GUROBI [home:="fu", license:="bar"];
|
||||
solver := GLPK [home:="fu", license:="bar"];
|
||||
timeLimit := true [value := 60.0];
|
||||
randomSeed := true [value := 0];
|
||||
presolve := true;
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
<eClassifiers xsi:type="ecore:EClass" name="Slot">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="index" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="runningtask" upperBound="-1"
|
||||
eType="#//Task"/>
|
||||
eType="#//Task" eOpposite="#//Task/runningon"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Task">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="deadline" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="runningon" upperBound="-1"
|
||||
eType="#//Slot"/>
|
||||
eType="#//Slot" eOpposite="#//Slot/runningtask"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
||||
|
|
|
@ -96,7 +96,7 @@ public class SchedulingModelGenerator {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void setUpTask3_1() {
|
||||
// Slots
|
||||
// Task says that 99 slots should be used but to make it feasible, we give the
|
||||
|
|
Loading…
Reference in a new issue