blob: 62e301f614c5f71e4a09c43d29ff288e684db6f7 [file] [log] [blame]
<?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>Dynamic Actors 4</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" />
<meta name="date" content="2014-03-31 09:04:00" />
<link rel="stylesheet" type="text/css" href="etrice-doc.css" />
</head><body
>
<!--l. 204--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse14.html" >next</a>] [<a
href="etrice-docse12.html" >prev</a>] [<a
href="etrice-docse12.html#tailetrice-docse12.html" >prev-tail</a>] [<a
href="#tailetrice-docse13.html">tail</a>] [<a
href="etrice-docch3.html#etrice-docse13.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">3.4 </span> <a
id="x18-830003.4"></a>Dynamic Actors 4</h3>
<!--l. 206--><p class="noindent" >This example is contained in <span
class="ec-lmtt-10">org.eclipse.etrice.examples.dynamicactors4</span>.
</p><!--l. 208--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">3.4.1 </span> <a
id="x18-840003.4.1"></a>Purpose</h4>
<!--l. 210--><p class="noindent" >The example demonstrates the usage of an optional actor. But here not the actor containing the optional reference is
communicating with the optional actor but one level above.
</p><!--l. 213--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">3.4.2 </span> <a
id="x18-850003.4.2"></a>Details</h4>
<!--l. 215--><p class="noindent" >The <span
class="ec-lmtt-10">Controller </span>which has a reference to the <span
class="ec-lmtt-10">Container </span>is asking the latter for the creation of the dynamic actor. When it
receives <span
class="ec-lmtt-10">ok() </span>it is requesting <span
class="ec-lmtt-10">sayHello() </span>from the newly created actor.
</p><!--l. 219--><p class="noindent" >After the <span
class="ec-lmtt-10">Controller </span>receives <span
class="ec-lmtt-10">hello() </span>it tells the <span
class="ec-lmtt-10">Container </span>to create another actor which fails because the old one is still
in place.
</p><!--l. 222--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">3.4.3 </span> <a
id="x18-860003.4.3"></a>Noteworthy</h4>
<ul class="itemize1">
<li class="itemize">the generated MSC <span
class="ec-lmtt-10">main_Async.seq </span>is a good illustration of the dynamic changes in the system structure</li></ul>
<!--l. 228--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse14.html" >next</a>] [<a
href="etrice-docse12.html" >prev</a>] [<a
href="etrice-docse12.html#tailetrice-docse12.html" >prev-tail</a>] [<a
href="etrice-docse13.html" >front</a>] [<a
href="etrice-docch3.html#etrice-docse13.html" >up</a>] </p></div>
<!--l. 228--><p class="noindent" ><a
id="tailetrice-docse13.html"></a> </p>
</body></html>