SlideShare une entreprise Scribd logo
1  sur  41
:                                      Trang

          I.                  ?
          II.
          III.
                1.
                2.
                3.
          IV.
                1.
                2.
                3.
                4.
                5.

                                      trong Rational Rose

   I.      Use Case Diagram                 )
           1.
           2.
 II.       Activity Diagram             )
           1.
           2.
III.       Class Diagram          )

        Rotional Rose                                               1
1.
           2.
 IV.       Sequence Diagram (      )
           1.
           2.
 V.        State Diagram (                     )
           1.
           2.
 VI.       Component Diagram (             )
           1.
           2.
VII.       Deployment Diagram (        )
           1.
           2.
VIII.      Collaboration Diagram       )
           1.
           2.




           I.
           1.
           2.




        Rotional Rose                              2
I.                          ?

  Rational Rose là một công cụ lập mô hình trực quan mạnh       trợ bạn phân tích và
thiết kế các hệ thống phần mềm hướng đối tượng. Nó được dùng để lập mô hình hệ thống
trước khi bạn viết mã (Code).Dùng mô hình, bạn có thể bắt kịp những thiếu sót về thiết
kế, trong khi việc chỉnh sửa chúng vẫn chưa tốn kém.

     Rational Rose

                 .

  Mô hình Rose là bức tranh về một hệ thống từ nhiều góc nhìn khác nhau. Nó bao gồm
tất cả             UML, các Actor, các Use Case, các đối tượng, các lớp, các thành
phần…. Nó mô tả chi tiết nội dung mà hệ thống sẽ gộp và cách nó sẽ làm việ

        .

          : Sẽ giảm bớt một số vấn đề phiền phức như : lập trình theo truyền thống thì
khi hoàn tất đề án, sau một thời gian sử dụng khách hàng yêu cầu thêm một vài chức
năng nào đó vì có cập nhật mới thì người lập trình phải xem lại toàn bộ hệ thống rồi sau
đó mới cập nhật. Điều này tốn rất nhiều thời gian.Nay nhờ có bản thiết kế thì chỉ cần xem
cập nhật đó nằm ở phần nào và chỉnh sửa, nâng cấp hệ thống. Điều đó sẽ linh hoạt và
giảm rất nhiều thời gian…

                                    :

      o Rose Modeler
                                                    .
      o Rose Professional                                            .
      o Rose Enterprise

                     .




Rotional Rose                                                                          3
II.
       Rational Rose
                                            .
          o                     .
          o                                     93.
          o                 .
          o                         .
          o                                     .
          o                                           .
          o                             .
          o             .
          o                                     .
          o
          o
                           :
          o
          o
          o
          o
          o
          o




Rotional Rose                                             4
III.
    1.                   :

                                 IBM-Rational Rose-Enterprise v7.0,
                :




                .exe trong IBM-Rational Rose-Enterprise v7:




Rotional Rose                                                         5
IBM-Rational Rose-Enterprise Edition:




                         :




Rotional Rose                                           6
Decktop Installation from CD image -> Next:




                         :




Rotional Rose                                                 7
B7:       Application       Anti-virut   -
      >          :




                     -        :




Rotional Rose                                  8
:




                :




Rotional Rose           9
Import a Rational License File -     :




                       -               license.upb       -
                   Import                                    ):




Rotional Rose                                                 10
Finish ->   :




Rotional Rose                   11
2.                :
   [Start] Menu ->All Program          IBM Rational /IBM Rational Rose
 Enterprise Edition    Rational Rose.




               Create New Model                                  .




Rotional Rose                                                         12
3.                                                :
                                         :


                                              Thanh Ti       [Title Bar ]

                                                                            Thanh Trinh Đơn [Menu Bar]

                                                                                 Thanh Cô




        Tri                                                 Diagram




        Documention
                                                         Toolbox


                                    Log Window




   a.                                     [Title Bar
                   Rational Rose –[untitled
                 Application Control Box     Rose
                        Control menu
                                                              .
   b.                                          [Menu Bar
                                                                                  .
   c.                                         [Standard Toobar
                                      :




Rotional Rose                                                                               13
Rotional Rose   14
d.                 [Browser]:
        o                                     .
        o

            trong t         .
        o                             :
                                                         )
                                         .
                                                     .
                                   nh.
                                                 .
                               .
              ……

Rotional Rose                                                 15
o                                         :
                                                .
            Use Case View:




                .
                              Use Case View:
                Business Actors
                Business Workers
                Business Use Cases
                Business Use Cases Diagrams
                Actors
                Use Cases
                Use Case Diagrams
                Activity Diagrams
                Sequence Diagrams
                Collaboration Diagrams
                Packages




Rotional Rose                                       16
 Logical View: tập trung vào cách hệ thống thực thi cách ứng xử trong các
          tác vụ . Nó cung cấp bức tranh chi tiết về các mẫu hệ thống, mô tả tính tương
          quan giữa các mẫu với nhau. Logical View bao gồm các lớp cụ thể cần thiết,
          các sơđồ Class …
                                Logical View:
                 Classes
                 Class Diagrams
                 Sequence Diagrams
                 Collaboration Diagrams
                 Statechart Diagrams
                 Packages…..




            Component View:

                               Conponent View:
                Component
                Conponent Diagrams
                Packages




Rotional Rose                                                                       17
 Deloyment View:
                             Deloyment View:
                Processes
                Processors
                Connectors
                Devices
                Deployment Diagrams




Rotional Rose                                   18
o
                                                         .
        o
                                                  .
   e.           Documentation[ Documentation Window ]:

                                              .
        o
            Documentation
                                                         .
        o
            Documentation
                       .
   f.                   [ Log Window ]: khi
                                        .
   g.               [ Diagram Window ]




        .
   h.                   [Toolbox]
                    .




Rotional Rose                                                19
                  ô
 View -> Toolbars ->Option                                             .
     o                                      [Browers]
                      View
                         Check                   Check   Browers

        o                                             :
                              View -> Toolbars
                                                           Standard

        o                                  :
                              View -> Toolbars
                                                         Toolbox

        o                              Documentation (Documentation Window):
                             n View
                                                           Browers
                         Documentation.



   4.                    Rotional Rose.
   a.                      :
   




 .mdl
                    :
        o                 -
                         trên thanh công          .
        o

                                             Ok
            Cancel                          ).



Rotional Rose                                                                  20
b.                       :
   

                                                          .
                       :
        o           -
        o
                           :
        o
        o           -
        o                                .



   c.                               :
   


                        .
                                .
                                         :
        o           -
        o                                                     : model (.mdl),
       petal (.prl), category (.cat), subsystem (.sub).
                     :
     o             -
     o                                 .
                                           :
     o
     o             -
     o                                 .




Rotional Rose                                                             21
d.
                :
                            :
        o




                          .
        o

                                 :
            
                                    -
                                                                .
                        :
            o


            o                                                :
                    
                                            -> Line Color
                        đơn
                    
            o                                            :
                    
                                        -
                                                    .




Rotional Rose                                                        22
IV.  Gi i thi u m t s           u thông
  1.          c
 - L p (Class
        .

         :




 -    Use case                            ng h th   c hi n           đ   đ   cm
                                                                 .

         :



 -               (Interface                                                       .

         :




  2.
 - Tươ           (Interaction                                .

         :




 -               (State
                 .

         :



Rotional Rose                                                                         23
3.
 -                                (Package
                            .

          :




     4.             :                        .

          :




     5.         :
                       (Dependence


          :




Rotional Rose                                    24
            (Association

         :




                     (Generalization


         :




                    (Realization
                                        .

         :




Rotional Rose                               25
I.          Use Case Diagram (                 ng)
      1.                                  (UC).

     Một Use Case Diagram trình bày sự tương tác giữa hệ thống và những tác nhân bên
ngoài hệ thống                                                    UC
                                                                                .

      2.                                       Use Case:
       Use Case:




       UC                      .




              :




        o                UC         :
                                            Use Case View trong Browser
                                  ->Use Case Diagram      Menu
                  
                   Double-Click
        o                UC:
                                                 UC trên Browser


Rotional Rose                                                                       26
          Delete      Menu
     o         UC:
                     UC                 UC
           
            UC                               UC                         Browser


     o         UC                        :
           
                     Edit ->Delete From Model           Ctrl + D
            UC
     o          UC:
            Right-Click trên UC                   UC
                     Open Specification
     o Importfile       Use Case
            Right-Click trên UC                   UC
                     Open Specification
                     Tab Files
            Right-Click                      Tab Files -> Insert File
                                  Open
                                             UC


     o      UC
            Right-Click trên UC                   UC
                     Open Specification
                          Abstract




Rotional Rose                                                                      27
               (Actor):




                                                              .
         :


     o       Actor
     o           Actor                                   UC
     o            Actor
     o       Actor                    :

              Right-Click trên Actor                    UC
                        Open Specification
             
             
   
     o                         :
                                  Generalization
                        UC               UC
     o                         :
                                                   UC
                        Ctrl + D
                             (Packages)




Rotional Rose                                                     28
o                  UC        UC
                                            .



     o          :
                       Package
                                      UC
           
     o                  UC                      Ctrl + D
                    .
   3.




Rotional Rose                                              29
II.        Activity Diagram (                 )
      1.
      

       .
                                                                          :
           o                                                           .
           o                                                   .
           o
                                                                   .


      2.
      a.             (Activity

                       .
               :




      b.                        (Synchronisation bar
                                               .
  -
                                                           .




      c.            (Ruard Condition):
                                                       .



Rotional Rose                                                                  30
d.          (Swimlane):

                .
        e.
-

                                      .
    -                             .

        3.




Rotional Rose                             31
III. Class Diagram           )
    1.
     Sơ

                .
   

                                                       .
                                  :
        o

        o
        o

   2.
   a.       (Class
        o
        o                        (Attribute)
        o                                (Operation)
                     :
            o            .
            o                                              .
            o                              .
            o




Rotional Rose                                                  32
b.               (Stereotype
        o                             :
                                 :



                                 :

                

   c. Package
      o                                   .

            :




   3.




Rotional Rose                             33
IV.        Sequence Diagram (            )
      1.
      
                                .
                                            .
                                   ,m

      2.




Rotional Rose                                    34
V.        State Diagram(                                         )
     1.
                              (State

     (Class                                                                    Class.
     

                                                                         ).
                                              :
          o                                        Use Case:
                                                                                           Use
                  Case
          o
                                           .



     2.
     a.                  (State)
 -
      (Action)

              :




     b.
 -                                                                            Transition
                                   State                 State       .




Rotional Rose                                                                               35
-      Transition

                     .



      c.
 -

           o               (Start State

               :




           o                   (Stop State

               :




VI.        Component Diagram                     )
      1.
      




                                                     .
      
                                             .




Rotional Rose                                            36
2.
   
        o
                       Component:
                            .




                       Subprogram Specification   Body

                                                          .


                       Main program:




                    .




Rotional Rose                                                 37
                                  :

                          .




      o                                                             .... ):
                                              :
                                 .




VII. Deployment Diagram (                  )
   1.
   
                                       .
    Deployment View
 th                                        .
   2.
           (Processpr)       (Sever                   (Workstation).....

          :




Rotional Rose                                                                 38

                    .

         :




   
                .
   




Rotional Rose           39
:

I.
      1.              :
              Use Case
      
                                                               .
      
      




      2. Tr                              :
              Use Case View                        Use Case
             Use Case
       o Right-Click trong Use Case View              ->New ->Use Case Diagram -
           “QuanLySinhVien”
       o           Right-Click           New ->Actor -
       o
       Right-Click trong Use Case View                   ->New ->Use Case -
     “ThemSinhVien”
       o                                        UC “CapNhatSinhVien”, “XoaSinhVien”,
           “TimSinhVien”, “KiemTraDiem”.

                              Actor      Use Case                              Use Case

      
       o Right-Click          Use Case                             Open Specification
       o                                      Documentationnhư sau“
           thêm sinh viên”
       o        OK

Rotional Rose                                                                             40
                                   Actor   Use Case     .


      

       o            Unidirectional Association   trên thanh Toolbar
       o
       o                       :
           “GiangVien” -> “XoaSinhVien”
           “GiangVien” -> “CapNhatSinhVien”
           “GiangVien” -> “TiemSinhVien”
      




II.
III.




Rotional Rose                                                             41

Contenu connexe

En vedette (9)

JOISP2013 Day3 Cake
JOISP2013 Day3 CakeJOISP2013 Day3 Cake
JOISP2013 Day3 Cake
 
Noi dungbaocao 1
Noi dungbaocao 1Noi dungbaocao 1
Noi dungbaocao 1
 
20 Simple Prayers to Inspire and Encourage
20 Simple Prayers to Inspire and Encourage20 Simple Prayers to Inspire and Encourage
20 Simple Prayers to Inspire and Encourage
 
Inheritance
InheritanceInheritance
Inheritance
 
Blog Audit: Make Your Blog Brand and PR Ready
Blog Audit: Make Your Blog Brand and PR ReadyBlog Audit: Make Your Blog Brand and PR Ready
Blog Audit: Make Your Blog Brand and PR Ready
 
Media Kits for Bloggers
Media Kits for BloggersMedia Kits for Bloggers
Media Kits for Bloggers
 
#Natidigitali
#Natidigitali#Natidigitali
#Natidigitali
 
2 cage culture
2 cage culture2 cage culture
2 cage culture
 
French classical menu
French classical menuFrench classical menu
French classical menu
 

Rational rose 2007

  • 1. : Trang I. ? II. III. 1. 2. 3. IV. 1. 2. 3. 4. 5. trong Rational Rose I. Use Case Diagram ) 1. 2. II. Activity Diagram ) 1. 2. III. Class Diagram ) Rotional Rose 1
  • 2. 1. 2. IV. Sequence Diagram ( ) 1. 2. V. State Diagram ( ) 1. 2. VI. Component Diagram ( ) 1. 2. VII. Deployment Diagram ( ) 1. 2. VIII. Collaboration Diagram ) 1. 2. I. 1. 2. Rotional Rose 2
  • 3. I. ? Rational Rose là một công cụ lập mô hình trực quan mạnh trợ bạn phân tích và thiết kế các hệ thống phần mềm hướng đối tượng. Nó được dùng để lập mô hình hệ thống trước khi bạn viết mã (Code).Dùng mô hình, bạn có thể bắt kịp những thiếu sót về thiết kế, trong khi việc chỉnh sửa chúng vẫn chưa tốn kém. Rational Rose . Mô hình Rose là bức tranh về một hệ thống từ nhiều góc nhìn khác nhau. Nó bao gồm tất cả UML, các Actor, các Use Case, các đối tượng, các lớp, các thành phần…. Nó mô tả chi tiết nội dung mà hệ thống sẽ gộp và cách nó sẽ làm việ . : Sẽ giảm bớt một số vấn đề phiền phức như : lập trình theo truyền thống thì khi hoàn tất đề án, sau một thời gian sử dụng khách hàng yêu cầu thêm một vài chức năng nào đó vì có cập nhật mới thì người lập trình phải xem lại toàn bộ hệ thống rồi sau đó mới cập nhật. Điều này tốn rất nhiều thời gian.Nay nhờ có bản thiết kế thì chỉ cần xem cập nhật đó nằm ở phần nào và chỉnh sửa, nâng cấp hệ thống. Điều đó sẽ linh hoạt và giảm rất nhiều thời gian… : o Rose Modeler . o Rose Professional . o Rose Enterprise . Rotional Rose 3
  • 4. II.  Rational Rose . o . o 93. o . o . o . o . o . o . o . o o  : o o o o o o Rotional Rose 4
  • 5. III. 1. : IBM-Rational Rose-Enterprise v7.0, : .exe trong IBM-Rational Rose-Enterprise v7: Rotional Rose 5
  • 7. Decktop Installation from CD image -> Next: : Rotional Rose 7
  • 8. B7: Application Anti-virut - > : - : Rotional Rose 8
  • 9. : : Rotional Rose 9
  • 10. Import a Rational License File - : - license.upb - Import ): Rotional Rose 10
  • 11. Finish -> : Rotional Rose 11
  • 12. 2. :  [Start] Menu ->All Program IBM Rational /IBM Rational Rose Enterprise Edition Rational Rose.  Create New Model . Rotional Rose 12
  • 13. 3. :  : Thanh Ti [Title Bar ] Thanh Trinh Đơn [Menu Bar] Thanh Cô Tri Diagram Documention Toolbox Log Window a. [Title Bar Rational Rose –[untitled Application Control Box Rose Control menu . b. [Menu Bar . c. [Standard Toobar : Rotional Rose 13
  • 15. d. [Browser]: o . o trong t . o :  )  .  .  nh.  .  .  …… Rotional Rose 15
  • 16. o : .  Use Case View: .  Use Case View: Business Actors Business Workers Business Use Cases Business Use Cases Diagrams Actors Use Cases Use Case Diagrams Activity Diagrams Sequence Diagrams Collaboration Diagrams Packages Rotional Rose 16
  • 17.  Logical View: tập trung vào cách hệ thống thực thi cách ứng xử trong các tác vụ . Nó cung cấp bức tranh chi tiết về các mẫu hệ thống, mô tả tính tương quan giữa các mẫu với nhau. Logical View bao gồm các lớp cụ thể cần thiết, các sơđồ Class …  Logical View: Classes Class Diagrams Sequence Diagrams Collaboration Diagrams Statechart Diagrams Packages…..  Component View:  Conponent View: Component Conponent Diagrams Packages Rotional Rose 17
  • 18.  Deloyment View:  Deloyment View: Processes Processors Connectors Devices Deployment Diagrams Rotional Rose 18
  • 19. o . o . e. Documentation[ Documentation Window ]: . o Documentation . o Documentation . f. [ Log Window ]: khi . g. [ Diagram Window ] . h. [Toolbox] . Rotional Rose 19
  • 20. ô View -> Toolbars ->Option . o [Browers]  View  Check Check Browers o :  View -> Toolbars  Standard o :  View -> Toolbars  Toolbox o Documentation (Documentation Window):  n View  Browers Documentation. 4. Rotional Rose. a. :  .mdl  : o - trên thanh công . o Ok Cancel ). Rotional Rose 20
  • 21. b. :  .  : o - o  : o o - o . c. :  . .  : o - o : model (.mdl), petal (.prl), category (.cat), subsystem (.sub).  : o - o .  : o o - o . Rotional Rose 21
  • 22. d. :  : o . o :   -  .  : o o :   -> Line Color đơn  o :   -  . Rotional Rose 22
  • 23. IV. Gi i thi u m t s u thông 1. c - L p (Class . : - Use case ng h th c hi n đ đ cm . : - (Interface . : 2. - Tươ (Interaction . : - (State . : Rotional Rose 23
  • 24. 3. - (Package . : 4. : . : 5. :  (Dependence : Rotional Rose 24
  • 25. (Association :  (Generalization :  (Realization . : Rotional Rose 25
  • 26. I. Use Case Diagram ( ng) 1. (UC). Một Use Case Diagram trình bày sự tương tác giữa hệ thống và những tác nhân bên ngoài hệ thống UC . 2. Use Case:  Use Case: UC . : o UC :  Use Case View trong Browser  ->Use Case Diagram Menu   Double-Click o UC:  UC trên Browser Rotional Rose 26
  • 27. Delete Menu o UC:  UC UC   UC UC Browser o UC :   Edit ->Delete From Model Ctrl + D  UC o UC:  Right-Click trên UC UC  Open Specification o Importfile Use Case  Right-Click trên UC UC  Open Specification  Tab Files  Right-Click Tab Files -> Insert File  Open  UC o UC  Right-Click trên UC UC  Open Specification  Abstract Rotional Rose 27
  • 28. (Actor): . : o Actor o Actor UC o Actor o Actor :  Right-Click trên Actor UC  Open Specification    o :  Generalization  UC UC o :  UC  Ctrl + D  (Packages) Rotional Rose 28
  • 29. o UC UC . o :  Package  UC  o UC Ctrl + D . 3. Rotional Rose 29
  • 30. II. Activity Diagram ( ) 1.  .  : o . o . o . 2. a. (Activity . : b. (Synchronisation bar . - . c. (Ruard Condition): . Rotional Rose 30
  • 31. d. (Swimlane): . e. - . - . 3. Rotional Rose 31
  • 32. III. Class Diagram ) 1.  Sơ .  .  : o o o 2. a. (Class o o (Attribute) o (Operation) : o . o . o . o Rotional Rose 32
  • 33. b. (Stereotype o :  :  :  c. Package o . : 3. Rotional Rose 33
  • 34. IV. Sequence Diagram ( ) 1.  .  .  ,m 2. Rotional Rose 34
  • 35. V. State Diagram( ) 1.  (State (Class Class.  ).  : o Use Case: Use Case o . 2. a. (State) - (Action) : b. - Transition State State . Rotional Rose 35
  • 36. - Transition . c. - o (Start State : o (Stop State : VI. Component Diagram ) 1.  .  . Rotional Rose 36
  • 37. 2.  o  Component: .  Subprogram Specification Body .  Main program: . Rotional Rose 37
  • 38. : . o .... ):  : . VII. Deployment Diagram ( ) 1.  .  Deployment View th . 2.  (Processpr) (Sever (Workstation)..... : Rotional Rose 38
  • 39. . :  .  Rotional Rose 39
  • 40. : I. 1. :  Use Case  .   2. Tr :  Use Case View Use Case  Use Case o Right-Click trong Use Case View ->New ->Use Case Diagram - “QuanLySinhVien” o Right-Click New ->Actor - o  Right-Click trong Use Case View ->New ->Use Case - “ThemSinhVien” o UC “CapNhatSinhVien”, “XoaSinhVien”, “TimSinhVien”, “KiemTraDiem”. Actor Use Case Use Case  o Right-Click Use Case Open Specification o Documentationnhư sau“ thêm sinh viên” o OK Rotional Rose 40
  • 41. Actor Use Case .  o Unidirectional Association trên thanh Toolbar o o : “GiangVien” -> “XoaSinhVien” “GiangVien” -> “CapNhatSinhVien” “GiangVien” -> “TiemSinhVien”  II. III. Rotional Rose 41