Download presentation
Presentation is loading. Please wait.
Published byDevin Blair Modified over 11 years ago
1
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième niveau Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 Profile Diagram A SysML example
2
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 2 Index Design a profile editor 1.Standard UML diagrams Customization of the palette 2.new diagrams diagrams extending standards totally new diagrams 3.current diagrams extended
3
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 3 Index Design a profile editor 1.Standard UML diagrams Customization of the palette 2.new diagrams diagrams extending standards totally new diagrams 3.current diagrams extended
4
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 4 Standard UML diagrams The user wants to automatically add element with stereotype –Custom palette Automatic application of the stereotype creation Specific palette entry – CEA Work –Problematic What happens if the graphical representation changes depending of the applied stereotype to an element ? Property View Model explorer
5
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 5 Index Design a profile editor 1.standard UML diagrams Customization of the palette 2.new diagrams diagrams extending standards totally new diagrams 3.current diagrams extended
6
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 6 Diagrams extending standards If diagrams contains some concepts from a standard diagram –Examples in SysML A Block Definition Diagram extends Class Diagram An Internal Block Diagram extends Composite Structure Diagram Using GMF for first generation –custom code to plug the diagram to an existing one –new menu for the creation of diagrams (new id) If the profile is applied The diagram allows new mechanism and disables others –Delete elements in the palette, disabling drag and drop…
7
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 7 New diagrams The diagrams provide new Graphical information They can be created only if the corresponding profile is applied To be maintainable: –They need to be generated (using GMF)
8
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 8 General Behavior Problems –GMF Generates an editor strictly conform to the ecore meta-model –Static profile Specific ecore corresponding to the profile. No containment relations for EObject derived from profile Solution – create virtual containment relation with new Meta- model
9
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 9 General Behavior GMF –Common case –With profile – Currently, the generators are not implemented Ecore modeleditor GMF Ecore model editor GMF with custom Generators UML Model (profile) Ecore Model Extended Script
10
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 10 Index Design a profile editor 1.standard UML diagrams Customization of the palette 2.new diagrams diagrams extending standards totally new diagrams 3.current diagrams extended
11
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 11 Current diagrams extended Diagram behavior / appearance changes when a profile is applied –The diagram is the same (no new menu) –Necessity to design extension point in diagram generation to make dynamic a diagram Example of Activity diagram
12
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 12 TODO … What is the expected result –if a profile is unapplied ? –if a stereotype is unapplied ? –…
13
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 13 Example In SysML –Parametric Diagram is a new Diagram –Activity Diagram changes when SysML profile is applied –Block Definition Diagram inherits from Class Diagram –Internal Block Diagram inherits from Composite Structure Diagram
14
Papyrus | © 2009 by Atos Origin, CEA LIST, and LIFL; made available under the EPL v1.0 14 Example - Snapshots Parametric Diagram
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.