blob: 7d5dde9ca26565917364ba805d3777276ef39ed2 (
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>Actors</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<!-- html,3,next -->
<meta name="src" content="etrice-doc.tex">
<meta name="date" content="2013-02-26 19:42:00">
<link rel="stylesheet" type="text/css" href="etrice-doc.css">
</head><body
>
<!--l. 6--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse39.html" >next</a>] [<a
href="etrice-docch10.html" >prev</a>] [<a
href="etrice-docch10.html#tailetrice-docch10.html" >prev-tail</a>] [<a
href="#tailetrice-docse38.html">tail</a>] [<a
href="etrice-docch10.html#etrice-docse38.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">10.1 </span> <a
id="x50-6600010.1"></a>Actors</h3>
<!--l. 8--><p class="noindent" >
<h4 class="subsectionHead"><span class="titlemark">10.1.1 </span> <a
id="x50-6700010.1.1"></a>Description</h4>
<!--l. 10--><p class="noindent" >The actor is the basic structural building block for building systems with ROOM. An
actor can be refined hierarchically and thus can be of arbitrarily large scope. Ports
define the interface of an actor. An Actor can also have a behavior usually defined by
a finite state machine.
<!--l. 12--><p class="noindent" >
<h4 class="subsectionHead"><span class="titlemark">10.1.2 </span> <a
id="x50-6800010.1.2"></a>Motivation</h4>
<ul class="itemize1">
<li class="itemize">Actors enable the construction of hierarchical structures by composition
and layering
</li>
<li class="itemize">Actors have their own logical thread of execution
</li>
<li class="itemize">Actors can be freely deployed
</li>
<li class="itemize">Actors define potentially reusable blocks</li></ul>
<!--l. 21--><p class="noindent" >
<h4 class="subsectionHead"><span class="titlemark">10.1.3 </span> <a
id="x50-6900010.1.3"></a>Notation</h4>
<div class="table">
<!--l. 25--><p class="noindent" ><a
id="x50-690011"></a><hr class="float"><div class="float"
>
<div class="caption"
><span class="id">Table 10.1: </span><span
class="content">Actor Class Notation</span></div><!--tex4ht:label?: x50-690011 -->
<div class="tabular"> <table id="TBL-3" class="tabular"
cellspacing="0" cellpadding="0" rules="groups"
><colgroup id="TBL-3-1g"><col
id="TBL-3-1"></colgroup><colgroup id="TBL-3-2g"><col
id="TBL-3-2"></colgroup><colgroup id="TBL-3-3g"><col
id="TBL-3-3"></colgroup><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-3-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-1-1"
class="td11"> <span
class="ecbx-1000">Element </span></td><td style="white-space:nowrap; text-align:left;" id="TBL-3-1-2"
class="td11"> <span
class="ecbx-1000">Graphical Notation </span></td><td style="white-space:nowrap; text-align:left;" id="TBL-3-1-3"
class="td11"> <span
class="ecbx-1000">Textual Notation </span></td>
</tr><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-3-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-2-1"
class="td11"> ActorClass </td><td style="white-space:nowrap; text-align:left;" id="TBL-3-2-2"
class="td11"> <img
src="images/040-ActorClassNotation.png" alt="PIC"
> </td><td style="white-space:nowrap; text-align:left;" id="TBL-3-2-3"
class="td11"> <img
src="images/040-ActorClassTextualNotation.png" alt="PIC"
> </td>
</tr><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-3-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-3-1"
class="td11"> ActorRef </td><td style="white-space:nowrap; text-align:left;" id="TBL-3-3-2"
class="td11"> <img
src="images/040-ActorReferenceNotation.png" alt="PIC"
> </td><td style="white-space:nowrap; text-align:left;" id="TBL-3-3-3"
class="td11"> <img
src="images/040-ActorReferenceTextualNotation.png" alt="PIC"
> </td>
</tr><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-3-4-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-4-1"
class="td11"> </td></tr></table></div>
</div><hr class="endfloat" />
</div>
<h4 class="subsectionHead"><span class="titlemark">10.1.4 </span> <a
id="x50-7000010.1.4"></a>Details</h4>
<!--l. 55--><p class="noindent" >
<h5 class="subsubsectionHead"><a
id="x50-7100010.1.4"></a>Actor Classes, Actor References, Ports and Bindings</h5>
<!--l. 57--><p class="noindent" >An <span
class="ecbx-1000">ActorClass </span>defines the type (or blueprint) of an actor. Hierarchies are
built by ActorClasses that contain <span
class="ecbx-1000">ActorReferences </span>which have another
ActorClass as type. The interface of an ActorClass is always defined by Ports.
The ActorClass can also contain Attributes, Operations and a finite state
machine.
<!--l. 59--><p class="noindent" ><span
class="ecbx-1000">External Ports </span>define the external interface of an actor and are defined in the
*Interface* section of the ActorClass.
<!--l. 61--><p class="noindent" ><span
class="ecbx-1000">Internal Ports </span>define the internal interface of an actor and are defined in the
*Structure* section of the ActorClass.
<!--l. 63--><p class="noindent" ><span
class="ecbx-1000">Bindings </span>connect Ports inside an ActorClass.
<!--l. 65--><p class="noindent" >Example:
<div class="table">
<!--l. 68--><p class="noindent" ><a
id="x50-710012"></a><hr class="float"><div class="float"
>
<div class="caption"
><span class="id">Table 10.2: </span><span
class="content">Actor Class Example</span></div><!--tex4ht:label?: x50-710012 -->
<div class="tabular"> <table id="TBL-4" class="tabular"
cellspacing="0" cellpadding="0" rules="groups"
><colgroup id="TBL-4-1g"><col
id="TBL-4-1"></colgroup><colgroup id="TBL-4-2g"><col
id="TBL-4-2"></colgroup><colgroup id="TBL-4-3g"><col
id="TBL-4-3"></colgroup><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-4-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-1-1"
class="td11"> <span
class="ecbx-1000">Graphical Notation </span></td><td style="white-space:nowrap; text-align:left;" id="TBL-4-1-2"
class="td11"> <span
class="ecbx-1000">Textual Notation </span></td>
</tr><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-4-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-2-1"
class="td11"> <img
src="images/040-ActorClass.png" alt="PIC"
> </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-2-2"
class="td11"> <img
src="images/040-ActorClassExampleTextualNotation.png" alt="PIC"
> </td>
</tr><tr
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr
style="vertical-align:baseline;" id="TBL-4-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-3-1"
class="td11"> </td></tr></table>
</div>
</div><hr class="endfloat" />
</div>
<ul class="itemize1">
<li class="itemize"><span
class="ecbx-1000">ActorClass1 </span>contains two ActorReferences (of ActorClass2 and
ActorClass3)
</li>
<li class="itemize"><span
class="ecti-1000">port1 </span>is a <span
class="ecbx-1000">External End Port</span>. Since it connects external Actors with
the behavior of the ActorClass, it is defined in the <span
class="ecbx-1000">Interface </span>section and
the <span
class="ecbx-1000">Structure </span>section of the ActorClass.
</li>
<li class="itemize"><span
class="ecti-1000">port2 </span>and <span
class="ecti-1000">port3 </span>are <span
class="ecbx-1000">Internal End Ports </span>and can only be connected to
the ports of contained ActorReferences. Internal End Ports connect the
Behavior of an ActorClass with its contained ActorReferences.
</li>
<li class="itemize"><span
class="ecti-1000">port4 </span>is a relay port and connects external Actors to contained
ActorReferences. This port can not be accessed by the behavior of the
ActorClass.
</li>
<li class="itemize"><span
class="ecti-1000">port5 </span>through <span
class="ecti-1000">port9 </span>are Ports of contained ActorReferences. <span
class="ecti-1000">port8</span>
and <span
class="ecti-1000">port9 </span>can communicate without interference with the containing
ActorClass.
</li>
<li class="itemize"><span
class="ecbx-1000">Bindings </span>can connect ports of the ActorClass and its contained
ActorReferences.</li></ul>
<h5 class="subsubsectionHead"><a
id="x50-7200010.1.4"></a>Attributes</h5>
<!--l. 98--><p class="noindent" >Attributes are part of the Structure of an ActorClass. They can be of a
PrimitiveType or a DataClass.
<!--l. 100--><p class="noindent" >Example:
<!--l. 102--><p class="noindent" ><img
src="images/040-ActorClassAttributes.png" alt="PIC"
>
<!--l. 105--><p class="noindent" >
<h5 class="subsubsectionHead"><a
id="x50-7300010.1.4"></a>Operations</h5>
<!--l. 107--><p class="noindent" >Operations are part of the Behavior of an ActorClass. Arguments and return values
can be of a PrimitiveType or a DataClass. DataClasses can be passed by value
(implicit) or by reference (keyword <span
class="ecbx-1000">ref</span>).
<!--l. 109--><p class="noindent" >Example:
<!--l. 111--><p class="noindent" ><img
src="images/040-ActorClassOperations.png" alt="PIC"
>
<!--l. 114--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse39.html" >next</a>] [<a
href="etrice-docch10.html" >prev</a>] [<a
href="etrice-docch10.html#tailetrice-docch10.html" >prev-tail</a>] [<a
href="etrice-docse38.html" >front</a>] [<a
href="etrice-docch10.html#etrice-docse38.html" >up</a>] </p></div>
<!--l. 114--><p class="noindent" ><a
id="tailetrice-docse38.html"></a>
</body></html>
|