Präsentation herunterladen
Die Präsentation wird geladen. Bitte warten
Veröffentlicht von:Liesl Stolberg Geändert vor über 10 Jahren
1
Model Driven Engineering SS 10 Prof. Albert Zündorf Fachgebiet für Software Engineering Wilhelmshöher Allee 73 34121 Kassel (Raum 1339)
2
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 2 Organisatorisches m Umfang: 2 SWS teils Vorlesungen teils Übungen m Übungsbetreuung: Nina Geiger m Ort und Zeit: Vorlesung: Freitag 10:00 - 12:00 Raum 1340 (Erste Vorlesung: 16.04.10) Übung:In obigem Zeitraum m Prüfung: l Pflichtübungsaufgaben (korrigiert, bepunktet) m Folienskript / Screen Videos: l http://www.se.eecs.uni-kassel.de.
3
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 3 Inhalt m Objektmodelle / Modellebenen m Werkzeuge m Modelltransformation l Inplace l Model to Model (Triple Graph Grammars) l Model refinement l Model to Text l Text to Model
4
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 4 Objektmodelle
5
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 5
6
6
7
7
8
8
9
9
10
10
11
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 11 Hausaufgabe 1: m Erstellt ein Klassendiagramm für Study Right und eins für Ludo m Ecore und Editoren generieren m Je ein Beispielmodell für Study Right und Ludo anlegen m Schreibt ein generisches PopUp Commando das l Anzahl der verwendeten Klassen zählt l Anzahl der verwendeten Attribute zählt l Anzahl der Objekte zählt l Anzahl der Attributwerte, die vom Default abweichen
12
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 12 Hausaufgabe 2: m Klasse LoadEcoreModel m methode: loadModel(String filename) m mit DynamicEMF enthaltene Objektstruktur und Klassen anlegen m JUnit Test für l ladet damit eine StudyRight Datei l ladet damit eine Ludo Datei m im EDobs Model editieren m methode storeModel zum speichern m ausprobieren
13
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 13 Transformation rule model p1:Pawnf2:Field f3:Field f4:Field p1:PawnOpf2:FieldOp f3:FieldOp «delete » «create » next match «bound »
14
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 14 Hausaufgabe 3: Baut einen Traforule Schema Builder: m input: EPackage X m output: EPackage XTrafos m EClass C EClass COp l bound attr l match attr l modifier attr m EAttr A EAttr A:EString für Attribute Conditions m ERef R ERef R plus l modifer attr RModifier
15
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 15 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
16
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 16 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
17
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 17 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
18
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 18 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
19
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 19 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
20
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 20 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
21
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 21 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
22
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 22 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
23
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 23 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
24
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 24 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
25
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 25 Rule Matching ra:Room sa:Student aa:Assignment stud ass r2:Room s3:Student a4:Assignment stud ass r1:Room a5:Assignment ass :Step cands= match= toOne= toMany= byType=
26
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 26
27
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 27
28
Model Driven Engineering SS2010 © 2010 Albert Zündorf, University of Kassel 28
Ähnliche Präsentationen
© 2024 SlidePlayer.org Inc.
All rights reserved.