madalina croitoru croitoru@lirmm.fr software engineering week 4 practical madalina croitoru iut...

Post on 21-Jan-2016

214 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

MADALINA CROITORUcroitoru@lirmm.fr

Software Engineeringweek 4

Practical

Madalina CroitoruIUT Montpellier

UML

• A graphical notation• Unified Modeling Language• Unified the methods of its three

principal designers: – Grady Booch– James Rumbaugh– Ivar Jacobson

MADALINA CROITORUcroitoru@lirmm.fr

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 CROITORUcroitoru@lirmm.fr

Material for practical session

• http://fr.wikipedia.org/wiki/Unified_Modeling_Language(french)

• http://edn.embarcadero.com/article/31863#use-case-diagram(english)

MADALINA CROITORUcroitoru@lirmm.fr

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 CROITORUcroitoru@lirmm.fr

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 CROITORUcroitoru@lirmm.fr

MADALINA CROITORUcroitoru@lirmm.fr

Practical exercise

• Do the Use Case Diagram for the WUMPUS based on your requirements documents!

MADALINA CROITORUcroitoru@lirmm.fr

Sequence diagram

• Describes the dynamic interaction• How operations are carried out: what

messages are sent where and when• Organized according to time

MADALINA CROITORUcroitoru@lirmm.fr

MADALINA CROITORUcroitoru@lirmm.fr

Practical exercise

• Do the Sequence Diagram for the WUMPUS based on your requirements documents and the Use Case Diagram!

MADALINA CROITORUcroitoru@lirmm.fr

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 CROITORUcroitoru@lirmm.fr

MADALINA CROITORUcroitoru@lirmm.fr

Practical exercise

• Do the Statechart Diagram for the WUMPUS based on your requirements documents, the Use Case Diagram and the Sequence Diagram!

MADALINA CROITORUcroitoru@lirmm.fr

top related