Tutorial on ArgoUML prepared by Mei Zhang by Q719y1

VIEWS: 103 PAGES: 35

									Tutorial on ArgoUML
       prepared by Mei Zhang




12/9/2011                      1
               Overview
• Basics
  – Unified Modeling Language(UML)
  – CASE-tools supporting UML
  – ArgoUML
• Features
• Samples
• References


   12/9/2011                         2
       Unified Modeling
       Language (UML)
• The UML is widely used in object-
  oriented software development.
• One keystone for its success in
  industry is the wealth of CASE tools
  supporting UML.
  http://www.omg.org/technology/documents/formal/uml.htm



   12/9/2011                                               3
CASE-tools supporting UML
                                                  Fujaba       ArgoUML      Visual Paradigm   Rational
                                       EssModel                                Community
                                                  More…         More…        Edition More      Rose

 Price                                    $0         $0           $0              $0           $4290

 Open Source UML tool.                                X            X

 Supported Platform(s)                 Windows
                                                  Java VM      Java VM
                                                                                Java VM       Windows
                                        Only                                                   Only

 Reverse Engineering.                     X           X            X               X              X

 Forward Engineering/Code generation                  X            X                              X

 Supported UML diagrams                  Class    All types.   All types.      All types.     All types.
                                        diagram
                                          only.

 Print and export class diagrams.         X           X            X               X              X

 Modify or create UML diagrams.                       X            X               X              X

 run-time model critique                 N/A        N/A            X             N/A            N/A

 XMI import                                                        X             N/A              X

 OCL support                             N/A        N/A            X             N/A              X


          UML Modeling Tools: http://www.objectsbydesign.com/tools/umltools_byCompany.html
         12/9/2011 Tools: http://www.bcs-oops.org.uk/cgi-bin/view/Technical/FreeUMLTools
          Free UML                                                                                         4
     What is ArgoUML?
• ArgoUML is a Java based UML tool that helps you
  do your design using UML. It is able to create and
  save most of the nine standard UML diagrams.

• ArgoUML is not only a free UML modeling tool, it
  is also an Open Source Development project
  where you are invited to contribute.




    12/9/2011                                          5
   Where does the name
   ArgoUML come from?
According to Greek
mythology, the hero Jason
built a ship called Argo and
with his comrades, the
Argonauts, he left for the
quest of the golden fleece.
Poseidon, god of seas,
protected and safely guided
their journey.



    12/9/2011                  6
                  Who to use?
• The users of ArgoUML are
  –   software designers & architects
  –   software developers
  –   business analysts
  –   systems analysts and other
      professionals involved in the analysis,
      design and development of software
      applications.

      12/9/2011                                 7
            Features
• Support open standards extensively:
  UML, XMI, SVG, OCL and others.
• 100% Platform independent thanks to
  the exclusive use of Java
• Open Source, which allows extending or
  customizing.
• Cognitive features like:
    – reflection-in-action
    – opportunistic design
    – comprehension and problem solving
12/9/2011                                  8
             Features(con’t)                        Design critics are
                                         simple agents that continuously execute
• Cognitive features like           in a background thread of control. They analyze
                                   the design as the designer is working and suggest
   – reflection-in-action
                                                 possible improvements.
       •   Design Critics
       •   Corrective Automations (partially implemented)
       •   "To Do" List
       •   User model (partially implemented)
   – opportunistic design
       • "To Do" List
       • Checklists
   – Comprehension and Problem Solving
       • Explorer Perspectives
       • Multiple, Overlapping Views
       • Alternative Design Representations: Graphs, Text, or Table




     12/9/2011                                                                     9
        Critiquing Systems
• Phases of the ADAIR Process
  –   Activate
  –   Detect
  –   Advise
  –   Improve
  –   Record


      12/9/2011                 10
            Critique
                  1. Activate




12/9/2011                       11
      The To-Do Pane

                       3. Advise
                  4. Improve




      2. Detect




12/9/2011                          12
            Checklist




12/9/2011               13
                How to use
• User Interface
  http://argouml.tigris.org/documentation/defaulthtml/manual/pt02.html


• Class Diagram Specific Tools
  http://argouml.tigris.org/documentation/defaulthtml/manual/ch11s03.
  html#d0e9002

• How to install ArgoUML?
  http://argouml.tigris.org/documentation/defaulthtml/quick-
  guide/ch02.html




    12/9/2011                                                    14
                           Overview of ArgoUML
Top left: a hierarchical
 view of the current
                                 Windows         ArgoUML's user interface is
                                                    divided into 4 panels

     project file.




                                                        Top right: editor for the
                                                     selected part of the project, in
                                                       this case a class diagram.




                                                      Bottom right: details of
                                                      the selected object in the
 Bottom left:                                         diagram or the selected
                                                      "to do" item.
 the designer's     12/9/2011                                            15
 "to do" list.
    Supported Diagrams
• The current developer release of ArgoUML
  implements all the diagram types of the UML 1.3
  standard
      • Use Case Diagrams
      • Class Diagrams               Today’s Tutorial!
      • Behavior Diagrams
           – Statechart Diagrams
           – Activity Diagrams
           – Interaction Diagrams
               » Sequence Diagrams
               » Collaboration Diagrams
      • Implementation Diagrams
           – Component Diagrams
           – Deployment Diagrams

    12/9/2011                                            16
   The Menu Bar and
       Toolbars

            1. New a Model.




12/9/2011                     17
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.




12/9/2011                                                       18
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.




12/9/2011                                                       19
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.




12/9/2011                                                       20
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.

               - Add an attribute in the class “Customer”.




12/9/2011                                                       21
   The Menu Bar and
       Toolbars

            1. New a Model.
                                            Double click
                                             the return
            2. Add a class in the class diagram in the Model.

               - Add an attribute in the class “Customer”.
               - Add an method in the class “Customer”.




12/9/2011                                                       22
   The Menu Bar and
       Toolbars

            1. New a Model.                 Double click it.
            2. Add a class in the class diagram in the Model.

            3. Add a generalization to the class Customer.
                    - Alternative I: double click the generalization
                    icon under the class.




12/9/2011                                                         23
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.

            3. Add a generalization to the class Customer.
                    - Alternative I: double click the generalization
                    icon under the class.
                    - Alternative II: add a new class and use the
                    generalization line in the tool bar.




12/9/2011                                                           24
   The Menu Bar and
       Toolbars

            1. New a Model.
                Left click in the class diagram the icon, then
            2. Add a class when the mouse is onin the Model. drag it
                to the class to be associated, release the left button
            3. Add a generalization to the class Customer.click it.
                                                   Double
                       in the mouse. The associate is done now.
            4. Add a association to the class Customer.




12/9/2011                                                        25
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.

            3. Add a generalization to the class Customer.
            4. Add a association to the class Customer.

            5. Add a constraints to the class Order.




12/9/2011                                                       26
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.

            3. Add a generalization to the class Customer.
            4. Add a association to the class Customer.

            5. Add a constraints to the class Order.

              http://argouml.tigris.org/documentation/default
              html/manual/ch12s07.html#s2.ref.details_constr
              aint_editor

12/9/2011                                                       27
   The Menu Bar and
       Toolbars

            1. New a Model.

            2. Add a class in the class diagram in the Model.

            3. Add a generalization to the class Customer.
            4. Add a association to the class Customer.

            5. Add a constraints to the class Order.
            6. Add a aggregation and composition to the class
            Order.



12/9/2011                                                       28
   The Menu Bar and
       Toolbars




12/9/2011             29
The Menu Bar and Toolbars




               The Folder-Up icon. Clicking on this icon will bring us to the parent
               folder of the current folder.
               The Home Folder icon. Clicking on this icon will bring us to our home
               directory.
               The New Folder icon. Clicking on this icon will create a new folder
               called "New Folder" under the current folder. After the folder is
               created selecting it an clicking in the name allows us to select the
               name of our choice.
               The Folders Presentation Icon.

   12/9/2011                                                                          30
The Menu Bar and Toolbars

          Save to picture
                • Permanently Save:
                    Save to a file, including *.gif, *.ps, *.svg, *.eps, *.pgn




   12/9/2011                                                            31
   Save to picture
            •   Permanently Save:
            •   Temporarily Save ---- Save to a clipboard.




12/9/2011                                                    32
XMI: XML Metadata
   Interchange



            Using XMI from Rational Rose
                               Provide XMI to Rational Rose




12/9/2011                                                     33
•
                  References
    Object Management Group(OMG) UML 2.0
    http://www.omg.org/technology/documents/formal/uml.htm
•   UML Modeling Tools:
    http://www.objectsbydesign.com/tools/umltools_byCompany.html
•   Free UML Tools:
    http://www.bcs-oops.org.uk/cgi-bin/view/Technical/FreeUMLTools
•   Information on Argo UML, an .open source UML modeling tool built in
    Java
    http://argouml.tigris.org/
•   Jason Robbins
    http://www1.ics.uci.edu/~jrobbins/
•   Poseidon for UML
    http://www.gentleware.com/products/
•   ArgoUML Manual
    http://argouml.tigris.org/documentation/defaulthtml/manual/
•   Section 3, Software Design: From Programming to Architecture, Eric
    Braude, John Wiley and Sons, Publishers, 2004
      12/9/2011                                                           34
                    Acronym
UML      Unified Modelling Language
OCL      Object Constraint Language
XMI      XML Metadata Interchange
GEF      UCI Graph Editing Framework
SVG      Scalable Vector Graphics
CASE     Computer-Aided Software Engineering




      12/9/2011                                35

								
To top