UML?? - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

UML??

Description:

Title: UML Author: User Last modified by: User Created Date: 1/6/2006 11:15:31 AM Document presentation format: Company: jjj Other titles – PowerPoint PPT presentation

Number of Views:121
Avg rating:3.0/5.0
Slides: 36
Provided by: aasirSg10
Category:
Tags: uml | jude

less

Transcript and Presenter's Notes

Title: UML??


1
UML??
  • 1-1UML??
  • 1-2?????
  • 1-2-1???????
  • 1-3???Class Diagrams
  • 1-4???Interation Diagrams
  • 1-5???State Diagrams
  • 1-6???Activity Diagrams
  • 1-7??
  • 1-8UML??
  • 1-8-1??JUDE

2
1-1UML??
  • UML?Unified Modeling Language??????,??????????????
    ??(OOAD),??????Grady Booch?Ivar Jacobson?James
    Rumbaugh,????UML????????????,?????UML????OMG???
  • Jacobson?1991??????????????????????????(Use
    Case)????
  • Rumbaugh?1993????????????(OMT)???
  • Booch?1993?Rational?????????????????
  • ?1995??OOPSLA???,Booch?Rumbaugh?Jacobson??????????
    ??????????0.8??1997? Rational???OMG??????UML1.0???
    2001????????UML??????2.0??

3
  • ???????UML????????,???????,???????????????????????
    ?UML???????????????UML????????????????,???????????
    ???????,??????????????????
  • ???????UML????????????????,????????????,?????,????
    ??????

4
1-2?????
  • Jacobson?1994??????????????????????????????????,??
    ??????????????????????????????????????????????????
    ?
  • ??????????????????????????,???????????????????????
    ?????,?????????,??????????????????????????????????
    ????????,??????????????,???????,??????????

5
  • ?????,???????????????,??????
  • ???????UseCase,???????????????

6
  • ??????????????????????????,???????,??????????????
  • ????(include)???,??????????????????????,??????????
    ??????

7
(No Transcript)
8
  • ??????????????,???????????????????????????????????
    ,????????????
  • ????????????????????(include)????????,?????????(
    include)???????????,?????????????????????
  • ????????????????,????????????????????????
  • ????????????????????,?????????????????????

9
1-2-1???????
  • ????????????????????,?UseCase3????????UseCase3-1?U
    seCase3-2???????????????????????????????????

10
1-3???Class Diagrams
  • ????????????????????????????,?????????????????????
    ???????,????????????????
  • ?????????,?????????????????????????????????????,??
    ?????????????????????????????
  • ????????(object oriented programming??OOP)?????,??
    ???Objects???class???inheritance???polymorphism???
    message?
  • ????????????(??????)??????public????private????pro
    tected,???private????????????,???protected????????
    ???(???)?????????????,???public??????????
  • ????????????(subclass)???????????(extended
    class)?????????????(super class)?

11
1-3-1??
  • ????????,???????????
  • ????????????????????????????????????????????????
    ?????????????????Lotto???
  • ?????????(???)?Play_lotto??????????????

12
  • Lotto?????????private(??-)??,?????int?????MAX???in
    t?????current_value?MAX???????????,?current_value?
    ??????????Lotto()???Lotto??????constructor?Lotto??
    ??????????,???play()??,?????public(??),??????int
    set_current_value()??,?????public(??),??????get_
    current_value()??,?????public,????int??toString()
    ??,?????public,??????String?

13
  • ??????????????,???????????????????????????,???????
    ????package????????????public??????????????????pri
    vate???,??????????????

14
1-3-2??
  • ??????????????????????????????????,??A????B,??A???
    ???????B??????????????,?A?????????B????????????,?A
    ??????B????????????,A??????B????????
  • ????????????????????????????aggregation???????????
    ????????????????????????????????????,?????????????
    ????????????,??????????????
  • ??UML?????Play_lotto?????Lotto??,??????????(??)???
    ?Play_lotto?????Lotto???Play_lotto?????(main()????
    )???Lotto???????,?????????

15
(No Transcript)
16
  • ???????,???????????????????????,????????????UML???
    ???????????????699?????????????????6????99??????
    ????0..5????????????????

17
  • ???????,?????????dependency???aggregation???inheri
    tance???UML?????,????????????

18
  • ??class0?????class1??,????????????????class0??clas
    s1???
  • ??class2?????class3??,?????????????general??????cl
    ass3???class2???????
  • ????Animal??,??Dog?????,??Animal????Dog????????Dog
    ???????????????????????????????????.??,??????????
    ???????????

19
  • ??class4??has a??class5???Class4????class5??,???
    ?class5?class4????????????????????,???????????????
    ????????????????????Class4?Class5?????
  • ??class0??class1????,???class0??class1????????????
    ????????????????,?????????????????????????????????
    ?,??????????????????????????Class0??class5?????

20
1-3-3??
  • ???????????????????,?????????????????????????????,
    ?????????implement??,?????????????????????????????
    ?????????
  • ????interface????????????????????implements???????
    ???????????????,??????????????
  • ??????????????????public?
  • Dog???????Animal,??????PetOutput,Test??????main(),
    ????Dog??,??UML???????????PetOutput???????,????ltlti
    nterfacegtgt?????????????????sound(),????Dog????,???
    ????????????????????,??????????PetOutput,?????????
    ?????

21
(No Transcript)
22
1-3-4????
  • Java??????????????????????????,???????????,???????
    ?????????abstract?????????,?????abstract?????class
    ??????
  • ?UML?????????????Animal????,??????????????Dog????

23
1-3-5??
  • ?Java???,????????????Java????????Java?????????????
    Java?????????????Java??????Java???????????????????
    Java???????,??????,???????,??????????,????????????
    ???????????Java???????,???????,?????,?????????????
    ????????java.lang?????????
  • import java.lang.
  • ??package1?????????,???Class0???Class2???Class1???

24
  • ????class0?,public?protected?default?private??????
    ????????package1?class1???????class0????class2???
    ?class0???????????class3????class0??????class4??
    ???
  • ??????????????,????????????,????z?
  • ??UML??????

25
1-4???Sequence Diagrams
  • ??????????????,?????????,?????????????????????????
    ,?????????,???????????????????????????????,???????
    ????????????????
  • ????UML???????
  • ???????,????????
  • ???????????????,????????????
  • ?????????????????
  • ??????????????????
  • ???????,?????????
  • ??????????????
  • ??????????
  • ????????????????
  • ???????????????

26
  • ?????????????????,?????,???????

27
  • ????????????????????????,?????????????????(lifelin
    e),????????????????????????????????????,???????,??
    ??????????????????,?????????????????????,?????????
    ????????

28
  • ???????????????
  • ?????
  • ?????
  • ???????
  • ??????
  • ???????

29
  • ?????????????????,???????????,??????????,?????????
    ?,????????????????,?????????????????
  • ?????
  • 1.????????
  • 2.???????????
  • 3.??????????
  • 4.?????????
  • 5.???????????????

30
1-5???State Diagrams
  • ???state diagram??????????????????????????????????
    ????event????????state?????????????????,??????????
    ??????
  • ?????????????????????transition??????????????,????
    ????????????????????
  • ???????????,?????????????,???????????????,????????
    ?

31
  • ???????????UML??,?????????????????????,???????????
    ,?????????????????????????,???????????????????????
    ???????????,???????????????
  • ?????????????????,??????????,?????????,??????????,
    ???????????,??????????????????transition(?????)???
    ??,???????,???????,?????????,???????????????,?????
    ????????,????????????????????????????????????

32
1-6???Activity Diagrams
  • ?????????????????????????????????????????,????????
    ??????????????????????????????????????????????????
    ???????????????????????????
  • ???????????

33
  • ????????????????????,???????????,?????????????????
    ?????????,??????????????,?????????????????????
  • ??????,????,????????,????????,???????,????,???????
    ????????????????????????
  • ??????????????,????????????????

34
1-7UML??
  • ?????http//jude.esm.jp/??JUDE??,??UML???????,????
    ????UML??????????,???Rational Rose(IBM???),Visual-
    Paradigm???UML?????????Linux???Umbrello??,???Linux
    ?????????JUDE????

35
1-8-1??JUDE
  • ??????jude-community-1_5_2-setup.exe??JUDE????????
    ??English?
  • ??????Diagram?????????????
Write a Comment
User Comments (0)
About PowerShow.com