Software Design, Modelling, and Analysis in UML
Course type | Lecture |
---|---|
Instructors | Prof. Dr. Andreas Podelski, Bernd Westphal |
Lecture | Tuesday, 12:00–14:00, SR 106-00-007 Wednesday, 12:00–14:00, SR 106-00-007 |
Exercise | Tuesday, 12:00–14:00, SR 106-00-007 |
First session | Lecture 25.10.11 Exercise 08.11.11 |
Language of instruction | English |
Credits | 6 |
Exams | see below |
Course Catalog | Software Design, Modelling and Analysis in UML |
Quicklinks: News - Formalia - Plan - Links & Literature
News
- 2012-03-14: preliminary results of the written exam:
1.0 1.3 1.7 2.0 2.3 2.7 3.0 3.3 3.7 4.0 [88,78] (78,73] (73,68] (68,63] (63,58] (58,53] (53,48] (48,43] (43,38] (38,33] 1 0 3 0 1 1 1 2 2 1
Exam review ("Klausureinsicht") will be on Thu, March 22nd, 14:00 - 16:00 - 2012-02-15: too bad, I forgot the advertisement block:
- in Summer Semester 2012: Lecture Real-Time Systems
- if you want to conduct a Master Team Project or your Master's thesis in areas related to the lecture (formal methods, defining formal semantics, designing an own DSL with syntax and semantics, etc.) feel free to contact me.
- 2012-02-15: annotated slides of Lecture 20 have been updated to carry the new annotations from today
- 2012-02-13: typo in exercise sheet 07: Figure 1 gives the state machine of C_0, not of C_3.
- 2012-02-09: exercise sheet 07 updated (added note on substitution in bonus task)! If the name is not exercise-20120209-2.pdf, then you have the old one.
- 2012-02-01: Achtung: LSC slides from today are in the PDF of Lect. 17
- 2012-01-18: for technical questions regarding Rhapsody, please approach Evis if you get stuck
- 2012-01-18: the Rhapsody project in the lecture didn't work since we used a hollow diamond where we meant to use a filled diamond (composition) - the project available for download should have fixed this issue and sports two communicating objects.
- 2012-01-16: exercise sheet 05 updated (submission dates were wrong)! If the name is not exercise-20120116-1.pdf, then you have the old one.
- 2011-12-07: exercise sheet 03 updated! If the name is not exercise-20111207-1.pdf, you have the old one (with task 4 being about state machines).
- 2011-12-07: mmh, seems that we have lost the best part of the audio recording before the break, and don't have any recording for after the break - which is a pity given the lively discussion
- 2011-12-06: exam dates fixed - see below
- 2011-11-21: lecture continues, lecturer no longer ill
- 2011-11-14: Rhapsody access should be available - please try it out
- 2011-11-09: for access to the Rhapsody tool (for exercise sheet 2) please mail your pool account name by Friday, 2011-11-11, 13:27 [just realised: 11:11 would have been a much funnier deadline time ;-)]
- 2011-10-27: first recordings online
- 2011-10-24: student position taken
Formalia
Prerequisites for admission to the final exam, form of the final exam, and everything will be announced in the first lecture.
Admission criteria
50% of the total admission (or: good will) points in the exercises are sufficient for exam admission. (For example, perfect solutions to exercise sheets 1, 3, 5, and 7 and no solutions to 2, 4, and 6 would satisfy this requirement; so would 50% of the points in each exercise).Exercise Submission Scheme
The exercise sheets are online early in order to allow you to be aware of the tasks while following the lecture. There will be an early/regular submission scheme following a pattern to be announced.
Note: The exercises will be rated on two scales: admission points (given your knowledge before the tutorial, how sensible is your proposal; "good will rating", "upper bound") and exam points (given the additional knowledge from the comments on your proposal and the tutorial, how many points would your proposal at least be worth in a written exam; "evil rating", "lower bound").
Exam
For the students in the master program, there will be
- a written exam of length 90 min. - unless the number of candidates drops below a certain threshold
- date/time: Friday, 9.3.2012, 10:00
- room: SR 101-01-009/13
For the students in the bachelor program, there will be
- oral exams of length 30 min.
- dates/times: Friday, 24.2.2012 - please ask for time slots at the examination office
Note: The module result (grade, "Note") is completely determined by the exam.
Resources
Slides, Exercises, and Recordings
Note: the following plan is tentative in the sense that the assignment of topics to dates is subject to change depending on the flow of the lecture. The assignment of form (lecture or tutorial) to dates is fixed. Slides will be typically only provided after the lecture.
Note: the TechSmith Screen Capture Codec seems to be necessary for playback of the recordings provided on the Electure portal.
- Di, 25.10.: VL 01 "Introduction"
Motivation, Overview, Formalia.
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 26.10.: VL 02 "Semantical Model"
+ exercise sheet 1 online
Why (of all things) UML? Mathematical Foundation: Signature, Structure, System State.
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 1.11.: VL 03 "OCL"
Syntax of an (interesting fragment) of OCL and formal semantics over system states.
(Slides (without annotations), 2-up, 6-up, Recording) - Di, 8.11.: Tutorial 1
- Mi, 9.11.: VL 04 "Object Diagrams"
+ exercise sheet 2 online
A notion of consistency for OCL; relating system states and object diagrams.
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 22.11.: VL 05 "Class Diagrams I"
Mapping class diagrams to (extended) signatures.
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 23.11.: VL 06 "Type Systems and Visibility"
A simple type-system for OCL; an extension to explain the effect of visibility.
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 29.11.: Tutorial 2
- Mi, 30.11.: VL 07 "Class Diagrams II"
+ exercise sheet 3 online
Associations (syntax, system state).
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 6.12.: VL 08 "Class Diagrams III"
Associations continued (associations and OCL).
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 7.12.: VL 09 "Class Diagrams IV"
Associations completed. When is a class diagram a good class diagram?
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 13.12.: Tutorial 3
- Mi, 14.12.: VL 10 "Core State Machines I"
+ exercise sheet 4 online
Basic UML state machines (syntax, ether, signal event)
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 20.12.: VL 11 "Core State Machines II"
Basic UML state machines continued (system configuration, transformers, re-use semantics of create)
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 21.12.: VL 12 "Core State Machines III"
Basic UML state machines continued (run-to-completion: discard, dispatch, commence). Difference between reflective and constructive descriptions of behaviour.
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 10. 1.: Tutorial 4
- Mi, 11. 1.: VL 13 "Hierarchical State Machines I"
+ exercise sheet 5 online
Basic UML state machines completed (environment interaction, error), initial states, model semantics; General (hierarchical) UML state machines; Mid-Term (naja) Evaluation
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 17. 1.: VL 14 "Hierarchical State Machines II"
Hierarchical state machines continued: composite state and the remaining pseudo-states
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 18. 1.: VL 15 "Deferred Events, Passive Objects, Methods"
History and other remaining pseudo-events; Rhapsody Demo
(Slides (with annotations), 2-up, 6-up, Rhapsody-Project, Recording) - Di, 24. 1.: Tutorial 5
- Mi, 25. 1.: VL 16 "Methods, Live Sequence Charts I"
+ exercise sheet 6 online
Dynamic Reflective Descriptions, Interactions, Sequence Diagrams, LSC syntax
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 31. 1.: VL 17 "Live Sequence Charts II"
Symbolic Büchi Automaton-based semantics
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 1. 2.: VL 18 "Live Sequence Charts III, Inheritance I"
LSC semantics completed; Syntax of inheritance
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 7. 2.: Tutorial 6
- Mi, 8. 2.: VL 19 "Inheritance II, Meta-Modeling"
+ exercise sheet 7 online
Desired semantics of inheritance: Liskov Substitution Principle, outlook on domain inclusion and uplink semantics; how to read the UML standard documents
(Slides (with annotations), 2-up, 6-up, Recording) - Di, 14. 2.: VL 20 "Inheritance III"
Full elaboration of domain inclusion and uplink semantics, idea and principles
(Slides (with annotations), 2-up, 6-up, Recording) - Mi, 15. 2.: Tutorial 7 + "Wrapup + Questions"
(Slides (with annotations), 2-up, 6-up, Recording)
Links & Literature
- The Standard
- Unified Modeling Language (UML) Specification, Superstructure, version 2.1.2
- Unified Modeling Language (UML) Specification, Infrastructure, version 2.1.2
- Unified Modeling Language (UML) Specification, version 2.1.2, Documents Homepage
The official standardised definition of the language UML.
- OCL
- Object Constraint Language Specification, version 2.0
The official standardised definition of the language OCL. Our semantical model will be based on the one from this document. - A. Kleppe, J. Warmer: The Object Constraint Language, Second Edition, Addison-Wesley, 2003.
Good presentation of OCL syntax and semantics, in particular of the semantical model in which OCL terms are evaluated.
- Object Constraint Language Specification, version 2.0
- State Machines
- D. Harel, E. Gery: Executable Object Modeling with Statecharts, IEEE Computer, 30(7):31-42, 1997.
This is one of the first usable proposals for an executable view on UML diagrams, based on classes and state-machines. - W. Damm, B. Josko, A. Pnueli, A. Votintseva: A discrete-time UML semantics for concurrency and communication in safety-critical applications, SCP 55(1-3): 81-115, March 2005.
Operational UML Semantics for core state machines. - Damm, Josko, Pnueli, Votintseva: A Formal Semantics for a UML Kernel Language, IST/33522 Omega Technical Report, 2003.
Companion to the previous publication: how to compile hierarchical state machines into core state machines (including definitions of well-formedness, e.g., of transitions)
- D. Harel, E. Gery: Executable Object Modeling with Statecharts, IEEE Computer, 30(7):31-42, 1997.
- Sequence Diagrams
- J. Klose: Live Sequence Charts - A Graphical Formalism for the Specification of Communication Behavior, PhD thesis, Carl von Ossietzky Universität Oldenburg, 2003.
The verification-oriented dialect of LSCs. - D. Harel, R. Marelly: Come Let's Play - Scenario-based Programming Using LSCs and the Play-Engine, Springer-Verlag, 2003.
The animation-oriented dialect of LSCs
- J. Klose: Live Sequence Charts - A Graphical Formalism for the Specification of Communication Behavior, PhD thesis, Carl von Ossietzky Universität Oldenburg, 2003.
- Methodology
- B. P. Douglass: Doing Hard Time, Addison-Wesley, 1999.
Spiral-shaped development process complementing the previous paper. - B. P. Douglass: ROPES: Rapid Object-Oriented Process for Embedded Systems, i-Logix Inc., Whitepaper, 1999.
Whitepaper extract from the previous book. - O. Laitenberger, C. Atkinson: Generalizing Perspective-based Inspection to handle Object-Oriented Development Artifacts, In: Proc. ICSE '99, 494-503, IEEE CS-Press.
Reading techniques philosophy. - G. H. Travassos, F. Shull, J. Carver, V. R. Basili: Reading Techniques for OO Design Inspections, Technical Report CS-TR-4353, University of Maryland, 2002.
Concrete reading techniques. - Marc Lettrari, Efficient State Space Exploration of Reactive Object-Oriented Programs, Dissertation, Universität Oldenburg, 2005.
Checking existence of scenarios and configurations, test case generation.
- B. P. Douglass: Doing Hard Time, Addison-Wesley, 1999.
- Textbooks
- B. Oesterreich: Analyse und Design mit UML 2.1, 8. Auflage, Oldenbourg, 2006.
Standard introduction into UML notation. - H. Stoerrle: UML 2 fuer Studenten, Pearson Studium Verlag, 2005.
And another one.
(avaible as e-book via UB)
- B. Oesterreich: Analyse und Design mit UML 2.1, 8. Auflage, Oldenbourg, 2006.
- Miscellaneous
- B. Dobing, J. Parsons: How UML is used, Communications of the ACM, 49(5):109-114, 2006.
This survey supports the relevance of our choice of diagrams to be considered more closely in the lecture. - Uwe Kastens, Hans Kleine Büning: Modellierung - Grundlagen und formale Methoden, Zweite Auflage, Carl Hanser Verlag.
General Discussion of Modelling, not focusing on UML, but also considering plain set-theory, graphs, petri nets, and their use for modelling tasks.
- B. Dobing, J. Parsons: How UML is used, Communications of the ACM, 49(5):109-114, 2006.