Skip to content

Commit

Permalink
Add Activity Diagram section
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Jan 13, 2016
1 parent 74d0cac commit 4106a9d
Show file tree
Hide file tree
Showing 16 changed files with 130 additions and 1 deletion.
112 changes: 111 additions & 1 deletion docs/activity-diagram.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,114 @@
Activity Diagram
================

``TODO``
Actions
-------

``[15.2.4 Notation]``::

The notations for ActivityNodes are illustrated below. This notation is
discussed in more detail in the following sub clauses (and in Clause 16 for
Actions).

``[16.2.4.1 Actions]``::

Actions are notated as round-cornered rectangles, as shown in Figure 16.2.
The name of the action or other description of it may appear in the symbol.

.. image:: activity-diagram/action.png
:align: center

Activity Edge
-------------

``[15.2.4 Notation]``::

An ActivityEdge (whether a ControlFlow or ObjectFlow) is notated by an open
arrowhead line connecting two ActivityNodes. If the edge has a name, it is
notated near the arrow. Guards are shown as text in square brackets near
tail of the line.

.. image:: activity-diagram/activity-edge.png
:align: center

.. image:: activity-diagram/activity-edge-yes.png
:align: center

.. image:: activity-diagram/activity-edge-no.png
:align: center

.. image:: activity-diagram/activity-edge-guard.png
:align: center

Decision Nodes
--------------

``[15.3.4.3 Merge Nodes and Decision Nodes]``::

The notation for both MergeNodes and DecisionNodes is a diamond-shaped
symbol

``[15.3.4.3 Merge Nodes and Decision Nodes]``::

A decisionInput on a DecisionNode is notated in a note symbol attached to
the DecisionNode symbol, with the keyword «decisionInput», as shown in
Figure 15.33

.. image:: activity-diagram/decision-two.png
:align: center

.. image:: activity-diagram/decision-yes-no.png
:align: center

.. image:: activity-diagram/decision-remainder.png
:align: center

Initial Node
------------

``[15.3.4.1 Initial and Final Nodes]``::

InitialNodes are notated as a solid circle

.. image:: activity-diagram/initial-node.png
:align: center

Final Nodes
-----------

``[15.3.4.1 Initial and Final Nodes]``::

ActivityFinalNodes are notated as a solid circle within a hollow circle, as
shown in Figure 15.28. This can be thought of as a goal notated as
“bull’s eye,” or target.

.. image:: activity-diagram/final-node.png
:align: center

.. note::

It's not possible to create this as one element so it's separated to
"Final Node (internal)" and "Final Node (external).

Object Nodes
------------

``[15.4.4.1 Object Nodes]``::

ObjectNodes are notated as rectangles

.. image:: activity-diagram/object-node.png
:align: center

Example
-------

.. image:: activity-diagram/example.png
:align: center

Links
-----

.. seealso::

`UML Activity Diagrams: Reference <https://msdn.microsoft.com/en-us/library/dd409360.aspx>`_
Binary file added docs/activity-diagram/action.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/activity-edge-guard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/activity-edge-no.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/activity-edge-yes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/activity-edge.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/decision-remainder.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/decision-two.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/decision-yes-no.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/example.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/final-node.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/initial-node.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/activity-diagram/object-node.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/common.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Comment (note symbol)
---------------------

``[7.2.4 Notation]``::

A Comment is shown as a rectangle with the upper right corner bent (this is
also known as a “note symbol”). The rectangle contains the body of the
Comment. The connection to each annotatedElement is shown by a separate
dashed line. The dashed line connecting the note symbol to the
annotatedElement(s) may be suppressed if it is clear from the context,
or not important in this diagram.

.. image:: common/note.png
:align: center
Binary file added docs/common/note.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ Examples of various types of UML diagrams created using yEd graph editor.
:maxdepth: 1
:caption: Diagrams

Common <common>
Activity Diagram <activity-diagram>
Class Diagram <class-diagram>

.. note::
Id of type ``[14.3.3.1 StateMachineExtension]`` refers to
`UML 2.5 standard <http://www.omg.org/spec/UML/2.5/>`_.

0 comments on commit 4106a9d

Please sign in to comment.