Your SlideShare is downloading. ×
  • Like
Selab1 slides
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Selab1 slides

  • 515 views
Published

 

Published in Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
515
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
37
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. UML tutorial
  • 2. 2 Tutorial contents  UML basic 1. Use case diagram 2. Class diagram 3. Activity diagram 4. Sequence diagram 5. StateMachine diagram  Together 2006  Homework
  • 3. 3 UML Diagram – What is UML? The Unified Modeling Language (UML) is a standard language for Specifying Visualizing Constructing Documenting Business Modeling Communications
  • 4. 4 Different Views Users Designers Analyzers
  • 5. 5 Use case diagram Online C2C shopping • overview the usage requirements • presentations project stakeholders • "the meat" of the actual requirements Actor Actor: An actor is a person, organization, or external system that plays a role in one or more interactions with your system Use case Use case: A use case describes a sequence of actions that provide something of measurable value to an actor and is drawn as a horizontal ellipse System boundary System boundary: indicates the scope of your system. Anything within the box represents functionality that is in scope and anything outside the box is not
  • 6. 6 Class Diagram Class diagrams show the classes of the system, their interrelationships (including inheritance, aggregation, and association), and the operations and attributes of the classes. Name Attributes Operations Relations • Associations • Aggregation • Generalization
  • 7. 7 Relationships between Class Diagrams  Association -- a relationship between instances of the two classes. There is an association between two classes if an instance of one class must know about the other in order to perform its work. In a diagram, an association is a link connecting two classes.  Aggregation -- an association in which one class belongs to a collection. An aggregation has a diamond end pointing to the part containing the whole.  Generalization -- an inheritance link indicating one class is a superclass of the other. A generalization has a triangle pointing to the superclass.
  • 8. 8 Sequence Diagram  A sequence diagram is  An interaction diagram that details how operations are carried out.  What messages are sent and when.  Sequence diagrams are organized according to time Object: Class Lifeline Operations Message
  • 9. 9 Activities Diagram Activity diagrams describe the workflow behaviour of a system Start Fork Branch Merge Joint End
  • 10. 10 State Machine Diagram A State Machine diagram shows the possible states of the object and the transitions that cause a change in state. ? What is different between activities and Statemachine diagram