1 Summary 1. Visual Paradigm for UML ....................................................................................................... 1 2. Creating the GeoProfile ......................................................................................................... 2 3. Applying Icons to Stereotypes ............................................................................................. 11 4. Applying the GeoProfile ...................................................................................................... 12 1. Visual Paradigm for UML Visual Paradigm for UML (Visual Paradigm, 2010) is a CASE tool with several options for modeling with UML2 diagrams and also supports SysML requirements diagrams and ER diagrams. The tool has a good working environment, which facilitates viewing and manipulation of the modeling project. It is a business tool and also supports specific changes to source code of some programming languages such as C++ and Java. Desktop for Visual Paradigm for UML 8.1 The UML profile support is offered, and also allowed the use of graphical notation for stereotypes. In the implementation of a profile, add to the stereotypes, as if the metaclass choose it will extend. This extension is not shown explicitly, as in RSM and Papyrus UML2 Modeler. It is also possible to perform import / export of models using
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
Summary 1. Visual Paradigm for UML ....................................................................................................... 1
2. Creating the GeoProfile ......................................................................................................... 2
3. Applying Icons to Stereotypes ............................................................................................. 11
4. Applying the GeoProfile ...................................................................................................... 12
1. Visual Paradigm for UML
Visual Paradigm for UML (Visual Paradigm, 2010) is a CASE tool with several options for modeling with UML2 diagrams and also supports SysML requirements diagrams and ER diagrams. The tool has a good working environment, which facilitates viewing and manipulation of the modeling project. It is a business tool and also supports specific changes to source code of some programming languages such as C++ and Java.
Desktop for Visual Paradigm for UML 8.1
The UML profile support is offered, and also allowed the use of graphical notation for stereotypes. In the implementation of a profile, add to the stereotypes, as if the metaclass choose it will extend. This extension is not shown explicitly, as in RSM and Papyrus UML2 Modeler. It is also possible to perform import / export of models using
2
the standard format for exchanging models XMI. Unlike others, this tool offers the possibility to display more than one icon per class, if necessary. To implement the GeoProfile was used Visual Paradigm for UML version 8.1
2. Creating the GeoProfile
To create a profile in Visual Paradigm, right click on the root of the project "Untitled",
on the Model Explorer tab, and select Create Profile on the menu that appears, you
can take a new name to the project in the option Rename.
On the window Profile Specification that appears, give a name to the profile, in this
case GeoProfile.
3
To create a diagram of the profile, even in the Model Explorer tab, right click on the
profile you created earlier, and on the menu choose: Sub Diagrams -> New Profile
Diagram.
Now we can add elements to create the GeoProfile in the diagram.
First we create stereotypes of the profile, let's start with the stereotypes for network
objects (NetworkObj, Arc, Node, and UnidirectionalArc BidirectionalArc). By adding
an element of type Stereotype in the project, a window will appear for choosing the
base type of stereotype, that is, which element extends UML stereotype. In this case,
the aforementioned stereotypes extend the UML element Class.
4
On the palette of elements, add an element Stereotype, for each of the stereotypes
mentioned above, so leave the template as shown below.
Note that stereotypes NetworkObj and Arc are abstracts. To place a stereotype as the
abstract, simply select it on the model and check the option Abstract on the left
inferior tab Property.
Now, generalize stereotypes using the element Generalization, so as to leave the
profile as shown below.
5
Now let's create the stereotypes regarding the metaclass Association, dealing with the
topological relationships among the geographical classes. There are six different types
of topological relationships in GeoProfile, let's create just one for this example.
First, create an element Stereotype, which now must have a base type NARY that
refers to an N-ary Association element (n-ary association), and give it the name
Temporal.
6
A stereotype may have properties, which may be referred to as tag definitions. When
a stereotype is applied to a model element, the values of the properties may be
referred to as tagged values.
The next step is to create the stereotype TemporalObject and its enumeration (tagged
values). Add one more element Stereotype in the scheme with base type Class.
To set a tagged value to a stereotype, right-click on it and choose the option
Open Specification.
7
On the dialog Stereotype Specification that opens, open the flap Tagged Value
Definitions. Click the Add button to choose the type of the tagged value. Choose
Enumeration Tag.
Add two Enumeration Tags and label them as TemporalPrimitive and TemporalType.
8
Select the tagged value TemporalType and then click the Edit Enumeration button. On
the window that opens, click the Add button to add the literals regarding to this tag.
For this enumeration, GeoProfile sets two literal, instant and interval. After adding
them, click OK to confirm.
Do the same now with the tag TemporalType, adding literals valid_time,
transaction_time and bitemporal, defined in GeoProfile.
9
Click OK on the Stereotype Specification to apply the tagged values to the stereotype
TemporalObj.
Thus it is possible to create the complete diagram for the GeoProfile according to your
specification. Include the other Stereotypes and Generalizations that are missing in
order to make the model as follows:
10
Stereotypes of GeoProfile
11
3. Applying Icons to Stereotypes
This tool allows the combination of icons to the stereotypes for a lighter
representation of the elements of the diagram.
To associate an icon to a stereotype, right click on the stereotype to which to apply the
icon and choose Open Specification.
In the dialog Stereotype Specification that opens, open the General tab. On the Icon
Path field select the icon that is applied to the stereotype.
Now you can add the other icons of other stereotypes: Point, Line, Polygon,