UML
• A graphical notation• Unified Modeling Language• Unified the methods of its three
principal designers: – Grady Booch– James Rumbaugh– Ivar Jacobson
MADALINA [email protected]
UML
• A visual language for developing software systems
• Not a programming language• The current standard is 2.1.2• Two types of diagrams:
– Structural modeling: static architecture– Behavioral modeling: interaction
• 13 (9) types of basic diagram types
MADALINA [email protected]
Material for practical session
• http://fr.wikipedia.org/wiki/Unified_Modeling_Language(french)
• http://edn.embarcadero.com/article/31863#use-case-diagram(english)
MADALINA [email protected]
Basic Terminology
• Model: abstraction of the underlying problem
• Domain: The actual world from which the problem comes
• Models: Objects that interact by sending each other Messages
• Objects have Attributes (things they know) and Behaviors/Operations (things they do)
MADALINA [email protected]
Use Case Diagrams
• Describe what a system does from the standpoint of an external observer
• Is a summary of scenarios for a given task
• A scenario is an example of what happens when someone interacts with the system
• An actor: what / who initiated the event involved in the task
MADALINA [email protected]
MADALINA [email protected]
Practical exercise
• Do the Use Case Diagram for the WUMPUS based on your requirements documents!
MADALINA [email protected]
Sequence diagram
• Describes the dynamic interaction• How operations are carried out: what
messages are sent where and when• Organized according to time
MADALINA [email protected]
MADALINA [email protected]
Practical exercise
• Do the Sequence Diagram for the WUMPUS based on your requirements documents and the Use Case Diagram!
MADALINA [email protected]
Statechart diagrams
• Objects have behaviors and states• The state of an object depends on its
current activity condition• A statechart diagram shows the
possible states of the object and the transactions that cause a change in state
MADALINA [email protected]
MADALINA [email protected]
Practical exercise
• Do the Statechart Diagram for the WUMPUS based on your requirements documents, the Use Case Diagram and the Sequence Diagram!
MADALINA [email protected]
Top Related