summaryrefslogtreecommitdiff
path: root/old/dw/html/uml-legend.html
blob: 2ae56b6f84993b374efee2639fa23c0a11d84bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Dillo: UML Legend</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="https://www.dillo.org/dw/html/jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Dillo
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">UML Legend </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>This page describes the notation for several diagrams used in the documentation, which is a slight variation of UML.</p>
<h2>Classes</h2>
<p>Classes are represented by boxes, containing there names:</p>
<div align="center">
<img src="dot_inline_dotgraph_7.png" alt="dot_inline_dotgraph_7.png" border="0" usemap="#dot_inline_dotgraph_7.map"/>
<map name="dot_inline_dotgraph_7.map" id="dot_inline_dotgraph_7.map"></map>
</div>
<p>(In most cases, the attributes and operations are left away, for better readibility. Just click on it, to get to the detailed description.)</p>
<p>Of course, in C++, there are no interfaces, but here, we call a class, which has only virtual abstract methods, and so does not provide any functionality, an interface.</p>
<p>Templates get a yellow background color:</p>
<div align="center">
<img src="dot_inline_dotgraph_8.png" alt="dot_inline_dotgraph_8.png" border="0" usemap="#dot_inline_dotgraph_8.map"/>
<map name="dot_inline_dotgraph_8.map" id="dot_inline_dotgraph_8.map"></map>
</div>
<h2>Objects</h2>
<p>In some cases, an examle for a concrete constellation of objects is shown. An object is represented by a box containing a name and the class, separated by a colon.</p>
<div align="center">
<img src="dot_inline_dotgraph_9.png" alt="dot_inline_dotgraph_9.png" border="0" usemap="#dot_inline_dotgraph_9.map"/>
<map name="dot_inline_dotgraph_9.map" id="dot_inline_dotgraph_9.map"></map>
</div>
<p>The names (<em>x</em>, <em>y</em>, and <em>z</em>) are only meant within the context of the diagram, there needs not to be a relation to the actual names in the program. They should be unique within the diagram.</p>
<p>Classes and objects may be mixed in one diagram.</p>
<h2>Associations</h2>
<div align="center">
<img src="dot_inline_dotgraph_10.png" alt="dot_inline_dotgraph_10.png" border="0" usemap="#dot_inline_dotgraph_10.map"/>
<map name="dot_inline_dotgraph_10.map" id="dot_inline_dotgraph_10.map"></map>
</div>
<p>In this example, one instance of A refers to an arbitrary number of B instances (denoted by the "*"), and each instance of B is referred by exactly one ("1") A. The label <em>x</em> is the name of the association, in most cases the name of the field, e.g. A::x.</p>
<p>Possible other values for the <em>multiplicity:</em> </p>
<ul>
<li>
a concrete number, in most cases "1", </li>
<li>
a range, e.g. "0..1", </li>
<li>
"*", denoting an arbitrary number. </li>
</ul>
<h2>Implementations and Inheritance</h2>
<div align="center">
<img src="dot_inline_dotgraph_11.png" alt="dot_inline_dotgraph_11.png" border="0" usemap="#dot_inline_dotgraph_11.map"/>
<map name="dot_inline_dotgraph_11.map" id="dot_inline_dotgraph_11.map"></map>
</div>
<p>In this example,</p>
<ul>
<li>
the interface B extends the interface A, </li>
<li>
the class C implements the interface A, and </li>
<li>
the class D extends the class C. </li>
</ul>
<h2>Template Instantiations</h2>
<p>Template instantiations are shown as own classes/interfaces, the instantiation by the template is shown by a yellow dashed arrow:</p>
<div align="center">
<img src="dot_inline_dotgraph_12.png" alt="dot_inline_dotgraph_12.png" border="0" usemap="#dot_inline_dotgraph_12.map"/>
<map name="dot_inline_dotgraph_12.map" id="dot_inline_dotgraph_12.map"></map>
</div>
<p>In this example, the interface template C uses the template argument as super interface.</p>
<h2>Packages</h2>
<p>Packages are presented by dashed rectangles:</p>
<div align="center">
<img src="dot_inline_dotgraph_13.png" alt="dot_inline_dotgraph_13.png" border="0" usemap="#dot_inline_dotgraph_13.map"/>
<map name="dot_inline_dotgraph_13.map" id="dot_inline_dotgraph_13.map"></map>
</div>
<p>Packages may be nested. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat May 28 2016 11:47:43 for Dillo by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>