blob: 8a8e89b5471ce84c3347f167ffbd2c1148997f26 (
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
|
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create MrPing and MrPong Actors</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="TutorialSendingData.html" title="Tutorial Sending Data">
<link rel="prev" href="Createanewprotocol2.html" title="Create a new protocol">
<link rel="next" href="DefineActorStructureandBehavior.html" title="Define Actor Structure and Behavior">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Create MrPing and MrPong Actors</h1>
<div class="section" title="Create MrPing and MrPong Actors">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="CreateMrPingandMrPongActors"></a>Create MrPing and MrPong Actors</h2>
</div>
</div>
</div>
<p>With the help of
[<span class="citation">Content Assist</span>] create two new actor classes and name them
[<span class="citation">MrPing</span>] and
[<span class="citation">MrPong</span>]. The resulting model should look like this:
</p>
<div class="literallayout">
<p>
<code class="code">RoomModel SendingData {<br>
<br>
LogicalSystem SendingData_LogSystem {<br>
SubSystemRef SendingDataAppl: SendingData_SubSystem<br>
}<br>
<br>
SubSystemClass SendingData_SubSystem {<br>
ActorRef SendigDataTopRef: SendingDataTop<br>
}<br>
<br>
ActorClass SendingDataTop { }<br>
<br>
DataClass DemoData {<br>
Attribute int32Val: int32 = "4711"<br>
Attribute int8Array [ 10 ]: int8 = "{1,2,3,4,5,6,7,8,9,10}"<br>
Attribute float64Val: float64 = "0.0"<br>
Attribute stringVal: string = "\"empty\""<br>
}<br>
<br>
ProtocolClass PingPongProtocol {<br>
incoming {<br>
Message ping(data: DemoData)<br>
Message pingSimple(data: int32)<br>
}<br>
outgoing {<br>
Message pong(data: DemoData)<br>
Message pongSimple(data: int32)<br>
}<br>
}<br>
<br>
ActorClass MrPing {<br>
Interface { }<br>
Structure { }<br>
Behavior { }<br>
}<br>
<br>
ActorClass MrPong {<br>
Interface { }<br>
Structure { }<br>
Behavior { }<br>
}<br>
} <br>
<br>
</code>
</p>
</div>
<div class="blockquote">
<blockquote class="blockquote">
<p></p>
</blockquote>
</div>
<p>The outline view should look like this:</p>
<p>
</p>
<div class="mediaobject">
<img src="images/025-SendingData03.png"></div>
<p>
</p>
</div>
</body>
</html>
|