Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7013249b2be0defd3d18da3f4427aaa4e86659eb (plain) (blame)
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
118
119
120
121
122
123
124
125
126
127
128
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Layering</title>
<link href="book.css" rel="stylesheet" type="text/css">
<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
<link rel="home" href="index.html" title="eTrice User Guide">
<link rel="up" href="ROOMConcepts.html" title="ROOM Concepts">
<link rel="prev" href="DataClass.html" title="DataClass">
<link rel="next" href="FiniteStateMachines.html" title="Finite State Machines">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Layering</h1>
<div class="section" title="Layering">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="Layering2"></a>Layering</h2>
</div>
</div>
</div>
<div class="section" title="Description">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a name="Description5"></a>Description</h3>
</div>
</div>
</div>
<p>In addition to the Actor containment hierarchies, Layering provides another method to hierarchically structure a software system. Layering and actor hierarchies with port to port connections can be mixed on every level of granularity.</p>
<div class="orderedlist">
<ol class="orderedlist" type="1">
<li class="listitem">
<p>an ActorClass can define a Service Provision Point (SPP) to publish a specific service, defined by a ProtocolClass</p>
</li>
<li class="listitem">
<p>an ActorClass can define a Service Access Point (SAP) if it needs a service, defined by a ProtocolClass</p>
</li>
<li class="listitem">
<p>for a given Actor hierarchy, a LayerConnection defines which SAP will be satisfied by (connected to) which SPP</p>
</li>
</ol>
</div>
</div>
<div class="section" title="Notation">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a name="Notation5"></a>Notation</h3>
</div>
</div>
</div>
<table title="Title" frame="box" border="2" cellpadding="3" cellspacing="0" id="N10DE4">
<tr>
							
<td align="center">
					<span class="bold"><strong>Description</strong></span></td>
							<td align="center">
					<span class="bold"><strong>Graphical Notation</strong></span></td>
							<td align="center">
					<span class="bold"><strong>Textual Notation</strong></span></td>
						
</tr>
<tr>
							
<td>The Layer Connections in this model define which services are provided by the 
					<span class="emphasis"><em>ServiceLayer</em></span>  (
					<span class="emphasis"><em>digitalIO</em></span> and 
					<span class="emphasis"><em>timer</em></span>)</td>
							<td>
					
<div class="mediaobject">
<img src="images/040-LayeringModel.png"></div>
</td>
							<td>
					
<div class="mediaobject">
<img src="images/040-LayeringModelTextual.png"></div>
</td>
						
</tr>
<tr>
							
<td>The implementation of the services (SPPs) can be delegated to sub actors. In this case the actor 
					<span class="emphasis"><em>ServiceLayer</em></span> relays (delegates) the implementation services 
					<span class="emphasis"><em>digitalIO</em></span> and 
					<span class="emphasis"><em>timer</em></span> to sub actors</td>
							<td>
					
<div class="mediaobject">
<img src="images/040-LayeringServiceLayer.png"></div>
</td>
							<td>
					
<div class="mediaobject">
<img src="images/040-LayeringServiceLayerTextual.png"></div>
</td>
						
</tr>
<tr>
							
<td>Every Actor inside the 
					<span class="emphasis"><em>ApplicationLayer</em></span> that contains an SAP with the same Protocol as 
					<span class="emphasis"><em>timer</em></span> or 
					<span class="emphasis"><em>digitalIO</em></span> will be connected to the specified SPP</td>
							<td>
					
<div class="mediaobject">
<img src="images/040-LayeringApplicationLayer.png"></div>
</td>
							<td>
					
<div class="mediaobject">
<img src="images/040-LayeringApplicationLayerTextual.png"></div>
</td>
						
</tr>
</table>
<p>
				
</p>
</div>
</div>
</body>
</html>

Back to the top