Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2011-02-15 01:05:14 -0500
committerHenrik Rentz-Reichert2011-02-15 01:05:14 -0500
commitf2c3d8e1319515d3ab14323a15cb75df7af28c16 (patch)
tree2d7ec35113e1e9720d4c71f1777c87c590e04a8e
parent56f7079db3cf64c7a57f07683d63cf866f58b02d (diff)
downloadorg.eclipse.etrice-f2c3d8e1319515d3ab14323a15cb75df7af28c16.tar.gz
org.eclipse.etrice-f2c3d8e1319515d3ab14323a15cb75df7af28c16.tar.xz
org.eclipse.etrice-f2c3d8e1319515d3ab14323a15cb75df7af28c16.zip
ui.behavior: added missing files
-rw-r--r--tests/org.eclipse.etrice.ui.behavior.tests/.classpath7
-rw-r--r--tests/org.eclipse.etrice.ui.behavior.tests/.project34
-rw-r--r--tests/org.eclipse.etrice.ui.behavior.tests/models/HierarchicalStateMachine.room88
3 files changed, 129 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.ui.behavior.tests/.classpath b/tests/org.eclipse.etrice.ui.behavior.tests/.classpath
new file mode 100644
index 000000000..ad32c83a7
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.behavior.tests/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/tests/org.eclipse.etrice.ui.behavior.tests/.project b/tests/org.eclipse.etrice.ui.behavior.tests/.project
new file mode 100644
index 000000000..0b60a5db7
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.behavior.tests/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.etrice.ui.behavior.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/tests/org.eclipse.etrice.ui.behavior.tests/models/HierarchicalStateMachine.room b/tests/org.eclipse.etrice.ui.behavior.tests/models/HierarchicalStateMachine.room
new file mode 100644
index 000000000..4afd5c530
--- /dev/null
+++ b/tests/org.eclipse.etrice.ui.behavior.tests/models/HierarchicalStateMachine.room
@@ -0,0 +1,88 @@
+RoomModel ActorClassWithPorts {
+ ActorClass MyActorClass {
+ Interface {
+ Port ip: MyProtocol
+ Port xp: MyProtocol
+ }
+ Structure {
+ external Port xp
+ conjugated Port sp: MyProtocol
+ }
+ Behavior {
+ StateMachine {
+ Transition tr0: my tptop -> my tptop {
+ triggers {
+ <in2: xp>
+ }
+ }
+ Transition tr1: state1 -> cp cp0 {
+ triggers {
+ <out1: sp>
+ }
+ }
+ Transition tr2: cp cp0 -> elseState {
+ }
+ Transition tr3: cp cp0 -> ifState {
+ cond {
+ "true"
+ }
+ }
+ Transition init: initial -> enter of state1 {
+ }
+ Transition tr4: leave of state1 -> ifState {
+ }
+ ChoicePoint cp0
+ TransitionPoint tptop
+ State state1 {
+ entry {
+ "//entry"
+ }
+ exit {
+ "//exit"
+ }
+ subgraph {
+ Transition tr0: my tp -> my tp {
+ triggers {
+ <in1: xp>
+ }
+ }
+ Transition tr1: second -> my leave {
+ triggers {
+ <in2: xp>
+ }
+ }
+ Transition tr2: first -> second {
+ triggers {
+ <out1: sp>
+ }
+ }
+ Transition tr3: my enter -> first {
+ }
+ EntryPoint enter
+ ExitPoint leave
+ TransitionPoint tp
+ State first {
+ }
+ State second {
+ }
+ }
+ }
+ State elseState {
+ }
+ State ifState {
+ }
+ }
+ }
+ }
+
+ ProtocolClass MyProtocol {
+ incoming {
+ Message in1()
+ Message in2()
+ }
+ outgoing {
+ Message out1()
+ }
+ }
+
+} \ No newline at end of file

Back to the top