UML tutorials Guide PowerPoint PPT Presentation

presentation player overlay
1 / 38
About This Presentation
Transcript and Presenter's Notes

Title: UML tutorials Guide


1
UML tutorials Guide
  • Update 2009/03/18

2
???UML?
  • UML?Unified Modeling Language???,????????????
  • ?????????????????????????????
  • ????,UML???????????????,???????????????????(Visua
    lization)????????????(Specification)???(Constructi
    on)???????(Documentation)?????????????

3
UML(Unified Modeling Language)
  • ??????????????????????,????????????????,?????????
    ?????????????????????(Model),???????????????(Mode
    ling)????????????????,???????????????????????????
    ????????????,???????????

4
UML????????????????
  • 1.    ?????(User view) ??????????????????,???????
    ????,???????????????????????????????(Use Case
    Diagram)?
  • 2.    ????(Structural view) ?????????????????????
    ????(Clasa Diagram) ?????
  • 3.    ????(Behavior view) ???????(??)????,???????
    ??????????????????(Sequence Diagram)????(Collabora
    tion Diagram)????(State Diagram)????(Activity
    Diagram)?

5
UML????????????????
  • 4.    ????(Implementation view)
    ????????????,???????????????????????(Component
    Diagram)?
  • 5.    ????(Environment view) ????????????,??????
    ??????????????????(Deployment Diagram)?

6
UML??
  • UML 2.0 ??????13 ???(diagrams)??????,??????????
  • ?????(Structure diagrams) ??????????
  • ??? (Class Diagram)
  • ???(Component diagram)
  • ?????(Composite structure diagram)
  • ???(Deployment diagram)
  • ???(Object diagram)
  • ??(Package diagram)
  • ?????(Behavior diagrams) ????????????
  • ???(Activity diagram)
  • ???? (State Machine diagram)
  • ????? (Use Case Diagram)
  • ?????(Interaction diagrams), ??????????,??????????
    ??
  • ???(Communication diagram
  • ?????(Interaction overview diagram) (UML 2.0)
  • ???(Sequence diagram)
  • ???(UML Timing Diagram) (UML 2.0)
  • (???? wiki)

7
UML??
8
USE CASE DIAGRAM
  • (?????)

9
Use Case Diagram(?????)
  • ???Use Case Diagram??????,?????????(use
    goal)?????(system interaction)???????????????????(
    Actor)?????(Use Case)????

10
Use Case Diagram - Symbol
  • ????(Use Case)
  • ???
  • ??????????
  • ??(Actor)
  • ???????????????
  • ???????

??????
  • ??(System)
  • ??????????????????
  • ???(Association)
  • ?????????????

10
11
Use Case Diagram Example
  • ??????

????
11
12
Detailed use case
Use case name ????
Participating actors Initiated by ??Communicates with ??
Flow of events ???????. ?????????(50??), ?????(2000??), ????(????). ???????????,?????, ????????. ????, ????????.
Exceptions 3.1 ???????????, ???????????.
Entry condition ?????????.
Exit conditions ?????????????????.
12
13
Detailed use cases diagram
Association
Object Flow (Dependency)
??
ltltinitiategtgt
????
ltltincludegtgt
ltltincludegtgt
ltltincludegtgt
ltltincludegtgt
????
????
????
????
????
????
??
13
14
CLASS DIAGRAM
  • (???)

15
Class Diagram(???)
  • Class diagram ?????????????,?????????????

16
Class Diagram - Symbols
????
??
??
16
17
Type, Visibility and Signature
  • Type (Attributes)
  • Name string
  • maxNumPlayers int
  • Start date
  • Visibility (Attributes and Operations)
  • Private -
  • protected
  • public
  • Signature (Operations)
  • acceptPlayer(Player) void
  • getMaxNumPlayers(void) int

18
Identifying Entity Object (found out the class
name)
Use case name ????
Participating actors Initiated by ??
Flow of events ???????. ?????????(50??), ?????(2000??), ????(????). ???????????,?????, ????????. ????, ???????.
Exceptions 3.1 ???????????, ???????????.
Entry condition ?????????.
Exit conditions ?????????????????.
??


??


??


18
19
Identifying Entity Object (found out the
attribute)
Use case name ????
Participating actors Initiated by ??
Flow of events ???????. ?????????(50??), ?????(2000??), ????(????). ???????????,?????, ????????. ????, ???????.
Exceptions 3.1 ???????????, ???????????.
Entry condition ?????????.
Exit conditions ?????????????????.
??
?? ???? ????

19
20
SEQUENCE DIAGRAM (???)
  • (???)

21
Sequence Diagram (???)
  • ?UML??,Scenario?????use case???????????,??????use
    case????????,??????????????Scenario?????Sequence
    Diagram?

22
Sequence Diagram
  • Describe the dynamic behavior between actors and
    the system and between objects of the
    system(??????????,???????????????????????)
  • Useful to find missing objects.
  • (?????????????????)
  • Complement the class diagrams (which represent
    structure).
  • (?class diagram??????????)
  • ??
  • ??????(SRS)
  • ????(Use Case)
  • ???????(SDD)
  • ???(Activity Diagram)

23
Sequence Diagram Symbols
  • Object(??)
  • ??????????,????????
  • ?????Instance

Actor(???)
Lifeline (????)
Message(??)
Activation (????)
??(????)
????(????)
????
24
Sequence Diagram Object Type
  • Boundary Object(????)
  • ?????????

ltltboundarygtgt ????????
  • Entity Object(????)
  • ??????

ltltentitygtgt ??
  • Control Object(????)
  • ???????????

ltltcontrolgtgt ????????
25
Sequence Diagram Object Type
  • ??
  • ?????????
  • ???????
  • ????
  • ???????????
  • ????????????????
  • ?????????????
  • ????????????????????????
  • ????????????

26
(No Transcript)
27
HARDWARE OR SOFTWARE MAPPING-DEPLOYMENT DIAGRAM
  • (UML?????)

28
Hardware or Software Mapping
  • H/S Mapping?????
  • ??????????????
  • ??????
  • ??????????????
  • ???????????????
  • ?Object model????????
  • Mapping object onto Reality
  • CPU, ????, I/O??,????,????
  • Mapping Associations onto Reality
  • ??,???

29
Drawing Hardware/Software Mappings in UML
  • Deployment Diagram (UML?????)
  • ???????????????
  • ????Subsystem Decomposition?H/S Mapping???????????

Node ???????
Component ????????????
Dependency ?????
30
TeachingSite Hardware/Software Mapping
31
TeachingSite Hardware/Software Mapping
32
Advance Design
  • 4-1 Composite and Inheritance
  • 4-3 Mapping Models to Code

33
HW
34
Input
Use case name ????
Participating actors Initiated by ??
Flow of events ???????. ?????????(50??), ?????(2000??), ????(????). ???????????,?????, ????????. ????, ???????.
Exceptions 3.1 ???????????, ???????????.
Entry condition ?????????.
Exit conditions ?????????????????.
34
35
Sequence diagram (??????!)
  1. ???????.
  2. ?????????(50??), ?????(2000??), ????(????).
  3. ???????????,?????, ????????.
  4. ????, ???????.

????Form
??

????()
???? Control
new
??(??,??, ????)
??(..)
new
??
35
36
Class diagram (???!)
??
?? ???? ????

????Control

??()
????Form

????() ??(.)
CreateAssignmentControl

check()
Assignment
name context Due date

CreateAssignmentForm

createAssignment() set(.)
36
37
Example Subsystem
????
????
??
??
?????
??
????
???
??
????
??
??
????
38
System architecture
Client
Presentation
Server
Business Logic
????????
????
????
Repository model
Data
Repository
????????
???
????
Write a Comment
User Comments (0)
About PowerShow.com