Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.doc/help/Summary4.html')
-rw-r--r--plugins/org.eclipse.etrice.doc/help/Summary4.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.doc/help/Summary4.html b/plugins/org.eclipse.etrice.doc/help/Summary4.html
new file mode 100644
index 000000000..122180f6d
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/Summary4.html
@@ -0,0 +1,70 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Summary</title>
+<link href="book.css" rel="stylesheet" type="text/css">
+<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
+<link rel="home" href="index.html" title="eTrice User Guide">
+<link rel="up" href="TutorialHelloWorldC.html" title="Tutorial HelloWorld ( C )">
+<link rel="prev" href="Runthemodel.html" title="Run the model">
+<link rel="next" href="Buildandrunthemodel2.html" title="Build and run the model">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Summary</h1>
+<div class="section" title="Summary">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title" style="clear: both">
+<a name="Summary4"></a>Summary</h2>
+</div>
+</div>
+</div>
+<p>We will implement the Hello World code on the initial transition of the
+ <span class="emphasis"><em>HelloWorldTop</em></span> actor. Therefore open the state machine editor by right clicking the
+ <span class="emphasis"><em>HelloWorldTop</em></span> actor in the outline view and select
+ <span class="emphasis"><em>Edit Behavior</em></span>.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld03.png"></div>
+<p>
+
+</p>
+<p>The state machine editor will be opened. Drag and drop an
+ <span class="emphasis"><em>Initial Point</em></span> from the tool box to the diagram into the top level state. Drag and drop a
+ <span class="emphasis"><em>State</em></span> from the tool box to the diagram. Confirm the dialogue with
+ <span class="emphasis"><em>ok</em></span>. Select the
+ <span class="emphasis"><em>Transition</em></span> in the tool box and draw the transition from the
+ <span class="emphasis"><em>Initial Point</em></span> to the State. Open the transition dialogue by double clicking the transition arrow and fill in the action code.
+ </p>
+<div class="literallayout">
+<p>
+<code class="code">System.out.println("Hello&nbsp;World&nbsp;!");<br>
+
+</code>
+</p>
+</div>
+<p>The result should look like this:</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld04.png"></div>
+<p>
+
+</p>
+<p>Save the diagram and inspect the model file. Note that the textual representation was created after saving the diagram.</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/015-HelloWorld05.png"></div>
+<p>
+
+</p>
+</div>
+</body>
+</html>

Back to the top