Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.doc/html/etrice-docse54.html')
-rw-r--r--plugins/org.eclipse.etrice.doc/html/etrice-docse54.html3152
1 files changed, 1576 insertions, 1576 deletions
diff --git a/plugins/org.eclipse.etrice.doc/html/etrice-docse54.html b/plugins/org.eclipse.etrice.doc/html/etrice-docse54.html
index e42957388..48485ff86 100644
--- a/plugins/org.eclipse.etrice.doc/html/etrice-docse54.html
+++ b/plugins/org.eclipse.etrice.doc/html/etrice-docse54.html
@@ -1,1588 +1,1588 @@
-<?xml version="1.0" encoding="iso-8859-1" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
-<html xmlns="http://www.w3.org/1999/xhtml"
->
-<head><title>eTrice Models and Their Relations</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/)" />
-<!-- xhtml,3,next,html -->
-<meta name="src" content="etrice-doc.tex" />
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
+<html xmlns="http://www.w3.org/1999/xhtml"
+>
+<head><title>eTrice Models and Their Relations</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/)" />
+<!-- xhtml,3,next,html -->
+<meta name="src" content="etrice-doc.tex" />
<<<<<<< Upstream, based on branch 'master' of ssh://hrentzreich@git.eclipse.org:29418/etrice/org.eclipse.etrice.git
-<meta name="date" content="2013-06-14 00:07:00" />
+<meta name="date" content="2013-06-14 00:07:00" />
=======
-<meta name="date" content="2013-06-14 08:45:00" />
+<meta name="date" content="2013-06-14 08:45:00" />
>>>>>>> 1fbdb27 [doc] fixed problem with colored eTrice in headings
-<link rel="stylesheet" type="text/css" href="etrice-doc.css" />
-</head><body
->
-<!--l. 1--><div class="crosslinks"><p class="noindent">[<a
-href="etrice-docch12.html" >next</a>] [<a
-href="etrice-docse53.html" >prev</a>] [<a
-href="etrice-docse53.html#tailetrice-docse53.html" >prev-tail</a>] [<a
-href="#tailetrice-docse54.html">tail</a>] [<a
-href="etrice-docch11.html#etrice-docse54.html" >up</a>] </p></div>
-<h3 class="sectionHead"><span class="titlemark">11.2 </span> <a
- id="x67-12600011.2"></a>eTrice Models and Their Relations</h3>
-<!--l. 3--><p class="noindent" >eTrice comprises several models:
-</p>
- <ul class="itemize1">
- <li class="itemize">the ROOM model (*.room) &#8211; defines model classes and the logical structure of the model
- </li>
- <li class="itemize">the Config model (*.config) &#8211; defines configuration values for attributes
- </li>
- <li class="itemize">the Physical model (*.etphys) &#8211; defines the structure and properties of the physical system
- </li>
- <li class="itemize">the Mapping model (*.etmap) &#8211; defines a mapping from logical elements to physical elements</li></ul>
-<!--l. 12--><p class="noindent" >In the following diagram the models and their relations are depicted. The meaning of the arrows is:
-uses/references.
-</p><!--l. 15--><p class="noindent" ><img
-src="images/080-models.jpg" alt="PIC"
- />
-</p><!--l. 17--><p class="noindent" >In the following sections we will describe those models with emphasis of their cross relations.
-</p><!--l. 19--><p class="noindent" >
-</p>
-<h4 class="subsectionHead"><span class="titlemark">11.2.1 </span> <a
- id="x67-12700011.2.1"></a>The ROOM Model</h4>
-<!--l. 21--><p class="noindent" >The ROOM model defines <span id="textcolor52"><span
-class="ec-lmssbx-10">DataClass</span></span>es, <span id="textcolor53"><span
-class="ec-lmssbx-10">ProtocolClass</span></span>es, <span id="textcolor54"><span
-class="ec-lmssbx-10">ActorClass</span></span>es, <span id="textcolor55"><span
-class="ec-lmssbx-10">SubSystemClass</span></span>es and
-<span id="textcolor56"><span
-class="ec-lmssbx-10">LogicalSystem</span></span>s. Thereby the three latter form a hierarchy. The <span id="textcolor57"><span
-class="ec-lmssbx-10">LogicalSystem</span></span> is the top level element of the
-structure. It contains references to <span id="textcolor58"><span
-class="ec-lmssbx-10">SubSystemClass</span></span> elements. The <span id="textcolor59"><span
-class="ec-lmssbx-10">SubSystemClass</span></span> in turn contains
-references to <span id="textcolor60"><span
-class="ec-lmssbx-10">ActorClass</span></span> elements which again contain (recursively) references to <span id="textcolor61"><span
-class="ec-lmssbx-10">ActorClass</span></span> elements. The
-complete structural hierarchy implies a tree which has the <span id="textcolor62"><span
-class="ec-lmssbx-10">LogicalSystem</span></span> as root and where each reference
-stands for a new node with possibly further branches.
-</p><!--l. 29--><p class="noindent" >Let&#8217;s consider a simple example. It doesn&#8217;t implement anything meaningful and completely omits behavioral
-and other aspects.
-</p>
-<!--l. 32--><div class="lstinputlisting">
-<a
- id="x67-127001r1"></a>
-<a
- id="x67-127002"></a>
-<span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127003r1"></a><span
-class="ec-lmss-8x-x-62">1</span></span><span
-class="ec-lmssbx-10x-x-90">RoomModel</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127004r2"></a><span
-class="ec-lmss-8x-x-62">2</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">LogicalSystem</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">Main</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127005r3"></a><span
-class="ec-lmss-8x-x-62">3</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">SubSystemRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">subA</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">SubA</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127006r4"></a><span
-class="ec-lmss-8x-x-62">4</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">SubSystemRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">subB</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">SubB</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127007r5"></a><span
-class="ec-lmss-8x-x-62">5</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127008r6"></a><span
-class="ec-lmss-8x-x-62">6</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127009r7"></a><span
-class="ec-lmss-8x-x-62">7</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">SubSystemClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">SubA</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127010r8"></a><span
-class="ec-lmss-8x-x-62">8</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actA</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActA</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127011r9"></a><span
-class="ec-lmss-8x-x-62">9</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actB</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActB</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127012r10"></a><span
-class="ec-lmss-8x-x-62">10</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127013r11"></a><span
-class="ec-lmss-8x-x-62">11</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">LogicalThread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">dflt</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127014r12"></a><span
-class="ec-lmss-8x-x-62">12</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">LogicalThread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127015r13"></a><span
-class="ec-lmss-8x-x-62">13</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actA</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">actB1</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127016r14"></a><span
-class="ec-lmss-8x-x-62">14</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actC1</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">dflt</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127017r15"></a><span
-class="ec-lmss-8x-x-62">15</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127018r16"></a><span
-class="ec-lmss-8x-x-62">16</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actA</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">actB2</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127019r17"></a><span
-class="ec-lmss-8x-x-62">17</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127020r18"></a><span
-class="ec-lmss-8x-x-62">18</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127021r19"></a><span
-class="ec-lmss-8x-x-62">19</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">SubSystemClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">SubB</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127022r20"></a><span
-class="ec-lmss-8x-x-62">20</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actA</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActA</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127023r21"></a><span
-class="ec-lmss-8x-x-62">21</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actB</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActB</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127024r22"></a><span
-class="ec-lmss-8x-x-62">22</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127025r23"></a><span
-class="ec-lmss-8x-x-62">23</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">LogicalThread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">dflt</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127026r24"></a><span
-class="ec-lmss-8x-x-62">24</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">LogicalThread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127027r25"></a><span
-class="ec-lmss-8x-x-62">25</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actB</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127028r26"></a><span
-class="ec-lmss-8x-x-62">26</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127029r27"></a><span
-class="ec-lmss-8x-x-62">27</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127030r28"></a><span
-class="ec-lmss-8x-x-62">28</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActA</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127031r29"></a><span
-class="ec-lmss-8x-x-62">29</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Structure</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127032r30"></a><span
-class="ec-lmss-8x-x-62">30</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attribute</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">int</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127033r31"></a><span
-class="ec-lmss-8x-x-62">31</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actB1</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActB</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127034r32"></a><span
-class="ec-lmss-8x-x-62">32</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actB2</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActB</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127035r33"></a><span
-class="ec-lmss-8x-x-62">33</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127036r34"></a><span
-class="ec-lmss-8x-x-62">34</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127037r35"></a><span
-class="ec-lmss-8x-x-62">35</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127038r36"></a><span
-class="ec-lmss-8x-x-62">36</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActB</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127039r37"></a><span
-class="ec-lmss-8x-x-62">37</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Structure</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127040r38"></a><span
-class="ec-lmss-8x-x-62">38</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attribute</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">int</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127041r39"></a><span
-class="ec-lmss-8x-x-62">39</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actC1</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActC</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127042r40"></a><span
-class="ec-lmss-8x-x-62">40</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">actC2</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActC</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127043r41"></a><span
-class="ec-lmss-8x-x-62">41</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127044r42"></a><span
-class="ec-lmss-8x-x-62">42</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127045r43"></a><span
-class="ec-lmss-8x-x-62">43</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127046r44"></a><span
-class="ec-lmss-8x-x-62">44</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActC</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127047r45"></a><span
-class="ec-lmss-8x-x-62">45</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127048r46"></a><span
-class="ec-lmss-8x-x-62">46</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">PrimitiveType</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">int</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ptInteger</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">int</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">(</span><span
-class="ec-lmtt-9">Integer</span><span
-class="ec-lmtt-9">)</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">default</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">0</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-127049r47"></a><span
-class="ec-lmss-8x-x-62">47</span></span><span
-class="ec-lmtt-9">}</span>
-<br />
- <div class="caption"
-><span class="id">Listing&#x00A0;11.1:
- </span><span
-class="content">ROOM
- example
-
-
- code</span></div><!--tex4ht:label?: x67-12700011.2 -->
-</div>
-<!--l. 34--><p class="noindent" >When a <span id="textcolor63"><span
-class="ec-lmssbx-10">LogicalSystem</span></span> is instantiated then recursively all of the contained referenced elements are
-instantiated as instances of the corresponding class. Thus the instance tree of the above example looks like in
-figure <a
-href="#x67-1270505">11.5<!--tex4ht:ref: fig:instance_tree --></a> (the third line in the white boxes shows some mapping information, see section <a
-href="#x67-13000011.2.4">11.2.4<!--tex4ht:ref: sec:mapping_model --></a> <a
-href="#x67-13000011.2.4">The
-Mapping Model<!--tex4ht:ref: sec:mapping_model --></a>):
-</p>
-<hr class="figure" /><div class="figure"
->
-
-
-<a
- id="x67-1270505"></a><a
- id="x67-12800025"></a><a
- id="x67-12900011"></a><a
- id="x67-12900046"></a><a
- id="x67-13000017"></a>
-
-
-<!--l. 40--><p class="noindent" ><img
-src="images/080-instances.jpg" alt="PIC"
- />
-<br /> </p><div class="caption"
-><span class="id">Figure&#x00A0;11.5: </span><span
-class="content">Instances of a ROOM system</span></div><!--tex4ht:label?: x67-1270505 -->
-
-
-</div><hr class="endfigure" />
-<h4 class="subsectionHead"><span class="titlemark">11.2.2 </span> <a
- id="x67-12800011.2.2"></a>The Config Model</h4>
-<!--l. 47--><p class="noindent" >Once we have the ROOM class model we can configure values using the Config model. This can be done on
-the class level and/or on the instance level. Values defined for class attributes are used for all instances unless
-there is an instance value configured for the same attribute.
-</p>
-<!--l. 51--><div class="lstinputlisting">
-<a
- id="x67-128001r2"></a>
-<a
- id="x67-128002"></a>
-<span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128003r1"></a><span
-class="ec-lmss-8x-x-62">1</span></span><span
-class="ec-lmssbx-10x-x-90">ConfigModel</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128004r2"></a><span
-class="ec-lmss-8x-x-62">2</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128005r3"></a><span
-class="ec-lmss-8x-x-62">3</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">import</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">.*</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">from</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">room</span><span
-class="ec-lmtt-9">-</span><span
-class="ec-lmtt-9">example</span><span
-class="ec-lmtt-9">.</span><span
-class="ec-lmtt-9">room</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128006r4"></a><span
-class="ec-lmss-8x-x-62">4</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128007r5"></a><span
-class="ec-lmss-8x-x-62">5</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorClassConfig</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActA</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128008r6"></a><span
-class="ec-lmss-8x-x-62">6</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attr</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">1</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128009r7"></a><span
-class="ec-lmss-8x-x-62">7</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128010r8"></a><span
-class="ec-lmss-8x-x-62">8</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128011r9"></a><span
-class="ec-lmss-8x-x-62">9</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorClassConfig</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ActB</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128012r10"></a><span
-class="ec-lmss-8x-x-62">10</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attr</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">2</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128013r11"></a><span
-class="ec-lmss-8x-x-62">11</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128014r12"></a><span
-class="ec-lmss-8x-x-62">12</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128015r13"></a><span
-class="ec-lmss-8x-x-62">13</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceConfig</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">Main</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">subA</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">actA</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128016r14"></a><span
-class="ec-lmss-8x-x-62">14</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attr</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">12</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128017r15"></a><span
-class="ec-lmss-8x-x-62">15</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128018r16"></a><span
-class="ec-lmss-8x-x-62">16</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128019r17"></a><span
-class="ec-lmss-8x-x-62">17</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceConfig</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">Main</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">subA</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">actB</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128020r18"></a><span
-class="ec-lmss-8x-x-62">18</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attr</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">13</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128021r19"></a><span
-class="ec-lmss-8x-x-62">19</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128022r20"></a><span
-class="ec-lmss-8x-x-62">20</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128023r21"></a><span
-class="ec-lmss-8x-x-62">21</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ActorInstanceConfig</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">Main</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">subA</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">actA</span><span
-class="ec-lmtt-9">/</span><span
-class="ec-lmtt-9">actB2</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128024r22"></a><span
-class="ec-lmss-8x-x-62">22</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Attr</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">val</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">14</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128025r23"></a><span
-class="ec-lmss-8x-x-62">23</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-128026r24"></a><span
-class="ec-lmss-8x-x-62">24</span></span><span
-class="ec-lmtt-9">}</span>
-<br />
- <div class="caption"
-><span class="id">Listing&#x00A0;11.2:
- </span><span
-class="content">Config
- example
- code</span></div><!--tex4ht:label?: x67-12800011.2 -->
-</div>
-<!--l. 53--><p class="noindent" >
-</p>
-<h4 class="subsectionHead"><span class="titlemark">11.2.3 </span> <a
- id="x67-12900011.2.3"></a>The Physical Model</h4>
-<!--l. 55--><p class="noindent" >The physical model defines the physical resources onto which the logical system will be deployed. It is
-possible to define runtime classes which (currently) only define the overall execution model of the
-platform.
-</p>
-<!--l. 59--><div class="lstinputlisting">
-<a
- id="x67-129001r3"></a>
-<a
- id="x67-129002"></a>
-<span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129003r1"></a><span
-class="ec-lmss-8x-x-62">1</span></span><span
-class="ec-lmssbx-10x-x-90">PhysicalModel</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">runtimes</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129004r2"></a><span
-class="ec-lmss-8x-x-62">2</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129005r3"></a><span
-class="ec-lmss-8x-x-62">3</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">RuntimeClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">PCRuntime</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129006r4"></a><span
-class="ec-lmss-8x-x-62">4</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">model</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">multiThreaded</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129007r5"></a><span
-class="ec-lmss-8x-x-62">5</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129008r6"></a><span
-class="ec-lmss-8x-x-62">6</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129009r7"></a><span
-class="ec-lmss-8x-x-62">7</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">RuntimeClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">MSP430Runtime</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129010r8"></a><span
-class="ec-lmss-8x-x-62">8</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">model</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">singleThreaded</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129011r9"></a><span
-class="ec-lmss-8x-x-62">9</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129012r10"></a><span
-class="ec-lmss-8x-x-62">10</span></span><span
-class="ec-lmtt-9">}</span>
-<br />
- <div class="caption"
-><span class="id">Listing&#x00A0;11.3:
- </span><span
-class="content">etPhys
- runtime
- definition</span></div><!--tex4ht:label?: x67-12900011.2 -->
-</div>
-<!--l. 61--><p class="noindent" >The <span id="textcolor64"><span
-class="ec-lmssbx-10">PhysicalSystem</span></span> is composed of <span id="textcolor65"><span
-class="ec-lmssbx-10">NodeRef</span></span>erences which are instances of <span id="textcolor66"><span
-class="ec-lmssbx-10">NodeClass</span></span>es. Each <span id="textcolor67"><span
-class="ec-lmssbx-10">NodeClass</span></span>
-is referencing a <span id="textcolor68"><span
-class="ec-lmssbx-10">RuntimeClass</span></span> and is defining <span id="textcolor69"><span
-class="ec-lmssbx-10">Threads</span></span>.
-</p>
-<!--l. 65--><div class="lstinputlisting">
-<a
- id="x67-129013r4"></a>
-<a
- id="x67-129014"></a>
-<span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129015r1"></a><span
-class="ec-lmss-8x-x-62">1</span></span><span
-class="ec-lmssbx-10x-x-90">PhysicalModel</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129016r2"></a><span
-class="ec-lmss-8x-x-62">2</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129017r3"></a><span
-class="ec-lmss-8x-x-62">3</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">import</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">.*</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">from</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">etphys</span><span
-class="ec-lmtt-9">-</span><span
-class="ec-lmtt-9">runtimes</span><span
-class="ec-lmtt-9">.</span><span
-class="ec-lmtt-9">etphys</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129018r4"></a><span
-class="ec-lmss-8x-x-62">4</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129019r5"></a><span
-class="ec-lmss-8x-x-62">5</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">PhysicalSystem</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">MainPhys</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129020r6"></a><span
-class="ec-lmss-8x-x-62">6</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">NodeRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">pc1</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">PC_Node</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129021r7"></a><span
-class="ec-lmss-8x-x-62">7</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">NodeRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">pc2</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">PC_Node</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129022r8"></a><span
-class="ec-lmss-8x-x-62">8</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">NodeRef</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">mc</span><span
-class="ec-lmtt-9">:</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">MSP430_Node</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129023r9"></a><span
-class="ec-lmss-8x-x-62">9</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129024r10"></a><span
-class="ec-lmss-8x-x-62">10</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129025r11"></a><span
-class="ec-lmss-8x-x-62">11</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">NodeClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">PC_Node</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129026r12"></a><span
-class="ec-lmss-8x-x-62">12</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">runtime</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">runtimes</span><span
-class="ec-lmtt-9">.</span><span
-class="ec-lmtt-9">PCRuntime</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129027r13"></a><span
-class="ec-lmss-8x-x-62">13</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">priomin</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">1</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129028r14"></a><span
-class="ec-lmss-8x-x-62">14</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">priomax</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">10</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129029r15"></a><span
-class="ec-lmss-8x-x-62">15</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">DefaultThread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">thread1</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129030r16"></a><span
-class="ec-lmss-8x-x-62">16</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">execmode</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">blocked</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129031r17"></a><span
-class="ec-lmss-8x-x-62">17</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">prio</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">10</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129032r18"></a><span
-class="ec-lmss-8x-x-62">18</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">stacksize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">1024</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129033r19"></a><span
-class="ec-lmss-8x-x-62">19</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">msgblocksize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">64</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129034r20"></a><span
-class="ec-lmss-8x-x-62">20</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">msgpoolsize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">50</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129035r21"></a><span
-class="ec-lmss-8x-x-62">21</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129036r22"></a><span
-class="ec-lmss-8x-x-62">22</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Thread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">thread2</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129037r23"></a><span
-class="ec-lmss-8x-x-62">23</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">execmode</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">polled</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129038r24"></a><span
-class="ec-lmss-8x-x-62">24</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">interval</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">1</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">ms</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129039r25"></a><span
-class="ec-lmss-8x-x-62">25</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">prio</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">10</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129040r26"></a><span
-class="ec-lmss-8x-x-62">26</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">stacksize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">1024</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129041r27"></a><span
-class="ec-lmss-8x-x-62">27</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">msgblocksize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">64</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129042r28"></a><span
-class="ec-lmss-8x-x-62">28</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">msgpoolsize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">50</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129043r29"></a><span
-class="ec-lmss-8x-x-62">29</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129044r30"></a><span
-class="ec-lmss-8x-x-62">30</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129045r31"></a><span
-class="ec-lmss-8x-x-62">31</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129046r32"></a><span
-class="ec-lmss-8x-x-62">32</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">NodeClass</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">MSP430_Node</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129047r33"></a><span
-class="ec-lmss-8x-x-62">33</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">runtime</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">runtimes</span><span
-class="ec-lmtt-9">.</span><span
-class="ec-lmtt-9">MSP430Runtime</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129048r34"></a><span
-class="ec-lmss-8x-x-62">34</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">priomin</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">1</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129049r35"></a><span
-class="ec-lmss-8x-x-62">35</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">priomax</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">10</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129050r36"></a><span
-class="ec-lmss-8x-x-62">36</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">DefaultThread</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">main</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129051r37"></a><span
-class="ec-lmss-8x-x-62">37</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">execmode</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">polled</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129052r38"></a><span
-class="ec-lmss-8x-x-62">38</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">interval</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">10</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">us</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129053r39"></a><span
-class="ec-lmss-8x-x-62">39</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">prio</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">10</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129054r40"></a><span
-class="ec-lmss-8x-x-62">40</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">stacksize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">256</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129055r41"></a><span
-class="ec-lmss-8x-x-62">41</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">msgblocksize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">64</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129056r42"></a><span
-class="ec-lmss-8x-x-62">42</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">msgpoolsize</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">=</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">50</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129057r43"></a><span
-class="ec-lmss-8x-x-62">43</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129058r44"></a><span
-class="ec-lmss-8x-x-62">44</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-129059r45"></a><span
-class="ec-lmss-8x-x-62">45</span></span><span
-class="ec-lmtt-9">}</span>
-
-
-<br />
- <div class="caption"
-><span class="id">Listing&#x00A0;11.4:
- </span><span
-class="content">etPhys
- example
- code</span></div><!--tex4ht:label?: x67-12900011.2 -->
-</div>
-<!--l. 67--><p class="noindent" >
-</p>
-<h4 class="subsectionHead"><span class="titlemark">11.2.4 </span> <a
- id="x67-13000011.2.4"></a>The Mapping Model</h4>
-<!--l. 70--><p class="noindent" >The last model finally combines all this information by mapping logical to physical entities.
-</p>
-<!--l. 72--><div class="lstinputlisting">
-<a
- id="x67-130001r5"></a>
-<a
- id="x67-130002"></a>
-<span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130003r1"></a><span
-class="ec-lmss-8x-x-62">1</span></span><span
-class="ec-lmssbx-10x-x-90">MappingModel</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130004r2"></a><span
-class="ec-lmss-8x-x-62">2</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130005r3"></a><span
-class="ec-lmss-8x-x-62">3</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">import</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">.*</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">from</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">etphys</span><span
-class="ec-lmtt-9">-</span><span
-class="ec-lmtt-9">example</span><span
-class="ec-lmtt-9">.</span><span
-class="ec-lmtt-9">etphys</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130006r4"></a><span
-class="ec-lmss-8x-x-62">4</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">import</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">test</span><span
-class="ec-lmtt-9">.*</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">from</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">room</span><span
-class="ec-lmtt-9">-</span><span
-class="ec-lmtt-9">example</span><span
-class="ec-lmtt-9">.</span><span
-class="ec-lmtt-9">room</span><span
-class="ec-lmtt-9">"</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130007r5"></a><span
-class="ec-lmss-8x-x-62">5</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130008r6"></a><span
-class="ec-lmss-8x-x-62">6</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">Mapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">Main</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">MainPhys</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130009r7"></a><span
-class="ec-lmss-8x-x-62">7</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">SubSystemMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">subA</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">pc1</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130010r8"></a><span
-class="ec-lmss-8x-x-62">8</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ThreadMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">dflt</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">thread1</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130011r9"></a><span
-class="ec-lmss-8x-x-62">9</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ThreadMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">thread2</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130012r10"></a><span
-class="ec-lmss-8x-x-62">10</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130013r11"></a><span
-class="ec-lmss-8x-x-62">11</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmssbx-10x-x-90">SubSystemMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">subB</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">mc</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">{</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130014r12"></a><span
-class="ec-lmss-8x-x-62">12</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ThreadMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">dflt</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">main</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130015r13"></a><span
-class="ec-lmss-8x-x-62">13</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">ThreadMapping</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">extra</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">-&#x003E;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">main</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130016r14"></a><span
-class="ec-lmss-8x-x-62">14</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130017r15"></a><span
-class="ec-lmss-8x-x-62">15</span></span><span
-class="ec-lmtt-9">&#x00A0;</span><span
-class="ec-lmtt-9">}</span><span
-class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
- id="x67-130018r16"></a><span
-class="ec-lmss-8x-x-62">16</span></span><span
-class="ec-lmtt-9">}</span>
-<br />
- <div class="caption"
-><span class="id">Listing&#x00A0;11.5:
- </span><span
-class="content">etMap
- example
- code</span></div><!--tex4ht:label?: x67-13000011.2 -->
-</div>
-<!--l. 74--><p class="noindent" >The result of the mapping is also depicted in above tree diagram (figure <a
-href="#x67-1270505">11.5<!--tex4ht:ref: fig:instance_tree --></a>) of the instances. All actor
-instances (the white boxes) are mapped to a node and a thread running on this node (shown as @<span
-class="ec-lmsso-10">node </span>:
-<span
+<link rel="stylesheet" type="text/css" href="etrice-doc.css" />
+</head><body
+>
+<!--l. 1--><div class="crosslinks"><p class="noindent">[<a
+href="etrice-docch12.html" >next</a>] [<a
+href="etrice-docse53.html" >prev</a>] [<a
+href="etrice-docse53.html#tailetrice-docse53.html" >prev-tail</a>] [<a
+href="#tailetrice-docse54.html">tail</a>] [<a
+href="etrice-docch11.html#etrice-docse54.html" >up</a>] </p></div>
+<h3 class="sectionHead"><span class="titlemark">11.2 </span> <a
+ id="x67-12600011.2"></a>eTrice Models and Their Relations</h3>
+<!--l. 3--><p class="noindent" >eTrice comprises several models:
+</p>
+ <ul class="itemize1">
+ <li class="itemize">the ROOM model (*.room) &#8211; defines model classes and the logical structure of the model
+ </li>
+ <li class="itemize">the Config model (*.config) &#8211; defines configuration values for attributes
+ </li>
+ <li class="itemize">the Physical model (*.etphys) &#8211; defines the structure and properties of the physical system
+ </li>
+ <li class="itemize">the Mapping model (*.etmap) &#8211; defines a mapping from logical elements to physical elements</li></ul>
+<!--l. 12--><p class="noindent" >In the following diagram the models and their relations are depicted. The meaning of the arrows is:
+uses/references.
+</p><!--l. 15--><p class="noindent" ><img
+src="images/080-models.jpg" alt="PIC"
+ />
+</p><!--l. 17--><p class="noindent" >In the following sections we will describe those models with emphasis of their cross relations.
+</p><!--l. 19--><p class="noindent" >
+</p>
+<h4 class="subsectionHead"><span class="titlemark">11.2.1 </span> <a
+ id="x67-12700011.2.1"></a>The ROOM Model</h4>
+<!--l. 21--><p class="noindent" >The ROOM model defines <span id="textcolor52"><span
+class="ec-lmssbx-10">DataClass</span></span>es, <span id="textcolor53"><span
+class="ec-lmssbx-10">ProtocolClass</span></span>es, <span id="textcolor54"><span
+class="ec-lmssbx-10">ActorClass</span></span>es, <span id="textcolor55"><span
+class="ec-lmssbx-10">SubSystemClass</span></span>es and
+<span id="textcolor56"><span
+class="ec-lmssbx-10">LogicalSystem</span></span>s. Thereby the three latter form a hierarchy. The <span id="textcolor57"><span
+class="ec-lmssbx-10">LogicalSystem</span></span> is the top level element of the
+structure. It contains references to <span id="textcolor58"><span
+class="ec-lmssbx-10">SubSystemClass</span></span> elements. The <span id="textcolor59"><span
+class="ec-lmssbx-10">SubSystemClass</span></span> in turn contains
+references to <span id="textcolor60"><span
+class="ec-lmssbx-10">ActorClass</span></span> elements which again contain (recursively) references to <span id="textcolor61"><span
+class="ec-lmssbx-10">ActorClass</span></span> elements. The
+complete structural hierarchy implies a tree which has the <span id="textcolor62"><span
+class="ec-lmssbx-10">LogicalSystem</span></span> as root and where each reference
+stands for a new node with possibly further branches.
+</p><!--l. 29--><p class="noindent" >Let&#8217;s consider a simple example. It doesn&#8217;t implement anything meaningful and completely omits behavioral
+and other aspects.
+</p>
+<!--l. 32--><div class="lstinputlisting">
+<a
+ id="x67-127001r1"></a>
+<a
+ id="x67-127002"></a>
+<span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127003r1"></a><span
+class="ec-lmss-8x-x-62">1</span></span><span
+class="ec-lmssbx-10x-x-90">RoomModel</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127004r2"></a><span
+class="ec-lmss-8x-x-62">2</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">LogicalSystem</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">Main</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127005r3"></a><span
+class="ec-lmss-8x-x-62">3</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">SubSystemRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">subA</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">SubA</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127006r4"></a><span
+class="ec-lmss-8x-x-62">4</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">SubSystemRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">subB</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">SubB</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127007r5"></a><span
+class="ec-lmss-8x-x-62">5</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127008r6"></a><span
+class="ec-lmss-8x-x-62">6</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127009r7"></a><span
+class="ec-lmss-8x-x-62">7</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">SubSystemClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">SubA</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127010r8"></a><span
+class="ec-lmss-8x-x-62">8</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actA</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActA</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127011r9"></a><span
+class="ec-lmss-8x-x-62">9</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actB</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActB</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127012r10"></a><span
+class="ec-lmss-8x-x-62">10</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127013r11"></a><span
+class="ec-lmss-8x-x-62">11</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">LogicalThread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">dflt</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127014r12"></a><span
+class="ec-lmss-8x-x-62">12</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">LogicalThread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127015r13"></a><span
+class="ec-lmss-8x-x-62">13</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actA</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">actB1</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127016r14"></a><span
+class="ec-lmss-8x-x-62">14</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actC1</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">dflt</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127017r15"></a><span
+class="ec-lmss-8x-x-62">15</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127018r16"></a><span
+class="ec-lmss-8x-x-62">16</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actA</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">actB2</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127019r17"></a><span
+class="ec-lmss-8x-x-62">17</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127020r18"></a><span
+class="ec-lmss-8x-x-62">18</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127021r19"></a><span
+class="ec-lmss-8x-x-62">19</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">SubSystemClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">SubB</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127022r20"></a><span
+class="ec-lmss-8x-x-62">20</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actA</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActA</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127023r21"></a><span
+class="ec-lmss-8x-x-62">21</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actB</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActB</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127024r22"></a><span
+class="ec-lmss-8x-x-62">22</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127025r23"></a><span
+class="ec-lmss-8x-x-62">23</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">LogicalThread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">dflt</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127026r24"></a><span
+class="ec-lmss-8x-x-62">24</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">LogicalThread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127027r25"></a><span
+class="ec-lmss-8x-x-62">25</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actB</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127028r26"></a><span
+class="ec-lmss-8x-x-62">26</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127029r27"></a><span
+class="ec-lmss-8x-x-62">27</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127030r28"></a><span
+class="ec-lmss-8x-x-62">28</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActA</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127031r29"></a><span
+class="ec-lmss-8x-x-62">29</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Structure</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127032r30"></a><span
+class="ec-lmss-8x-x-62">30</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attribute</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">int</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127033r31"></a><span
+class="ec-lmss-8x-x-62">31</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actB1</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActB</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127034r32"></a><span
+class="ec-lmss-8x-x-62">32</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actB2</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActB</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127035r33"></a><span
+class="ec-lmss-8x-x-62">33</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127036r34"></a><span
+class="ec-lmss-8x-x-62">34</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127037r35"></a><span
+class="ec-lmss-8x-x-62">35</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127038r36"></a><span
+class="ec-lmss-8x-x-62">36</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActB</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127039r37"></a><span
+class="ec-lmss-8x-x-62">37</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Structure</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127040r38"></a><span
+class="ec-lmss-8x-x-62">38</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attribute</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">int</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127041r39"></a><span
+class="ec-lmss-8x-x-62">39</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actC1</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActC</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127042r40"></a><span
+class="ec-lmss-8x-x-62">40</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">actC2</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActC</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127043r41"></a><span
+class="ec-lmss-8x-x-62">41</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127044r42"></a><span
+class="ec-lmss-8x-x-62">42</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127045r43"></a><span
+class="ec-lmss-8x-x-62">43</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127046r44"></a><span
+class="ec-lmss-8x-x-62">44</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActC</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127047r45"></a><span
+class="ec-lmss-8x-x-62">45</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127048r46"></a><span
+class="ec-lmss-8x-x-62">46</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">PrimitiveType</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">int</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ptInteger</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">int</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">(</span><span
+class="ec-lmtt-9">Integer</span><span
+class="ec-lmtt-9">)</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">default</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">0</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-127049r47"></a><span
+class="ec-lmss-8x-x-62">47</span></span><span
+class="ec-lmtt-9">}</span>
+<br />
+ <div class="caption"
+><span class="id">Listing&#x00A0;11.1:
+ </span><span
+class="content">ROOM
+ example
+
+
+ code</span></div><!--tex4ht:label?: x67-12700011.2 -->
+</div>
+<!--l. 34--><p class="noindent" >When a <span id="textcolor63"><span
+class="ec-lmssbx-10">LogicalSystem</span></span> is instantiated then recursively all of the contained referenced elements are
+instantiated as instances of the corresponding class. Thus the instance tree of the above example looks like in
+figure <a
+href="#x67-1270505">11.5<!--tex4ht:ref: fig:instance_tree --></a> (the third line in the white boxes shows some mapping information, see section <a
+href="#x67-13000011.2.4">11.2.4<!--tex4ht:ref: sec:mapping_model --></a> <a
+href="#x67-13000011.2.4">The
+Mapping Model<!--tex4ht:ref: sec:mapping_model --></a>):
+</p>
+<hr class="figure" /><div class="figure"
+>
+
+
+<a
+ id="x67-1270505"></a><a
+ id="x67-12800025"></a><a
+ id="x67-12900011"></a><a
+ id="x67-12900046"></a><a
+ id="x67-13000017"></a>
+
+
+<!--l. 40--><p class="noindent" ><img
+src="images/080-instances.jpg" alt="PIC"
+ />
+<br /> </p><div class="caption"
+><span class="id">Figure&#x00A0;11.5: </span><span
+class="content">Instances of a ROOM system</span></div><!--tex4ht:label?: x67-1270505 -->
+
+
+</div><hr class="endfigure" />
+<h4 class="subsectionHead"><span class="titlemark">11.2.2 </span> <a
+ id="x67-12800011.2.2"></a>The Config Model</h4>
+<!--l. 47--><p class="noindent" >Once we have the ROOM class model we can configure values using the Config model. This can be done on
+the class level and/or on the instance level. Values defined for class attributes are used for all instances unless
+there is an instance value configured for the same attribute.
+</p>
+<!--l. 51--><div class="lstinputlisting">
+<a
+ id="x67-128001r2"></a>
+<a
+ id="x67-128002"></a>
+<span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128003r1"></a><span
+class="ec-lmss-8x-x-62">1</span></span><span
+class="ec-lmssbx-10x-x-90">ConfigModel</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128004r2"></a><span
+class="ec-lmss-8x-x-62">2</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128005r3"></a><span
+class="ec-lmss-8x-x-62">3</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">import</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">.*</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">from</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">room</span><span
+class="ec-lmtt-9">-</span><span
+class="ec-lmtt-9">example</span><span
+class="ec-lmtt-9">.</span><span
+class="ec-lmtt-9">room</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128006r4"></a><span
+class="ec-lmss-8x-x-62">4</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128007r5"></a><span
+class="ec-lmss-8x-x-62">5</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorClassConfig</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActA</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128008r6"></a><span
+class="ec-lmss-8x-x-62">6</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attr</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">1</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128009r7"></a><span
+class="ec-lmss-8x-x-62">7</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128010r8"></a><span
+class="ec-lmss-8x-x-62">8</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128011r9"></a><span
+class="ec-lmss-8x-x-62">9</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorClassConfig</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ActB</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128012r10"></a><span
+class="ec-lmss-8x-x-62">10</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attr</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">2</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128013r11"></a><span
+class="ec-lmss-8x-x-62">11</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128014r12"></a><span
+class="ec-lmss-8x-x-62">12</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128015r13"></a><span
+class="ec-lmss-8x-x-62">13</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceConfig</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">Main</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">subA</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">actA</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128016r14"></a><span
+class="ec-lmss-8x-x-62">14</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attr</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">12</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128017r15"></a><span
+class="ec-lmss-8x-x-62">15</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128018r16"></a><span
+class="ec-lmss-8x-x-62">16</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128019r17"></a><span
+class="ec-lmss-8x-x-62">17</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceConfig</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">Main</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">subA</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">actB</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128020r18"></a><span
+class="ec-lmss-8x-x-62">18</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attr</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">13</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128021r19"></a><span
+class="ec-lmss-8x-x-62">19</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128022r20"></a><span
+class="ec-lmss-8x-x-62">20</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128023r21"></a><span
+class="ec-lmss-8x-x-62">21</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ActorInstanceConfig</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">Main</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">subA</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">actA</span><span
+class="ec-lmtt-9">/</span><span
+class="ec-lmtt-9">actB2</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128024r22"></a><span
+class="ec-lmss-8x-x-62">22</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Attr</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">val</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">14</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128025r23"></a><span
+class="ec-lmss-8x-x-62">23</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-128026r24"></a><span
+class="ec-lmss-8x-x-62">24</span></span><span
+class="ec-lmtt-9">}</span>
+<br />
+ <div class="caption"
+><span class="id">Listing&#x00A0;11.2:
+ </span><span
+class="content">Config
+ example
+ code</span></div><!--tex4ht:label?: x67-12800011.2 -->
+</div>
+<!--l. 53--><p class="noindent" >
+</p>
+<h4 class="subsectionHead"><span class="titlemark">11.2.3 </span> <a
+ id="x67-12900011.2.3"></a>The Physical Model</h4>
+<!--l. 55--><p class="noindent" >The physical model defines the physical resources onto which the logical system will be deployed. It is
+possible to define runtime classes which (currently) only define the overall execution model of the
+platform.
+</p>
+<!--l. 59--><div class="lstinputlisting">
+<a
+ id="x67-129001r3"></a>
+<a
+ id="x67-129002"></a>
+<span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129003r1"></a><span
+class="ec-lmss-8x-x-62">1</span></span><span
+class="ec-lmssbx-10x-x-90">PhysicalModel</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">runtimes</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129004r2"></a><span
+class="ec-lmss-8x-x-62">2</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129005r3"></a><span
+class="ec-lmss-8x-x-62">3</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">RuntimeClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">PCRuntime</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129006r4"></a><span
+class="ec-lmss-8x-x-62">4</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">model</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">multiThreaded</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129007r5"></a><span
+class="ec-lmss-8x-x-62">5</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129008r6"></a><span
+class="ec-lmss-8x-x-62">6</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129009r7"></a><span
+class="ec-lmss-8x-x-62">7</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">RuntimeClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">MSP430Runtime</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129010r8"></a><span
+class="ec-lmss-8x-x-62">8</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">model</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">singleThreaded</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129011r9"></a><span
+class="ec-lmss-8x-x-62">9</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129012r10"></a><span
+class="ec-lmss-8x-x-62">10</span></span><span
+class="ec-lmtt-9">}</span>
+<br />
+ <div class="caption"
+><span class="id">Listing&#x00A0;11.3:
+ </span><span
+class="content">etPhys
+ runtime
+ definition</span></div><!--tex4ht:label?: x67-12900011.2 -->
+</div>
+<!--l. 61--><p class="noindent" >The <span id="textcolor64"><span
+class="ec-lmssbx-10">PhysicalSystem</span></span> is composed of <span id="textcolor65"><span
+class="ec-lmssbx-10">NodeRef</span></span>erences which are instances of <span id="textcolor66"><span
+class="ec-lmssbx-10">NodeClass</span></span>es. Each <span id="textcolor67"><span
+class="ec-lmssbx-10">NodeClass</span></span>
+is referencing a <span id="textcolor68"><span
+class="ec-lmssbx-10">RuntimeClass</span></span> and is defining <span id="textcolor69"><span
+class="ec-lmssbx-10">Threads</span></span>.
+</p>
+<!--l. 65--><div class="lstinputlisting">
+<a
+ id="x67-129013r4"></a>
+<a
+ id="x67-129014"></a>
+<span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129015r1"></a><span
+class="ec-lmss-8x-x-62">1</span></span><span
+class="ec-lmssbx-10x-x-90">PhysicalModel</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129016r2"></a><span
+class="ec-lmss-8x-x-62">2</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129017r3"></a><span
+class="ec-lmss-8x-x-62">3</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">import</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">.*</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">from</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">etphys</span><span
+class="ec-lmtt-9">-</span><span
+class="ec-lmtt-9">runtimes</span><span
+class="ec-lmtt-9">.</span><span
+class="ec-lmtt-9">etphys</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129018r4"></a><span
+class="ec-lmss-8x-x-62">4</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129019r5"></a><span
+class="ec-lmss-8x-x-62">5</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">PhysicalSystem</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">MainPhys</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129020r6"></a><span
+class="ec-lmss-8x-x-62">6</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">NodeRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">pc1</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">PC_Node</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129021r7"></a><span
+class="ec-lmss-8x-x-62">7</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">NodeRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">pc2</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">PC_Node</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129022r8"></a><span
+class="ec-lmss-8x-x-62">8</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">NodeRef</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">mc</span><span
+class="ec-lmtt-9">:</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">MSP430_Node</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129023r9"></a><span
+class="ec-lmss-8x-x-62">9</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129024r10"></a><span
+class="ec-lmss-8x-x-62">10</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129025r11"></a><span
+class="ec-lmss-8x-x-62">11</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">NodeClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">PC_Node</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129026r12"></a><span
+class="ec-lmss-8x-x-62">12</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">runtime</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">runtimes</span><span
+class="ec-lmtt-9">.</span><span
+class="ec-lmtt-9">PCRuntime</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129027r13"></a><span
+class="ec-lmss-8x-x-62">13</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">priomin</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">1</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129028r14"></a><span
+class="ec-lmss-8x-x-62">14</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">priomax</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">10</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129029r15"></a><span
+class="ec-lmss-8x-x-62">15</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">DefaultThread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">thread1</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129030r16"></a><span
+class="ec-lmss-8x-x-62">16</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">execmode</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">blocked</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129031r17"></a><span
+class="ec-lmss-8x-x-62">17</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">prio</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">10</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129032r18"></a><span
+class="ec-lmss-8x-x-62">18</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">stacksize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">1024</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129033r19"></a><span
+class="ec-lmss-8x-x-62">19</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">msgblocksize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">64</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129034r20"></a><span
+class="ec-lmss-8x-x-62">20</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">msgpoolsize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">50</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129035r21"></a><span
+class="ec-lmss-8x-x-62">21</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129036r22"></a><span
+class="ec-lmss-8x-x-62">22</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Thread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">thread2</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129037r23"></a><span
+class="ec-lmss-8x-x-62">23</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">execmode</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">polled</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129038r24"></a><span
+class="ec-lmss-8x-x-62">24</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">interval</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">1</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">ms</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129039r25"></a><span
+class="ec-lmss-8x-x-62">25</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">prio</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">10</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129040r26"></a><span
+class="ec-lmss-8x-x-62">26</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">stacksize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">1024</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129041r27"></a><span
+class="ec-lmss-8x-x-62">27</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">msgblocksize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">64</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129042r28"></a><span
+class="ec-lmss-8x-x-62">28</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">msgpoolsize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">50</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129043r29"></a><span
+class="ec-lmss-8x-x-62">29</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129044r30"></a><span
+class="ec-lmss-8x-x-62">30</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129045r31"></a><span
+class="ec-lmss-8x-x-62">31</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129046r32"></a><span
+class="ec-lmss-8x-x-62">32</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">NodeClass</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">MSP430_Node</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129047r33"></a><span
+class="ec-lmss-8x-x-62">33</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">runtime</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">runtimes</span><span
+class="ec-lmtt-9">.</span><span
+class="ec-lmtt-9">MSP430Runtime</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129048r34"></a><span
+class="ec-lmss-8x-x-62">34</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">priomin</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">1</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129049r35"></a><span
+class="ec-lmss-8x-x-62">35</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">priomax</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">10</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129050r36"></a><span
+class="ec-lmss-8x-x-62">36</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">DefaultThread</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">main</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129051r37"></a><span
+class="ec-lmss-8x-x-62">37</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">execmode</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">polled</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129052r38"></a><span
+class="ec-lmss-8x-x-62">38</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">interval</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">10</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">us</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129053r39"></a><span
+class="ec-lmss-8x-x-62">39</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">prio</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">10</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129054r40"></a><span
+class="ec-lmss-8x-x-62">40</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">stacksize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">256</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129055r41"></a><span
+class="ec-lmss-8x-x-62">41</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">msgblocksize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">64</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129056r42"></a><span
+class="ec-lmss-8x-x-62">42</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">msgpoolsize</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">=</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">50</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129057r43"></a><span
+class="ec-lmss-8x-x-62">43</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129058r44"></a><span
+class="ec-lmss-8x-x-62">44</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-129059r45"></a><span
+class="ec-lmss-8x-x-62">45</span></span><span
+class="ec-lmtt-9">}</span>
+
+
+<br />
+ <div class="caption"
+><span class="id">Listing&#x00A0;11.4:
+ </span><span
+class="content">etPhys
+ example
+ code</span></div><!--tex4ht:label?: x67-12900011.2 -->
+</div>
+<!--l. 67--><p class="noindent" >
+</p>
+<h4 class="subsectionHead"><span class="titlemark">11.2.4 </span> <a
+ id="x67-13000011.2.4"></a>The Mapping Model</h4>
+<!--l. 70--><p class="noindent" >The last model finally combines all this information by mapping logical to physical entities.
+</p>
+<!--l. 72--><div class="lstinputlisting">
+<a
+ id="x67-130001r5"></a>
+<a
+ id="x67-130002"></a>
+<span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130003r1"></a><span
+class="ec-lmss-8x-x-62">1</span></span><span
+class="ec-lmssbx-10x-x-90">MappingModel</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130004r2"></a><span
+class="ec-lmss-8x-x-62">2</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130005r3"></a><span
+class="ec-lmss-8x-x-62">3</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">import</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">.*</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">from</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">etphys</span><span
+class="ec-lmtt-9">-</span><span
+class="ec-lmtt-9">example</span><span
+class="ec-lmtt-9">.</span><span
+class="ec-lmtt-9">etphys</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130006r4"></a><span
+class="ec-lmss-8x-x-62">4</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">import</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">test</span><span
+class="ec-lmtt-9">.*</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">from</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">room</span><span
+class="ec-lmtt-9">-</span><span
+class="ec-lmtt-9">example</span><span
+class="ec-lmtt-9">.</span><span
+class="ec-lmtt-9">room</span><span
+class="ec-lmtt-9">"</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130007r5"></a><span
+class="ec-lmss-8x-x-62">5</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130008r6"></a><span
+class="ec-lmss-8x-x-62">6</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">Mapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">Main</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">MainPhys</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130009r7"></a><span
+class="ec-lmss-8x-x-62">7</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">SubSystemMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">subA</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">pc1</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130010r8"></a><span
+class="ec-lmss-8x-x-62">8</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ThreadMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">dflt</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">thread1</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130011r9"></a><span
+class="ec-lmss-8x-x-62">9</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ThreadMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">thread2</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130012r10"></a><span
+class="ec-lmss-8x-x-62">10</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130013r11"></a><span
+class="ec-lmss-8x-x-62">11</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmssbx-10x-x-90">SubSystemMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">subB</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">mc</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">{</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130014r12"></a><span
+class="ec-lmss-8x-x-62">12</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ThreadMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">dflt</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">main</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130015r13"></a><span
+class="ec-lmss-8x-x-62">13</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">ThreadMapping</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">extra</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">-&#x003E;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">main</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130016r14"></a><span
+class="ec-lmss-8x-x-62">14</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130017r15"></a><span
+class="ec-lmss-8x-x-62">15</span></span><span
+class="ec-lmtt-9">&#x00A0;</span><span
+class="ec-lmtt-9">}</span><span
+class="ec-lmtt-9">&#x00A0;</span><br /><span class="label"><a
+ id="x67-130018r16"></a><span
+class="ec-lmss-8x-x-62">16</span></span><span
+class="ec-lmtt-9">}</span>
+<br />
+ <div class="caption"
+><span class="id">Listing&#x00A0;11.5:
+ </span><span
+class="content">etMap
+ example
+ code</span></div><!--tex4ht:label?: x67-13000011.2 -->
+</div>
+<!--l. 74--><p class="noindent" >The result of the mapping is also depicted in above tree diagram (figure <a
+href="#x67-1270505">11.5<!--tex4ht:ref: fig:instance_tree --></a>) of the instances. All actor
+instances (the white boxes) are mapped to a node and a thread running on this node (shown as @<span
+class="ec-lmsso-10">node </span>:
+<span
<<<<<<< Upstream, based on branch 'master' of ssh://hrentzreich@git.eclipse.org:29418/etrice/org.eclipse.etrice.git
-class="ec-lmsso-10">thread</span>).
-
-
-
-
-
-
+class="ec-lmsso-10">thread</span>).
+
+
+
+
+
+
=======
-class="ec-lmtt-10">executeTransitionChain </span>method. Finally the history of the state where the chain ends is entered and all
-entry codes are executed by <span
-class="ec-lmtt-10">enterHistory</span>.
-</p><!--l. 300--><p class="noindent" >
-</p>
-<h5 class="subsubsectionHead"><a
- id="x70-15600014.2.4"></a>The Java Generator</h5>
-<!--l. 302--><p class="noindent" >The Java generator employs the generic parts of the generator. The <span
-class="ec-lmtt-10">JavaTranslationProvider</span>
-is very simple and only handles the case of sending a message from a distinct replicated port:
-<span
-class="ec-lmtt-10">replPort[2].message()</span>. Other cases are handled by the base class by returning the original
-text.
-</p><!--l. 306--><p class="noindent" >The <span
-class="ec-lmtt-10">DataClassGen </span>uses Java inheritance for the generated data classes. Otherwise it is pretty much straight
-forward.
-</p><!--l. 309--><p class="noindent" >The <span
-class="ec-lmtt-10">ProtocolClassGen </span>generates a class for the protocol with nested static classes for regular and
-conjugated ports and similar for replicated ports.
-</p><!--l. 312--><p class="noindent" >The <span
-class="ec-lmtt-10">ActorClassGen </span>uses Java inheritance for the generated actor classes. So ports, SAPs and attributes and
-detail code methods are inherited. Not inherited is the state machine implementation.
-</p><!--l. 315--><p class="noindent" >
-</p>
-<h5 class="subsubsectionHead"><a
- id="x70-15700014.2.4"></a>The ANSI-C Generator</h5>
-<!--l. 317--><p class="noindent" >The C generator translates data, protocol and actor classes into structs together with a set of methods
-that operate on them and receive a pointer to those data (called <span
-class="ec-lmtt-10">self </span>in analogy to the implicit
-C++ <span
-class="ec-lmtt-10">this </span>pointer). No dynamic memory allocation is employed. All actor instances are statically
-initialized. One of the design goals for the generated C code was an optimized footprint in terms of
-memory and performance to be able to utilize modeling with ROOM also for tiny low end micro
-controllers.
-</p><!--l. 324--><p class="noindent" >
-</p>
-<h5 class="subsubsectionHead"><a
- id="x70-15800014.2.4"></a>The Documentation Generator</h5>
-<!--l. 326--><p class="noindent" >The documentation generator creates documentation in LaTex format which can be converted into PDF and
-many other formats.
+class="ec-lmtt-10">executeTransitionChain </span>method. Finally the history of the state where the chain ends is entered and all
+entry codes are executed by <span
+class="ec-lmtt-10">enterHistory</span>.
+</p><!--l. 300--><p class="noindent" >
+</p>
+<h5 class="subsubsectionHead"><a
+ id="x70-15600014.2.4"></a>The Java Generator</h5>
+<!--l. 302--><p class="noindent" >The Java generator employs the generic parts of the generator. The <span
+class="ec-lmtt-10">JavaTranslationProvider</span>
+is very simple and only handles the case of sending a message from a distinct replicated port:
+<span
+class="ec-lmtt-10">replPort[2].message()</span>. Other cases are handled by the base class by returning the original
+text.
+</p><!--l. 306--><p class="noindent" >The <span
+class="ec-lmtt-10">DataClassGen </span>uses Java inheritance for the generated data classes. Otherwise it is pretty much straight
+forward.
+</p><!--l. 309--><p class="noindent" >The <span
+class="ec-lmtt-10">ProtocolClassGen </span>generates a class for the protocol with nested static classes for regular and
+conjugated ports and similar for replicated ports.
+</p><!--l. 312--><p class="noindent" >The <span
+class="ec-lmtt-10">ActorClassGen </span>uses Java inheritance for the generated actor classes. So ports, SAPs and attributes and
+detail code methods are inherited. Not inherited is the state machine implementation.
+</p><!--l. 315--><p class="noindent" >
+</p>
+<h5 class="subsubsectionHead"><a
+ id="x70-15700014.2.4"></a>The ANSI-C Generator</h5>
+<!--l. 317--><p class="noindent" >The C generator translates data, protocol and actor classes into structs together with a set of methods
+that operate on them and receive a pointer to those data (called <span
+class="ec-lmtt-10">self </span>in analogy to the implicit
+C++ <span
+class="ec-lmtt-10">this </span>pointer). No dynamic memory allocation is employed. All actor instances are statically
+initialized. One of the design goals for the generated C code was an optimized footprint in terms of
+memory and performance to be able to utilize modeling with ROOM also for tiny low end micro
+controllers.
+</p><!--l. 324--><p class="noindent" >
+</p>
+<h5 class="subsubsectionHead"><a
+ id="x70-15800014.2.4"></a>The Documentation Generator</h5>
+<!--l. 326--><p class="noindent" >The documentation generator creates documentation in LaTex format which can be converted into PDF and
+many other formats.
>>>>>>> 1fbdb27 [doc] fixed problem with colored eTrice in headings
-</p>
+</p>
<<<<<<< Upstream, based on branch 'master' of ssh://hrentzreich@git.eclipse.org:29418/etrice/org.eclipse.etrice.git
-<!--l. 1--><div class="crosslinks"><p class="noindent">[<a
-href="etrice-docch12.html" >next</a>] [<a
+<!--l. 1--><div class="crosslinks"><p class="noindent">[<a
+href="etrice-docch12.html" >next</a>] [<a
=======
-<!--l. 82--><div class="crosslinks"><p class="noindent">[<a
+<!--l. 82--><div class="crosslinks"><p class="noindent">[<a
>>>>>>> 1fbdb27 [doc] fixed problem with colored eTrice in headings
-href="etrice-docse53.html" >prev</a>] [<a
-href="etrice-docse53.html#tailetrice-docse53.html" >prev-tail</a>] [<a
-href="etrice-docse54.html" >front</a>] [<a
+href="etrice-docse53.html" >prev</a>] [<a
+href="etrice-docse53.html#tailetrice-docse53.html" >prev-tail</a>] [<a
+href="etrice-docse54.html" >front</a>] [<a
<<<<<<< Upstream, based on branch 'master' of ssh://hrentzreich@git.eclipse.org:29418/etrice/org.eclipse.etrice.git
-href="etrice-docch11.html#etrice-docse54.html" >up</a>] </p></div>
-<!--l. 1--><p class="noindent" ><a
- id="tailetrice-docse54.html"></a> </p>
+href="etrice-docch11.html#etrice-docse54.html" >up</a>] </p></div>
+<!--l. 1--><p class="noindent" ><a
+ id="tailetrice-docse54.html"></a> </p>
=======
-href="etrice-docch14.html#etrice-docse54.html" >up</a>] </p></div>
-<!--l. 82--><p class="noindent" ><a
- id="tailetrice-docse54.html"></a> </p>
+href="etrice-docch14.html#etrice-docse54.html" >up</a>] </p></div>
+<!--l. 82--><p class="noindent" ><a
+ id="tailetrice-docse54.html"></a> </p>
>>>>>>> 1fbdb27 [doc] fixed problem with colored eTrice in headings
-</body></html>
+</body></html>

Back to the top