Friday, January 26, 2018

ArgoUML Diagrams : Practical


Install ArgoUML on Linux

Download ArgoUML-0.34.tar.gz from the site given
Screenshot_2016-12-11_14-07-54.png

Screenshot_2016-12-11_14-16-47.png

Downloaded file
Screenshot_2016-12-11_14-14-36.png

Extract it into /opt folder
Screenshot_2016-12-11_14-16-00.png

If extraction not permitted on ur /opt , give rw permission using the following command
sudo chmod a+rw /opt
Screenshot_2016-12-11_13-50-47.png

Then you can extract into opt folder
Screenshot_2016-12-11_14-25-15.png

----------------------------------------------------------------------------------------------------------------------------

There is a file argouml.sh in folder /opt/argouml-0.34/argouml.sh
(.sh file is a shell script which you can execute in a terminal. (like .exe in windows))

Open terminal inside folder /opt/argouml-0.34/argouml.sh
Give command ./argouml.sh to open ArgoUML
Screenshot_2016-12-11_14-27-37.png

Screenshot_2016-12-11_14-31-46.png

Familiar with above window? That is ArgoUML where you can design any UML diagram using tools in this. You should use ArgoUML to design diagrams for the assignments.
Use the guide given, Moodle->OOD->Practicals->ArgoUML Tutorial.pdf (it has installation guide for Windows OS too. And from Topic 4 onwards it has guidance on how to use ArgoUML)


Practical

Screenshot_2016-12-11_15-21-36.png

Step 1 : Class diagram, entities
You need to create a class diagram for the University System given.

  1    2     3     4     5    6     7
Screenshot_2016-12-11_15-26-54.png
Click on 2nd button (green one) to create a class diagram. The tools for class diagram will be shown below this tool bar.

First, you need to identify the entities to design the diagram which are already given here.
Let’s draw entities on our designing area of ArgoUML (shown as 2 in ArgoUML Tutorial.pdf)

 1    2      3    4        5      6        7      8    9      10  11     12      13  14  15     16      17  18     19
Screenshot_2016-12-11_15-27-37.png

Click on button 4 , and draw an entity, type it’s name, see the following:

Screenshot_2016-12-11_16-33-39.png
Screenshot_2016-12-11_16-33-58.png




Now we created all our entities/classes:
Screenshot_2016-12-11_15-14-32.png

Step 2 : adding Attributes

Screenshot_2016-12-11_16-59-43.png
Screenshot_2016-12-11_16-30-10.png

Screenshot_2016-12-11_16-31-50.png

Screenshot_2016-12-11_17-02-47.png
Screenshot_2016-12-11_17-03-28.png

Or you can add attributes using the + symbol. It will appear when you selected an entity/class.


Now we added attributes to our entities/classes
Screenshot_2016-12-11_16-49-13.png

Step 3 : adding functions/operations

Screenshot_2016-12-11_16-59-54.png
Screenshot_2016-12-11_16-30-10.png

Screenshot_2016-12-11_17-11-29.png

Screenshot_2016-12-11_17-11-39.png

Screenshot_2016-12-11_17-03-08.png

Or you can add operations using the + symbol. It will appear when you selected an entity/class.

Now we added operations to our entities/classes
Screenshot_2016-12-11_17-21-33.png



Step 4 : add class associations

Screenshot_2016-12-11_18-57-32.png

Screenshot_2016-12-11_18-57-49.png

1    2      3    4        5      6        7      8    9      10  11     12      13  14  15     16      17  18     19
Screenshot_2016-12-11_15-27-37.png
Select “New Association” from 5 drop down, in tool bar.

Screenshot_2016-12-11_19-05-55.png

Screenshot_2016-12-11_19-06-19.png

Screenshot_2016-12-11_19-06-32.png

Screenshot_2016-12-11_19-06-47.png


  • Can drag and drop or re-arrange elements on your drawing area as you want to have an outcome in good order.

  • Can add colors as you like : use light colors.
  • Can download your diagram as an image. File-> Export graphics
  • Use pdf format when you submit your assignments (add downloaded diagram as an image into the pdf)




After adding all associations given;

Screenshot_2016-12-11_19-17-55.png






Select an element, go to Presentation tab, in Lower Right of the screen, where the Details of the selected object are displayed.


Can change Colors:
Screenshot_2016-12-11_19-26-43.png




Can see the source code of selected element:
Screenshot_2016-12-11_19-31-36.png
ClassDiagram.png









ClassDiagram.png







How to download source code of the diagram :
Screenshot_2016-12-11_19-44-43.png

Screenshot_2016-12-11_19-45-00.png


No comments:

Post a Comment