diff options
author | Thomas Schuetz | 2013-07-12 08:40:15 +0000 |
---|---|---|
committer | Thomas Schuetz | 2013-07-12 08:40:15 +0000 |
commit | 12cda553738ca88662624b6f47066b5564549648 (patch) | |
tree | bfa65b6c38aa566a5f1cc98395da6546a6c6e282 /plugins/org.eclipse.etrice.generator.fsmtest | |
parent | 3447749b1a453735ac54fc09ea7680acdbb19b69 (diff) | |
parent | d65e1d1bdd43feadb43261b85aac2d8aef5e089c (diff) | |
download | org.eclipse.etrice-12cda553738ca88662624b6f47066b5564549648.tar.gz org.eclipse.etrice-12cda553738ca88662624b6f47066b5564549648.tar.xz org.eclipse.etrice-12cda553738ca88662624b6f47066b5564549648.zip |
Merge remote-tracking branch 'origin/master'
Conflicts:
plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.modellib.c.zip
plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.modellib.java.zip
plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.runtime.c.zip
plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.tutorials.c.zip
plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.tutorials.java.zip
Change-Id: I98e2df3ab57d6e7e8f27e5b0aee7eaa189bfbc33
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.fsmtest')
55 files changed, 12353 insertions, 12353 deletions
diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/.classpath b/plugins/org.eclipse.etrice.generator.fsmtest/.classpath index 5e7708505..ff7256004 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/.classpath +++ b/plugins/org.eclipse.etrice.generator.fsmtest/.classpath @@ -1,9 +1,9 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="src-gen"/>
- <classpathentry kind="src" path="xtend-gen"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="src" path="src-gen"/> + <classpathentry kind="src" path="xtend-gen"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/.gitignore b/plugins/org.eclipse.etrice.generator.fsmtest/.gitignore index e5b341a3a..180012497 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/.gitignore +++ b/plugins/org.eclipse.etrice.generator.fsmtest/.gitignore @@ -1,3 +1,3 @@ -bin
-*._trace
+bin +*._trace .antlr-generator-3.2.0.jar
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/.launch/Generate Language Infrastructure (org.eclipse.etrice.generator.fsmtest).launch b/plugins/org.eclipse.etrice.generator.fsmtest/.launch/Generate Language Infrastructure (org.eclipse.etrice.generator.fsmtest).launch index d7a75d097..fcb2af535 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/.launch/Generate Language Infrastructure (org.eclipse.etrice.generator.fsmtest).launch +++ b/plugins/org.eclipse.etrice.generator.fsmtest/.launch/Generate Language Infrastructure (org.eclipse.etrice.generator.fsmtest).launch @@ -1,24 +1,24 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType">
-<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <resources> <item path="/org.eclipse.etrice.generator.fsmtest" type="4"/> <item path="/org.eclipse.etrice.generator.fsmtest.generator" type="4"/> <item path="/org.eclipse.etrice.generator.fsmtest.tests" type="4"/> <item path="/org.eclipse.etrice.generator.fsmtest.ui" type="4"/> </resources>}"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.etrice.generator.fsmtest"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="4"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
-<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
-<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5" javaProject="org.eclipse.etrice.generator.fsmtest" path="1" type="4"/> "/>
-<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry id="org.eclipse.jdt.launching.classpathentry.defaultClasspath"> <memento exportedEntriesOnly="false" project="org.eclipse.etrice.generator.fsmtest"/> </runtimeClasspathEntry> "/>
-<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator" path="3" type="2"/> "/>
-</listAttribute>
-<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/etrice/generator/GenerateFSMtest.mwe2"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.generator.fsmtest"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512m"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType"> +<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <resources> <item path="/org.eclipse.etrice.generator.fsmtest" type="4"/> <item path="/org.eclipse.etrice.generator.fsmtest.generator" type="4"/> <item path="/org.eclipse.etrice.generator.fsmtest.tests" type="4"/> <item path="/org.eclipse.etrice.generator.fsmtest.ui" type="4"/> </resources>}"/> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> +<listEntry value="/org.eclipse.etrice.generator.fsmtest"/> +</listAttribute> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> +<listEntry value="4"/> +</listAttribute> +<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> +<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> +<listEntry value="org.eclipse.debug.ui.launchGroup.run"/> +</listAttribute> +<listAttribute key="org.eclipse.jdt.launching.CLASSPATH"> +<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5" javaProject="org.eclipse.etrice.generator.fsmtest" path="1" type="4"/> "/> +<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry id="org.eclipse.jdt.launching.classpathentry.defaultClasspath"> <memento exportedEntriesOnly="false" project="org.eclipse.etrice.generator.fsmtest"/> </runtimeClasspathEntry> "/> +<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator" path="3" type="2"/> "/> +</listAttribute> +<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/> +<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/> +<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/etrice/generator/GenerateFSMtest.mwe2"/> +<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.generator.fsmtest"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512m"/> +</launchConfiguration> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/.project b/plugins/org.eclipse.etrice.generator.fsmtest/.project index fe7fef887..b9d5d9b3e 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/.project +++ b/plugins/org.eclipse.etrice.generator.fsmtest/.project @@ -1,34 +1,34 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.etrice.generator.fsmtest</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.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.etrice.generator.fsmtest</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.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.etrice.generator.fsmtest/.settings/org.eclipse.jdt.core.prefs index f287d53cf..c537b6306 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/.settings/org.eclipse.jdt.core.prefs +++ b/plugins/org.eclipse.etrice.generator.fsmtest/.settings/org.eclipse.jdt.core.prefs @@ -1,7 +1,7 @@ -eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
+eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/META-INF/MANIFEST.MF b/plugins/org.eclipse.etrice.generator.fsmtest/META-INF/MANIFEST.MF index 6ca38c284..805b21898 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.etrice.generator.fsmtest/META-INF/MANIFEST.MF @@ -1,35 +1,35 @@ -Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: org.eclipse.etrice.generator.fsmtest
-Bundle-Vendor: Eclipse eTrice (Incubation)
-Bundle-Version: 0.3.0.qualifier
-Bundle-SymbolicName: org.eclipse.etrice.generator.fsmtest; singleton:=true
-Bundle-ActivationPolicy: lazy
-Require-Bundle: org.eclipse.xtext;visibility:=reexport,
- org.eclipse.xtext.xbase;resolution:=optional;visibility:=reexport,
- org.eclipse.xtext.generator;resolution:=optional,
- org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional,
- org.eclipse.emf.codegen.ecore;resolution:=optional,
- org.eclipse.emf.mwe.utils;resolution:=optional,
- org.eclipse.emf.mwe2.launch;resolution:=optional,
- org.eclipse.xtext.util,
- org.eclipse.emf.ecore,
- org.eclipse.emf.common,
- org.antlr.runtime,
- org.eclipse.xtext.common.types
-Import-Package: org.apache.log4j,
- org.eclipse.xtext.xbase.lib
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Export-Package: org.eclipse.etrice.generator,
- org.eclipse.etrice.generator.services,
- org.eclipse.etrice.generator.fsmtest,
- org.eclipse.etrice.generator.fsmtest.impl,
- org.eclipse.etrice.generator.fsmtest.util,
- org.eclipse.etrice.generator.serializer,
- org.eclipse.etrice.generator.parser.antlr,
- org.eclipse.etrice.generator.parser.antlr.internal,
- org.eclipse.etrice.generator.validation,
- org.eclipse.etrice.generator.scoping,
- org.eclipse.etrice.generator.generator,
- org.eclipse.etrice.generator.formatting
-
+Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.etrice.generator.fsmtest +Bundle-Vendor: Eclipse eTrice (Incubation) +Bundle-Version: 0.3.0.qualifier +Bundle-SymbolicName: org.eclipse.etrice.generator.fsmtest; singleton:=true +Bundle-ActivationPolicy: lazy +Require-Bundle: org.eclipse.xtext;visibility:=reexport, + org.eclipse.xtext.xbase;resolution:=optional;visibility:=reexport, + org.eclipse.xtext.generator;resolution:=optional, + org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional, + org.eclipse.emf.codegen.ecore;resolution:=optional, + org.eclipse.emf.mwe.utils;resolution:=optional, + org.eclipse.emf.mwe2.launch;resolution:=optional, + org.eclipse.xtext.util, + org.eclipse.emf.ecore, + org.eclipse.emf.common, + org.antlr.runtime, + org.eclipse.xtext.common.types +Import-Package: org.apache.log4j, + org.eclipse.xtext.xbase.lib +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.eclipse.etrice.generator, + org.eclipse.etrice.generator.services, + org.eclipse.etrice.generator.fsmtest, + org.eclipse.etrice.generator.fsmtest.impl, + org.eclipse.etrice.generator.fsmtest.util, + org.eclipse.etrice.generator.serializer, + org.eclipse.etrice.generator.parser.antlr, + org.eclipse.etrice.generator.parser.antlr.internal, + org.eclipse.etrice.generator.validation, + org.eclipse.etrice.generator.scoping, + org.eclipse.etrice.generator.generator, + org.eclipse.etrice.generator.formatting + diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/about.html b/plugins/org.eclipse.etrice.generator.fsmtest/about.html index f47dbddbb..c258ef55d 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/about.html +++ b/plugins/org.eclipse.etrice.generator.fsmtest/about.html @@ -1,28 +1,28 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2006</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, "Program" will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 5, 2006</p> +<h3>License</h3> + +<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. +For purposes of the EPL, "Program" will mean the Content.</p> + +<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p> + +</body> </html>
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/build.properties b/plugins/org.eclipse.etrice.generator.fsmtest/build.properties index a1186e97f..31255ed05 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/build.properties +++ b/plugins/org.eclipse.etrice.generator.fsmtest/build.properties @@ -1,6 +1,6 @@ -source.. = src/,\
- src-gen/,\
- xtend-gen/
-bin.includes = META-INF/,\
- .,\
+source.. = src/,\ + src-gen/,\ + xtend-gen/ +bin.includes = META-INF/,\ + .,\ plugin.xml
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/plugin.xml b/plugins/org.eclipse.etrice.generator.fsmtest/plugin.xml index bccaf2d56..3fc746238 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/plugin.xml +++ b/plugins/org.eclipse.etrice.generator.fsmtest/plugin.xml @@ -1,17 +1,17 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-
-<plugin>
-
- <extension point="org.eclipse.emf.ecore.generated_package">
- <package
- uri = "http://www.eclipse.org/etrice/generator/FSMtest"
- class = "org.eclipse.etrice.generator.fsmtest.FsmtestPackage"
- genModel = "org/eclipse/etrice/generator/FSMtest.genmodel" />
-
- </extension>
-
-
-
-
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri = "http://www.eclipse.org/etrice/generator/FSMtest" + class = "org.eclipse.etrice.generator.fsmtest.FsmtestPackage" + genModel = "org/eclipse/etrice/generator/FSMtest.genmodel" /> + + </extension> + + + + +</plugin> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.ecore b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.ecore index 48e4f64ec..0f203fdc6 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.ecore +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.ecore @@ -1,71 +1,71 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="fsmtest" nsURI="http://www.eclipse.org/etrice/generator/FSMtest"
- nsPrefix="fsmtest">
- <eClassifiers xsi:type="ecore:EClass" name="Model">
- <eStructuralFeatures xsi:type="ecore:EReference" name="FsmDefinitions" upperBound="-1"
- eType="#//FsmDefinition" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="RandomTests" upperBound="-1"
- eType="#//RandomTest" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="FsmDefinition">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="states" upperBound="-1"
- eType="#//StateDeclaration" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="RandomTest">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="fsm" eType="#//FsmDefinition"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="loopsDeclaration" eType="#//LoopsDeclaration"
- containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="seedDeclaration" eType="#//SeedDeclaration"
- containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="GuardDeclaration">
- <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration"
- containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TransitionDeclaration">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="destination" eType="#//StateDeclaration"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="trigger" eType="#//SignalDeclaration"
- containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="triggers" upperBound="-1"
- eType="#//GuardDeclaration" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="precondition" upperBound="-1"
- eType="#//PreconditionDeclaration" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="postcondition" upperBound="-1"
- eType="#//PostconditionDeclaration" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ConditionDeclaration">
- <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration"
- containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PreconditionDeclaration">
- <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration"
- containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PostconditionDeclaration">
- <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration"
- containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="StateDeclaration">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="condition" upperBound="-1"
- eType="#//ConditionDeclaration" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="transitions" upperBound="-1"
- eType="#//TransitionDeclaration" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="LoopsDeclaration">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="val" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="SeedDeclaration">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="val" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="SignalDeclaration">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="port" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="signame" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="intVal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="strVal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
-</ecore:EPackage>
+<?xml version="1.0" encoding="UTF-8"?> +<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="fsmtest" nsURI="http://www.eclipse.org/etrice/generator/FSMtest" + nsPrefix="fsmtest"> + <eClassifiers xsi:type="ecore:EClass" name="Model"> + <eStructuralFeatures xsi:type="ecore:EReference" name="FsmDefinitions" upperBound="-1" + eType="#//FsmDefinition" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="RandomTests" upperBound="-1" + eType="#//RandomTest" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="FsmDefinition"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="states" upperBound="-1" + eType="#//StateDeclaration" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="RandomTest"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="fsm" eType="#//FsmDefinition"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="loopsDeclaration" eType="#//LoopsDeclaration" + containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="seedDeclaration" eType="#//SeedDeclaration" + containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="GuardDeclaration"> + <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration" + containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="TransitionDeclaration"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="destination" eType="#//StateDeclaration"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="trigger" eType="#//SignalDeclaration" + containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="triggers" upperBound="-1" + eType="#//GuardDeclaration" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="precondition" upperBound="-1" + eType="#//PreconditionDeclaration" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="postcondition" upperBound="-1" + eType="#//PostconditionDeclaration" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="ConditionDeclaration"> + <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration" + containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="PreconditionDeclaration"> + <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration" + containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="PostconditionDeclaration"> + <eStructuralFeatures xsi:type="ecore:EReference" name="signal" eType="#//SignalDeclaration" + containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="StateDeclaration"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="condition" upperBound="-1" + eType="#//ConditionDeclaration" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="transitions" upperBound="-1" + eType="#//TransitionDeclaration" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="LoopsDeclaration"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="val" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="SeedDeclaration"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="val" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="SignalDeclaration"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="port" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="signame" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="intVal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="strVal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> +</ecore:EPackage> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.genmodel b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.genmodel index d18b6517d..b9956d072 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.genmodel +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.genmodel @@ -1,63 +1,63 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.etrice.generator.fsmtest/src-gen"
- editDirectory="/org.eclipse.etrice.generator.fsmtest.edit/src" editorDirectory="/org.eclipse.etrice.generator.fsmtest.editor/src"
- modelPluginID="org.eclipse.etrice.generator.fsmtest" forceOverwrite="true" modelName="FSMtest"
- updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- complianceLevel="5.0" copyrightFields="false" editPluginID="org.eclipse.etrice.generator.fsmtest.edit"
- editorPluginID="org.eclipse.etrice.generator.fsmtest.editor" runtimeVersion="2.8">
- <genPackages prefix="Fsmtest" basePackage="org.eclipse.etrice.generator" disposableProviderFactory="true"
- ecorePackage="FSMtest.ecore#/">
- <genClasses ecoreClass="FSMtest.ecore#//Model">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//Model/FsmDefinitions"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//Model/RandomTests"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//FsmDefinition">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//FsmDefinition/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//FsmDefinition/states"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//RandomTest">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//RandomTest/name"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FSMtest.ecore#//RandomTest/fsm"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//RandomTest/loopsDeclaration"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//RandomTest/seedDeclaration"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//GuardDeclaration">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//GuardDeclaration/signal"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//TransitionDeclaration">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//TransitionDeclaration/name"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/destination"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/trigger"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/triggers"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/precondition"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/postcondition"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//ConditionDeclaration">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//ConditionDeclaration/signal"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//PreconditionDeclaration">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//PreconditionDeclaration/signal"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//PostconditionDeclaration">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//PostconditionDeclaration/signal"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//StateDeclaration">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//StateDeclaration/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//StateDeclaration/condition"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//StateDeclaration/transitions"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//LoopsDeclaration">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//LoopsDeclaration/val"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//SeedDeclaration">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SeedDeclaration/val"/>
- </genClasses>
- <genClasses ecoreClass="FSMtest.ecore#//SignalDeclaration">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/port"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/signame"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/intVal"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/strVal"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
+<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.etrice.generator.fsmtest/src-gen" + editDirectory="/org.eclipse.etrice.generator.fsmtest.edit/src" editorDirectory="/org.eclipse.etrice.generator.fsmtest.editor/src" + modelPluginID="org.eclipse.etrice.generator.fsmtest" forceOverwrite="true" modelName="FSMtest" + updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" + complianceLevel="5.0" copyrightFields="false" editPluginID="org.eclipse.etrice.generator.fsmtest.edit" + editorPluginID="org.eclipse.etrice.generator.fsmtest.editor" runtimeVersion="2.8"> + <genPackages prefix="Fsmtest" basePackage="org.eclipse.etrice.generator" disposableProviderFactory="true" + ecorePackage="FSMtest.ecore#/"> + <genClasses ecoreClass="FSMtest.ecore#//Model"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//Model/FsmDefinitions"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//Model/RandomTests"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//FsmDefinition"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//FsmDefinition/name"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//FsmDefinition/states"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//RandomTest"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//RandomTest/name"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FSMtest.ecore#//RandomTest/fsm"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//RandomTest/loopsDeclaration"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//RandomTest/seedDeclaration"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//GuardDeclaration"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//GuardDeclaration/signal"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//TransitionDeclaration"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//TransitionDeclaration/name"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/destination"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/trigger"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/triggers"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/precondition"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//TransitionDeclaration/postcondition"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//ConditionDeclaration"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//ConditionDeclaration/signal"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//PreconditionDeclaration"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//PreconditionDeclaration/signal"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//PostconditionDeclaration"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//PostconditionDeclaration/signal"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//StateDeclaration"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//StateDeclaration/name"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//StateDeclaration/condition"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FSMtest.ecore#//StateDeclaration/transitions"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//LoopsDeclaration"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//LoopsDeclaration/val"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//SeedDeclaration"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SeedDeclaration/val"/> + </genClasses> + <genClasses ecoreClass="FSMtest.ecore#//SignalDeclaration"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/port"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/signame"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/intVal"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FSMtest.ecore#//SignalDeclaration/strVal"/> + </genClasses> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.xmi b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.xmi index 388b1dddb..861b2a244 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.xmi +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/FSMtest.xmi @@ -1,378 +1,378 @@ -<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.etrice.generator.FSMtest" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="fsmtest">
- <ePackage href="http://www.eclipse.org/etrice/generator/FSMtest#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="Model">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//Model"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="FsmDefinitions" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="RandomTests" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="FsmDefinition">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//FsmDefinition"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="fsmdefinition"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="initial"/>
- <elements xsi:type="xtext:Assignment" feature="states" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="*" feature="states" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RandomTest">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//RandomTest"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="randomtest"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="fsm:"/>
- <elements xsi:type="xtext:Assignment" feature="fsm" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//FsmDefinition"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="loopsDeclaration" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="seedDeclaration" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="GuardDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//GuardDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="signal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TransitionDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//TransitionDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="transition"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="to"/>
- <elements xsi:type="xtext:Assignment" feature="destination" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//StateDeclaration"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="trigger:"/>
- <elements xsi:type="xtext:Assignment" feature="trigger" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="guards:"/>
- <elements xsi:type="xtext:Assignment" cardinality="+" feature="triggers" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="constraints:"/>
- <elements xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Assignment" feature="precondition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="postcondition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.7"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//ConditionDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="condition"/>
- <elements xsi:type="xtext:Assignment" feature="signal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PreconditionDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//PreconditionDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="precondition"/>
- <elements xsi:type="xtext:Assignment" feature="signal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PostconditionDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//PostconditionDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="postcondition"/>
- <elements xsi:type="xtext:Assignment" feature="signal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="StateDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//StateDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="state"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="constraints:"/>
- <elements xsi:type="xtext:Assignment" cardinality="+" feature="condition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="+" feature="transitions" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LoopsDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//LoopsDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="loops:"/>
- <elements xsi:type="xtext:Assignment" feature="val" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SeedDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//SeedDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="randseed:"/>
- <elements xsi:type="xtext:Assignment" feature="val" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SignalDeclaration">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//SignalDeclaration"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="port" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="."/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="signame" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="intVal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="strVal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- </elements>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="""/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="""/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="""/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="""/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="""/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="
"/>
- <elements xsi:type="xtext:Keyword" value="
"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
- <elements xsi:type="xtext:Keyword" value="
"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="	"/>
- <elements xsi:type="xtext:Keyword" value="
"/>
- <elements xsi:type="xtext:Keyword" value="
"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
+<?xml version="1.0" encoding="ASCII"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext"> + <xtext:Grammar name="org.eclipse.etrice.generator.FSMtest" usedGrammars="/1"> + <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="fsmtest"> + <ePackage href="http://www.eclipse.org/etrice/generator/FSMtest#/"/> + </metamodelDeclarations> + <rules xsi:type="xtext:ParserRule" name="Model"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//Model"/> + </type> + <alternatives xsi:type="xtext:Alternatives" cardinality="*"> + <elements xsi:type="xtext:Assignment" feature="FsmDefinitions" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/> + </elements> + <elements xsi:type="xtext:Assignment" feature="RandomTests" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="FsmDefinition"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//FsmDefinition"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="fsmdefinition"/> + <elements xsi:type="xtext:Assignment" feature="name" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </elements> + <elements xsi:type="xtext:Keyword" value="initial"/> + <elements xsi:type="xtext:Assignment" feature="states" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/> + </elements> + <elements xsi:type="xtext:Assignment" cardinality="*" feature="states" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/> + </elements> + <elements xsi:type="xtext:Keyword" value=";"/> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="RandomTest"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//RandomTest"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="randomtest"/> + <elements xsi:type="xtext:Assignment" feature="name" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </elements> + <elements xsi:type="xtext:Keyword" value="fsm:"/> + <elements xsi:type="xtext:Assignment" feature="fsm" operator="="> + <terminal xsi:type="xtext:CrossReference"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//FsmDefinition"/> + </type> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </terminal> + </elements> + <elements xsi:type="xtext:Assignment" feature="loopsDeclaration" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/> + </elements> + <elements xsi:type="xtext:Assignment" cardinality="?" feature="seedDeclaration" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/> + </elements> + <elements xsi:type="xtext:Keyword" value=";"/> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="GuardDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//GuardDeclaration"/> + </type> + <alternatives xsi:type="xtext:Assignment" feature="signal" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="TransitionDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//TransitionDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="transition"/> + <elements xsi:type="xtext:Assignment" feature="name" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </elements> + <elements xsi:type="xtext:Keyword" value="to"/> + <elements xsi:type="xtext:Assignment" feature="destination" operator="="> + <terminal xsi:type="xtext:CrossReference"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//StateDeclaration"/> + </type> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </terminal> + </elements> + <elements xsi:type="xtext:Group" cardinality="?"> + <elements xsi:type="xtext:Keyword" value="trigger:"/> + <elements xsi:type="xtext:Assignment" feature="trigger" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/> + </elements> + </elements> + <elements xsi:type="xtext:Group" cardinality="?"> + <elements xsi:type="xtext:Keyword" value="guards:"/> + <elements xsi:type="xtext:Assignment" cardinality="+" feature="triggers" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/> + </elements> + </elements> + <elements xsi:type="xtext:Group" cardinality="?"> + <elements xsi:type="xtext:Keyword" value="constraints:"/> + <elements xsi:type="xtext:Alternatives" cardinality="+"> + <elements xsi:type="xtext:Assignment" feature="precondition" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/> + </elements> + <elements xsi:type="xtext:Assignment" feature="postcondition" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.7"/> + </elements> + </elements> + </elements> + <elements xsi:type="xtext:Keyword" value=";"/> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="ConditionDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//ConditionDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="condition"/> + <elements xsi:type="xtext:Assignment" feature="signal" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="PreconditionDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//PreconditionDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="precondition"/> + <elements xsi:type="xtext:Assignment" feature="signal" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="PostconditionDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//PostconditionDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="postcondition"/> + <elements xsi:type="xtext:Assignment" feature="signal" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="StateDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//StateDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="state"/> + <elements xsi:type="xtext:Assignment" feature="name" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </elements> + <elements xsi:type="xtext:Group" cardinality="?"> + <elements xsi:type="xtext:Keyword" value="constraints:"/> + <elements xsi:type="xtext:Assignment" cardinality="+" feature="condition" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/> + </elements> + </elements> + <elements xsi:type="xtext:Assignment" cardinality="+" feature="transitions" operator="+="> + <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/> + </elements> + <elements xsi:type="xtext:Keyword" value=";"/> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="LoopsDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//LoopsDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="loops:"/> + <elements xsi:type="xtext:Assignment" feature="val" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="SeedDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//SeedDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="randseed:"/> + <elements xsi:type="xtext:Assignment" feature="val" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:ParserRule" name="SignalDeclaration"> + <type metamodel="/0/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/etrice/generator/FSMtest#//SignalDeclaration"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Group" cardinality="?"> + <elements xsi:type="xtext:Assignment" feature="port" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </elements> + <elements xsi:type="xtext:Keyword" value="."/> + </elements> + <elements xsi:type="xtext:Assignment" feature="signame" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/> + </elements> + <elements xsi:type="xtext:Alternatives" cardinality="?"> + <elements xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="="/> + <elements xsi:type="xtext:Assignment" feature="intVal" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/> + </elements> + </elements> + <elements xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="="/> + <elements xsi:type="xtext:Assignment" feature="strVal" operator="="> + <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/> + </elements> + </elements> + </elements> + </alternatives> + </rules> + </xtext:Grammar> + <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4"> + <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore"> + <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/> + </metamodelDeclarations> + <rules xsi:type="xtext:TerminalRule" name="ID"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/> + <elements xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:CharacterRange"> + <left value="a"/> + <right value="z"/> + </elements> + <elements xsi:type="xtext:CharacterRange"> + <left value="A"/> + <right value="Z"/> + </elements> + <elements xsi:type="xtext:Keyword" value="_"/> + </elements> + <elements xsi:type="xtext:Alternatives" cardinality="*"> + <elements xsi:type="xtext:CharacterRange"> + <left value="a"/> + <right value="z"/> + </elements> + <elements xsi:type="xtext:CharacterRange"> + <left value="A"/> + <right value="Z"/> + </elements> + <elements xsi:type="xtext:Keyword" value="_"/> + <elements xsi:type="xtext:CharacterRange"> + <left value="0"/> + <right value="9"/> + </elements> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:TerminalRule" name="INT"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + </type> + <alternatives xsi:type="xtext:CharacterRange" cardinality="+"> + <left value="0"/> + <right value="9"/> + </alternatives> + </rules> + <rules xsi:type="xtext:TerminalRule" name="STRING"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </type> + <alternatives xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="""/> + <elements xsi:type="xtext:Alternatives" cardinality="*"> + <elements xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="\"/> + <elements xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:Keyword" value="b"/> + <elements xsi:type="xtext:Keyword" value="t"/> + <elements xsi:type="xtext:Keyword" value="n"/> + <elements xsi:type="xtext:Keyword" value="f"/> + <elements xsi:type="xtext:Keyword" value="r"/> + <elements xsi:type="xtext:Keyword" value="u"/> + <elements xsi:type="xtext:Keyword" value="""/> + <elements xsi:type="xtext:Keyword" value="'"/> + <elements xsi:type="xtext:Keyword" value="\"/> + </elements> + </elements> + <elements xsi:type="xtext:NegatedToken"> + <terminal xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:Keyword" value="\"/> + <elements xsi:type="xtext:Keyword" value="""/> + </terminal> + </elements> + </elements> + <elements xsi:type="xtext:Keyword" value="""/> + </elements> + <elements xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="'"/> + <elements xsi:type="xtext:Alternatives" cardinality="*"> + <elements xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="\"/> + <elements xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:Keyword" value="b"/> + <elements xsi:type="xtext:Keyword" value="t"/> + <elements xsi:type="xtext:Keyword" value="n"/> + <elements xsi:type="xtext:Keyword" value="f"/> + <elements xsi:type="xtext:Keyword" value="r"/> + <elements xsi:type="xtext:Keyword" value="u"/> + <elements xsi:type="xtext:Keyword" value="""/> + <elements xsi:type="xtext:Keyword" value="'"/> + <elements xsi:type="xtext:Keyword" value="\"/> + </elements> + </elements> + <elements xsi:type="xtext:NegatedToken"> + <terminal xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:Keyword" value="\"/> + <elements xsi:type="xtext:Keyword" value="'"/> + </terminal> + </elements> + </elements> + <elements xsi:type="xtext:Keyword" value="'"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="/*"/> + <elements xsi:type="xtext:UntilToken"> + <terminal xsi:type="xtext:Keyword" value="*/"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </type> + <alternatives xsi:type="xtext:Group"> + <elements xsi:type="xtext:Keyword" value="//"/> + <elements xsi:type="xtext:NegatedToken" cardinality="*"> + <terminal xsi:type="xtext:Alternatives"> + <elements xsi:type="xtext:Keyword" value="
"/> + <elements xsi:type="xtext:Keyword" value="
"/> + </terminal> + </elements> + <elements xsi:type="xtext:Group" cardinality="?"> + <elements xsi:type="xtext:Keyword" cardinality="?" value="
"/> + <elements xsi:type="xtext:Keyword" value="
"/> + </elements> + </alternatives> + </rules> + <rules xsi:type="xtext:TerminalRule" name="WS"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </type> + <alternatives xsi:type="xtext:Alternatives" cardinality="+"> + <elements xsi:type="xtext:Keyword" value=" "/> + <elements xsi:type="xtext:Keyword" value="	"/> + <elements xsi:type="xtext:Keyword" value="
"/> + <elements xsi:type="xtext:Keyword" value="
"/> + </alternatives> + </rules> + <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER"> + <type metamodel="/1/@metamodelDeclarations.0"> + <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </type> + <alternatives xsi:type="xtext:Wildcard"/> + </rules> + </xtext:Grammar> +</xmi:XMI> diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/ConditionDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/ConditionDeclaration.java index f59ee3f6b..eec2ba132 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/ConditionDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/ConditionDeclaration.java @@ -1,51 +1,51 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Condition Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getConditionDeclaration()
- * @model
- * @generated
- */
-public interface ConditionDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Signal</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Signal</em>' containment reference.
- * @see #setSignal(SignalDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getConditionDeclaration_Signal()
- * @model containment="true"
- * @generated
- */
- SignalDeclaration getSignal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Signal</em>' containment reference.
- * @see #getSignal()
- * @generated
- */
- void setSignal(SignalDeclaration value);
-
-} // ConditionDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Condition Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getConditionDeclaration() + * @model + * @generated + */ +public interface ConditionDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Signal</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Signal</em>' containment reference. + * @see #setSignal(SignalDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getConditionDeclaration_Signal() + * @model containment="true" + * @generated + */ + SignalDeclaration getSignal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Signal</em>' containment reference. + * @see #getSignal() + * @generated + */ + void setSignal(SignalDeclaration value); + +} // ConditionDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmDefinition.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmDefinition.java index 37c4bac1a..687511d1e 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmDefinition.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmDefinition.java @@ -1,70 +1,70 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Fsm Definition</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getStates <em>States</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getFsmDefinition()
- * @model
- * @generated
- */
-public interface FsmDefinition extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getFsmDefinition_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>States</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.StateDeclaration}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>States</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>States</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getFsmDefinition_States()
- * @model containment="true"
- * @generated
- */
- EList<StateDeclaration> getStates();
-
-} // FsmDefinition
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Fsm Definition</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getStates <em>States</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getFsmDefinition() + * @model + * @generated + */ +public interface FsmDefinition extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getFsmDefinition_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>States</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.StateDeclaration}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>States</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>States</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getFsmDefinition_States() + * @model containment="true" + * @generated + */ + EList<StateDeclaration> getStates(); + +} // FsmDefinition diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestFactory.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestFactory.java index e48e46089..4db52024b 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestFactory.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestFactory.java @@ -1,142 +1,142 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage
- * @generated
- */
-public interface FsmtestFactory extends EFactory
-{
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- FsmtestFactory eINSTANCE = org.eclipse.etrice.generator.fsmtest.impl.FsmtestFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Model</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Model</em>'.
- * @generated
- */
- Model createModel();
-
- /**
- * Returns a new object of class '<em>Fsm Definition</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Fsm Definition</em>'.
- * @generated
- */
- FsmDefinition createFsmDefinition();
-
- /**
- * Returns a new object of class '<em>Random Test</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Random Test</em>'.
- * @generated
- */
- RandomTest createRandomTest();
-
- /**
- * Returns a new object of class '<em>Guard Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Guard Declaration</em>'.
- * @generated
- */
- GuardDeclaration createGuardDeclaration();
-
- /**
- * Returns a new object of class '<em>Transition Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Transition Declaration</em>'.
- * @generated
- */
- TransitionDeclaration createTransitionDeclaration();
-
- /**
- * Returns a new object of class '<em>Condition Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Condition Declaration</em>'.
- * @generated
- */
- ConditionDeclaration createConditionDeclaration();
-
- /**
- * Returns a new object of class '<em>Precondition Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Precondition Declaration</em>'.
- * @generated
- */
- PreconditionDeclaration createPreconditionDeclaration();
-
- /**
- * Returns a new object of class '<em>Postcondition Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Postcondition Declaration</em>'.
- * @generated
- */
- PostconditionDeclaration createPostconditionDeclaration();
-
- /**
- * Returns a new object of class '<em>State Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>State Declaration</em>'.
- * @generated
- */
- StateDeclaration createStateDeclaration();
-
- /**
- * Returns a new object of class '<em>Loops Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Loops Declaration</em>'.
- * @generated
- */
- LoopsDeclaration createLoopsDeclaration();
-
- /**
- * Returns a new object of class '<em>Seed Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Seed Declaration</em>'.
- * @generated
- */
- SeedDeclaration createSeedDeclaration();
-
- /**
- * Returns a new object of class '<em>Signal Declaration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Signal Declaration</em>'.
- * @generated
- */
- SignalDeclaration createSignalDeclaration();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- FsmtestPackage getFsmtestPackage();
-
-} //FsmtestFactory
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage + * @generated + */ +public interface FsmtestFactory extends EFactory +{ + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + FsmtestFactory eINSTANCE = org.eclipse.etrice.generator.fsmtest.impl.FsmtestFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Model</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Model</em>'. + * @generated + */ + Model createModel(); + + /** + * Returns a new object of class '<em>Fsm Definition</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Fsm Definition</em>'. + * @generated + */ + FsmDefinition createFsmDefinition(); + + /** + * Returns a new object of class '<em>Random Test</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Random Test</em>'. + * @generated + */ + RandomTest createRandomTest(); + + /** + * Returns a new object of class '<em>Guard Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Guard Declaration</em>'. + * @generated + */ + GuardDeclaration createGuardDeclaration(); + + /** + * Returns a new object of class '<em>Transition Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Transition Declaration</em>'. + * @generated + */ + TransitionDeclaration createTransitionDeclaration(); + + /** + * Returns a new object of class '<em>Condition Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Condition Declaration</em>'. + * @generated + */ + ConditionDeclaration createConditionDeclaration(); + + /** + * Returns a new object of class '<em>Precondition Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Precondition Declaration</em>'. + * @generated + */ + PreconditionDeclaration createPreconditionDeclaration(); + + /** + * Returns a new object of class '<em>Postcondition Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Postcondition Declaration</em>'. + * @generated + */ + PostconditionDeclaration createPostconditionDeclaration(); + + /** + * Returns a new object of class '<em>State Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>State Declaration</em>'. + * @generated + */ + StateDeclaration createStateDeclaration(); + + /** + * Returns a new object of class '<em>Loops Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Loops Declaration</em>'. + * @generated + */ + LoopsDeclaration createLoopsDeclaration(); + + /** + * Returns a new object of class '<em>Seed Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Seed Declaration</em>'. + * @generated + */ + SeedDeclaration createSeedDeclaration(); + + /** + * Returns a new object of class '<em>Signal Declaration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Signal Declaration</em>'. + * @generated + */ + SignalDeclaration createSignalDeclaration(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + FsmtestPackage getFsmtestPackage(); + +} //FsmtestFactory diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestPackage.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestPackage.java index 7e9484115..76d8de0e0 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestPackage.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/FsmtestPackage.java @@ -1,1309 +1,1309 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestFactory
- * @model kind="package"
- * @generated
- */
-public interface FsmtestPackage extends EPackage
-{
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "fsmtest";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/etrice/generator/FSMtest";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "fsmtest";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- FsmtestPackage eINSTANCE = org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl <em>Model</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.ModelImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getModel()
- * @generated
- */
- int MODEL = 0;
-
- /**
- * The feature id for the '<em><b>Fsm Definitions</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__FSM_DEFINITIONS = 0;
-
- /**
- * The feature id for the '<em><b>Random Tests</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__RANDOM_TESTS = 1;
-
- /**
- * The number of structural features of the '<em>Model</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl <em>Fsm Definition</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getFsmDefinition()
- * @generated
- */
- int FSM_DEFINITION = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FSM_DEFINITION__NAME = 0;
-
- /**
- * The feature id for the '<em><b>States</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FSM_DEFINITION__STATES = 1;
-
- /**
- * The number of structural features of the '<em>Fsm Definition</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FSM_DEFINITION_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl <em>Random Test</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getRandomTest()
- * @generated
- */
- int RANDOM_TEST = 2;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RANDOM_TEST__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Fsm</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RANDOM_TEST__FSM = 1;
-
- /**
- * The feature id for the '<em><b>Loops Declaration</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RANDOM_TEST__LOOPS_DECLARATION = 2;
-
- /**
- * The feature id for the '<em><b>Seed Declaration</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RANDOM_TEST__SEED_DECLARATION = 3;
-
- /**
- * The number of structural features of the '<em>Random Test</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RANDOM_TEST_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl <em>Guard Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getGuardDeclaration()
- * @generated
- */
- int GUARD_DECLARATION = 3;
-
- /**
- * The feature id for the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int GUARD_DECLARATION__SIGNAL = 0;
-
- /**
- * The number of structural features of the '<em>Guard Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int GUARD_DECLARATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl <em>Transition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getTransitionDeclaration()
- * @generated
- */
- int TRANSITION_DECLARATION = 4;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Destination</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION__DESTINATION = 1;
-
- /**
- * The feature id for the '<em><b>Trigger</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION__TRIGGER = 2;
-
- /**
- * The feature id for the '<em><b>Triggers</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION__TRIGGERS = 3;
-
- /**
- * The feature id for the '<em><b>Precondition</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION__PRECONDITION = 4;
-
- /**
- * The feature id for the '<em><b>Postcondition</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION__POSTCONDITION = 5;
-
- /**
- * The number of structural features of the '<em>Transition Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TRANSITION_DECLARATION_FEATURE_COUNT = 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl <em>Condition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getConditionDeclaration()
- * @generated
- */
- int CONDITION_DECLARATION = 5;
-
- /**
- * The feature id for the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONDITION_DECLARATION__SIGNAL = 0;
-
- /**
- * The number of structural features of the '<em>Condition Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONDITION_DECLARATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl <em>Precondition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPreconditionDeclaration()
- * @generated
- */
- int PRECONDITION_DECLARATION = 6;
-
- /**
- * The feature id for the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PRECONDITION_DECLARATION__SIGNAL = 0;
-
- /**
- * The number of structural features of the '<em>Precondition Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PRECONDITION_DECLARATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl <em>Postcondition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPostconditionDeclaration()
- * @generated
- */
- int POSTCONDITION_DECLARATION = 7;
-
- /**
- * The feature id for the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int POSTCONDITION_DECLARATION__SIGNAL = 0;
-
- /**
- * The number of structural features of the '<em>Postcondition Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int POSTCONDITION_DECLARATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl <em>State Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getStateDeclaration()
- * @generated
- */
- int STATE_DECLARATION = 8;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STATE_DECLARATION__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Condition</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STATE_DECLARATION__CONDITION = 1;
-
- /**
- * The feature id for the '<em><b>Transitions</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STATE_DECLARATION__TRANSITIONS = 2;
-
- /**
- * The number of structural features of the '<em>State Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STATE_DECLARATION_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl <em>Loops Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getLoopsDeclaration()
- * @generated
- */
- int LOOPS_DECLARATION = 9;
-
- /**
- * The feature id for the '<em><b>Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LOOPS_DECLARATION__VAL = 0;
-
- /**
- * The number of structural features of the '<em>Loops Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LOOPS_DECLARATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl <em>Seed Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSeedDeclaration()
- * @generated
- */
- int SEED_DECLARATION = 10;
-
- /**
- * The feature id for the '<em><b>Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEED_DECLARATION__VAL = 0;
-
- /**
- * The number of structural features of the '<em>Seed Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEED_DECLARATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl <em>Signal Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSignalDeclaration()
- * @generated
- */
- int SIGNAL_DECLARATION = 11;
-
- /**
- * The feature id for the '<em><b>Port</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIGNAL_DECLARATION__PORT = 0;
-
- /**
- * The feature id for the '<em><b>Signame</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIGNAL_DECLARATION__SIGNAME = 1;
-
- /**
- * The feature id for the '<em><b>Int Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIGNAL_DECLARATION__INT_VAL = 2;
-
- /**
- * The feature id for the '<em><b>Str Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIGNAL_DECLARATION__STR_VAL = 3;
-
- /**
- * The number of structural features of the '<em>Signal Declaration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SIGNAL_DECLARATION_FEATURE_COUNT = 4;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.Model <em>Model</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Model</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.Model
- * @generated
- */
- EClass getModel();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.Model#getFsmDefinitions <em>Fsm Definitions</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Fsm Definitions</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.Model#getFsmDefinitions()
- * @see #getModel()
- * @generated
- */
- EReference getModel_FsmDefinitions();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.Model#getRandomTests <em>Random Tests</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Random Tests</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.Model#getRandomTests()
- * @see #getModel()
- * @generated
- */
- EReference getModel_RandomTests();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition <em>Fsm Definition</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Fsm Definition</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition
- * @generated
- */
- EClass getFsmDefinition();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName()
- * @see #getFsmDefinition()
- * @generated
- */
- EAttribute getFsmDefinition_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getStates <em>States</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>States</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition#getStates()
- * @see #getFsmDefinition()
- * @generated
- */
- EReference getFsmDefinition_States();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.RandomTest <em>Random Test</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Random Test</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.RandomTest
- * @generated
- */
- EClass getRandomTest();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getName()
- * @see #getRandomTest()
- * @generated
- */
- EAttribute getRandomTest_Name();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm <em>Fsm</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Fsm</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm()
- * @see #getRandomTest()
- * @generated
- */
- EReference getRandomTest_Fsm();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration <em>Loops Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Loops Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration()
- * @see #getRandomTest()
- * @generated
- */
- EReference getRandomTest_LoopsDeclaration();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration <em>Seed Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Seed Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration()
- * @see #getRandomTest()
- * @generated
- */
- EReference getRandomTest_SeedDeclaration();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration <em>Guard Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Guard Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.GuardDeclaration
- * @generated
- */
- EClass getGuardDeclaration();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal <em>Signal</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Signal</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal()
- * @see #getGuardDeclaration()
- * @generated
- */
- EReference getGuardDeclaration_Signal();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration <em>Transition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Transition Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration
- * @generated
- */
- EClass getTransitionDeclaration();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName()
- * @see #getTransitionDeclaration()
- * @generated
- */
- EAttribute getTransitionDeclaration_Name();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination <em>Destination</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Destination</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination()
- * @see #getTransitionDeclaration()
- * @generated
- */
- EReference getTransitionDeclaration_Destination();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger <em>Trigger</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Trigger</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger()
- * @see #getTransitionDeclaration()
- * @generated
- */
- EReference getTransitionDeclaration_Trigger();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTriggers <em>Triggers</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Triggers</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTriggers()
- * @see #getTransitionDeclaration()
- * @generated
- */
- EReference getTransitionDeclaration_Triggers();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPrecondition <em>Precondition</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Precondition</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPrecondition()
- * @see #getTransitionDeclaration()
- * @generated
- */
- EReference getTransitionDeclaration_Precondition();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPostcondition <em>Postcondition</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Postcondition</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPostcondition()
- * @see #getTransitionDeclaration()
- * @generated
- */
- EReference getTransitionDeclaration_Postcondition();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration <em>Condition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Condition Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.ConditionDeclaration
- * @generated
- */
- EClass getConditionDeclaration();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal <em>Signal</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Signal</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal()
- * @see #getConditionDeclaration()
- * @generated
- */
- EReference getConditionDeclaration_Signal();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration <em>Precondition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Precondition Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration
- * @generated
- */
- EClass getPreconditionDeclaration();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal <em>Signal</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Signal</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal()
- * @see #getPreconditionDeclaration()
- * @generated
- */
- EReference getPreconditionDeclaration_Signal();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration <em>Postcondition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Postcondition Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration
- * @generated
- */
- EClass getPostconditionDeclaration();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal <em>Signal</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Signal</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal()
- * @see #getPostconditionDeclaration()
- * @generated
- */
- EReference getPostconditionDeclaration_Signal();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration <em>State Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>State Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration
- * @generated
- */
- EClass getStateDeclaration();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName()
- * @see #getStateDeclaration()
- * @generated
- */
- EAttribute getStateDeclaration_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getCondition <em>Condition</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Condition</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration#getCondition()
- * @see #getStateDeclaration()
- * @generated
- */
- EReference getStateDeclaration_Condition();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getTransitions <em>Transitions</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Transitions</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration#getTransitions()
- * @see #getStateDeclaration()
- * @generated
- */
- EReference getStateDeclaration_Transitions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration <em>Loops Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Loops Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.LoopsDeclaration
- * @generated
- */
- EClass getLoopsDeclaration();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal <em>Val</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Val</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal()
- * @see #getLoopsDeclaration()
- * @generated
- */
- EAttribute getLoopsDeclaration_Val();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration <em>Seed Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Seed Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SeedDeclaration
- * @generated
- */
- EClass getSeedDeclaration();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal <em>Val</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Val</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal()
- * @see #getSeedDeclaration()
- * @generated
- */
- EAttribute getSeedDeclaration_Val();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration <em>Signal Declaration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Signal Declaration</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration
- * @generated
- */
- EClass getSignalDeclaration();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort <em>Port</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Port</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort()
- * @see #getSignalDeclaration()
- * @generated
- */
- EAttribute getSignalDeclaration_Port();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname <em>Signame</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Signame</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname()
- * @see #getSignalDeclaration()
- * @generated
- */
- EAttribute getSignalDeclaration_Signame();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal <em>Int Val</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Int Val</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal()
- * @see #getSignalDeclaration()
- * @generated
- */
- EAttribute getSignalDeclaration_IntVal();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal <em>Str Val</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Str Val</em>'.
- * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal()
- * @see #getSignalDeclaration()
- * @generated
- */
- EAttribute getSignalDeclaration_StrVal();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- FsmtestFactory getFsmtestFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals
- {
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl <em>Model</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.ModelImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getModel()
- * @generated
- */
- EClass MODEL = eINSTANCE.getModel();
-
- /**
- * The meta object literal for the '<em><b>Fsm Definitions</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__FSM_DEFINITIONS = eINSTANCE.getModel_FsmDefinitions();
-
- /**
- * The meta object literal for the '<em><b>Random Tests</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__RANDOM_TESTS = eINSTANCE.getModel_RandomTests();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl <em>Fsm Definition</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getFsmDefinition()
- * @generated
- */
- EClass FSM_DEFINITION = eINSTANCE.getFsmDefinition();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute FSM_DEFINITION__NAME = eINSTANCE.getFsmDefinition_Name();
-
- /**
- * The meta object literal for the '<em><b>States</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference FSM_DEFINITION__STATES = eINSTANCE.getFsmDefinition_States();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl <em>Random Test</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getRandomTest()
- * @generated
- */
- EClass RANDOM_TEST = eINSTANCE.getRandomTest();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute RANDOM_TEST__NAME = eINSTANCE.getRandomTest_Name();
-
- /**
- * The meta object literal for the '<em><b>Fsm</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference RANDOM_TEST__FSM = eINSTANCE.getRandomTest_Fsm();
-
- /**
- * The meta object literal for the '<em><b>Loops Declaration</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference RANDOM_TEST__LOOPS_DECLARATION = eINSTANCE.getRandomTest_LoopsDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Seed Declaration</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference RANDOM_TEST__SEED_DECLARATION = eINSTANCE.getRandomTest_SeedDeclaration();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl <em>Guard Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getGuardDeclaration()
- * @generated
- */
- EClass GUARD_DECLARATION = eINSTANCE.getGuardDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference GUARD_DECLARATION__SIGNAL = eINSTANCE.getGuardDeclaration_Signal();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl <em>Transition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getTransitionDeclaration()
- * @generated
- */
- EClass TRANSITION_DECLARATION = eINSTANCE.getTransitionDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute TRANSITION_DECLARATION__NAME = eINSTANCE.getTransitionDeclaration_Name();
-
- /**
- * The meta object literal for the '<em><b>Destination</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference TRANSITION_DECLARATION__DESTINATION = eINSTANCE.getTransitionDeclaration_Destination();
-
- /**
- * The meta object literal for the '<em><b>Trigger</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference TRANSITION_DECLARATION__TRIGGER = eINSTANCE.getTransitionDeclaration_Trigger();
-
- /**
- * The meta object literal for the '<em><b>Triggers</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference TRANSITION_DECLARATION__TRIGGERS = eINSTANCE.getTransitionDeclaration_Triggers();
-
- /**
- * The meta object literal for the '<em><b>Precondition</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference TRANSITION_DECLARATION__PRECONDITION = eINSTANCE.getTransitionDeclaration_Precondition();
-
- /**
- * The meta object literal for the '<em><b>Postcondition</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference TRANSITION_DECLARATION__POSTCONDITION = eINSTANCE.getTransitionDeclaration_Postcondition();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl <em>Condition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getConditionDeclaration()
- * @generated
- */
- EClass CONDITION_DECLARATION = eINSTANCE.getConditionDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference CONDITION_DECLARATION__SIGNAL = eINSTANCE.getConditionDeclaration_Signal();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl <em>Precondition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPreconditionDeclaration()
- * @generated
- */
- EClass PRECONDITION_DECLARATION = eINSTANCE.getPreconditionDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference PRECONDITION_DECLARATION__SIGNAL = eINSTANCE.getPreconditionDeclaration_Signal();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl <em>Postcondition Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPostconditionDeclaration()
- * @generated
- */
- EClass POSTCONDITION_DECLARATION = eINSTANCE.getPostconditionDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference POSTCONDITION_DECLARATION__SIGNAL = eINSTANCE.getPostconditionDeclaration_Signal();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl <em>State Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getStateDeclaration()
- * @generated
- */
- EClass STATE_DECLARATION = eINSTANCE.getStateDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute STATE_DECLARATION__NAME = eINSTANCE.getStateDeclaration_Name();
-
- /**
- * The meta object literal for the '<em><b>Condition</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference STATE_DECLARATION__CONDITION = eINSTANCE.getStateDeclaration_Condition();
-
- /**
- * The meta object literal for the '<em><b>Transitions</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference STATE_DECLARATION__TRANSITIONS = eINSTANCE.getStateDeclaration_Transitions();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl <em>Loops Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getLoopsDeclaration()
- * @generated
- */
- EClass LOOPS_DECLARATION = eINSTANCE.getLoopsDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Val</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LOOPS_DECLARATION__VAL = eINSTANCE.getLoopsDeclaration_Val();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl <em>Seed Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSeedDeclaration()
- * @generated
- */
- EClass SEED_DECLARATION = eINSTANCE.getSeedDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Val</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SEED_DECLARATION__VAL = eINSTANCE.getSeedDeclaration_Val();
-
- /**
- * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl <em>Signal Declaration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl
- * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSignalDeclaration()
- * @generated
- */
- EClass SIGNAL_DECLARATION = eINSTANCE.getSignalDeclaration();
-
- /**
- * The meta object literal for the '<em><b>Port</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SIGNAL_DECLARATION__PORT = eINSTANCE.getSignalDeclaration_Port();
-
- /**
- * The meta object literal for the '<em><b>Signame</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SIGNAL_DECLARATION__SIGNAME = eINSTANCE.getSignalDeclaration_Signame();
-
- /**
- * The meta object literal for the '<em><b>Int Val</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SIGNAL_DECLARATION__INT_VAL = eINSTANCE.getSignalDeclaration_IntVal();
-
- /**
- * The meta object literal for the '<em><b>Str Val</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SIGNAL_DECLARATION__STR_VAL = eINSTANCE.getSignalDeclaration_StrVal();
-
- }
-
-} //FsmtestPackage
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.FsmtestFactory + * @model kind="package" + * @generated + */ +public interface FsmtestPackage extends EPackage +{ + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "fsmtest"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/etrice/generator/FSMtest"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "fsmtest"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + FsmtestPackage eINSTANCE = org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl <em>Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.ModelImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getModel() + * @generated + */ + int MODEL = 0; + + /** + * The feature id for the '<em><b>Fsm Definitions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL__FSM_DEFINITIONS = 0; + + /** + * The feature id for the '<em><b>Random Tests</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL__RANDOM_TESTS = 1; + + /** + * The number of structural features of the '<em>Model</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODEL_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl <em>Fsm Definition</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getFsmDefinition() + * @generated + */ + int FSM_DEFINITION = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FSM_DEFINITION__NAME = 0; + + /** + * The feature id for the '<em><b>States</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FSM_DEFINITION__STATES = 1; + + /** + * The number of structural features of the '<em>Fsm Definition</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FSM_DEFINITION_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl <em>Random Test</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getRandomTest() + * @generated + */ + int RANDOM_TEST = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RANDOM_TEST__NAME = 0; + + /** + * The feature id for the '<em><b>Fsm</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RANDOM_TEST__FSM = 1; + + /** + * The feature id for the '<em><b>Loops Declaration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RANDOM_TEST__LOOPS_DECLARATION = 2; + + /** + * The feature id for the '<em><b>Seed Declaration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RANDOM_TEST__SEED_DECLARATION = 3; + + /** + * The number of structural features of the '<em>Random Test</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RANDOM_TEST_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl <em>Guard Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getGuardDeclaration() + * @generated + */ + int GUARD_DECLARATION = 3; + + /** + * The feature id for the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUARD_DECLARATION__SIGNAL = 0; + + /** + * The number of structural features of the '<em>Guard Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUARD_DECLARATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl <em>Transition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getTransitionDeclaration() + * @generated + */ + int TRANSITION_DECLARATION = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION__NAME = 0; + + /** + * The feature id for the '<em><b>Destination</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION__DESTINATION = 1; + + /** + * The feature id for the '<em><b>Trigger</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION__TRIGGER = 2; + + /** + * The feature id for the '<em><b>Triggers</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION__TRIGGERS = 3; + + /** + * The feature id for the '<em><b>Precondition</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION__PRECONDITION = 4; + + /** + * The feature id for the '<em><b>Postcondition</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION__POSTCONDITION = 5; + + /** + * The number of structural features of the '<em>Transition Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSITION_DECLARATION_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl <em>Condition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getConditionDeclaration() + * @generated + */ + int CONDITION_DECLARATION = 5; + + /** + * The feature id for the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONDITION_DECLARATION__SIGNAL = 0; + + /** + * The number of structural features of the '<em>Condition Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONDITION_DECLARATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl <em>Precondition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPreconditionDeclaration() + * @generated + */ + int PRECONDITION_DECLARATION = 6; + + /** + * The feature id for the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRECONDITION_DECLARATION__SIGNAL = 0; + + /** + * The number of structural features of the '<em>Precondition Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRECONDITION_DECLARATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl <em>Postcondition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPostconditionDeclaration() + * @generated + */ + int POSTCONDITION_DECLARATION = 7; + + /** + * The feature id for the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POSTCONDITION_DECLARATION__SIGNAL = 0; + + /** + * The number of structural features of the '<em>Postcondition Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POSTCONDITION_DECLARATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl <em>State Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getStateDeclaration() + * @generated + */ + int STATE_DECLARATION = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int STATE_DECLARATION__NAME = 0; + + /** + * The feature id for the '<em><b>Condition</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int STATE_DECLARATION__CONDITION = 1; + + /** + * The feature id for the '<em><b>Transitions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int STATE_DECLARATION__TRANSITIONS = 2; + + /** + * The number of structural features of the '<em>State Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int STATE_DECLARATION_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl <em>Loops Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getLoopsDeclaration() + * @generated + */ + int LOOPS_DECLARATION = 9; + + /** + * The feature id for the '<em><b>Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOOPS_DECLARATION__VAL = 0; + + /** + * The number of structural features of the '<em>Loops Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOOPS_DECLARATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl <em>Seed Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSeedDeclaration() + * @generated + */ + int SEED_DECLARATION = 10; + + /** + * The feature id for the '<em><b>Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEED_DECLARATION__VAL = 0; + + /** + * The number of structural features of the '<em>Seed Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEED_DECLARATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl <em>Signal Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSignalDeclaration() + * @generated + */ + int SIGNAL_DECLARATION = 11; + + /** + * The feature id for the '<em><b>Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIGNAL_DECLARATION__PORT = 0; + + /** + * The feature id for the '<em><b>Signame</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIGNAL_DECLARATION__SIGNAME = 1; + + /** + * The feature id for the '<em><b>Int Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIGNAL_DECLARATION__INT_VAL = 2; + + /** + * The feature id for the '<em><b>Str Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIGNAL_DECLARATION__STR_VAL = 3; + + /** + * The number of structural features of the '<em>Signal Declaration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SIGNAL_DECLARATION_FEATURE_COUNT = 4; + + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.Model <em>Model</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Model</em>'. + * @see org.eclipse.etrice.generator.fsmtest.Model + * @generated + */ + EClass getModel(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.Model#getFsmDefinitions <em>Fsm Definitions</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Fsm Definitions</em>'. + * @see org.eclipse.etrice.generator.fsmtest.Model#getFsmDefinitions() + * @see #getModel() + * @generated + */ + EReference getModel_FsmDefinitions(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.Model#getRandomTests <em>Random Tests</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Random Tests</em>'. + * @see org.eclipse.etrice.generator.fsmtest.Model#getRandomTests() + * @see #getModel() + * @generated + */ + EReference getModel_RandomTests(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition <em>Fsm Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Fsm Definition</em>'. + * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition + * @generated + */ + EClass getFsmDefinition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition#getName() + * @see #getFsmDefinition() + * @generated + */ + EAttribute getFsmDefinition_Name(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition#getStates <em>States</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>States</em>'. + * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition#getStates() + * @see #getFsmDefinition() + * @generated + */ + EReference getFsmDefinition_States(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.RandomTest <em>Random Test</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Random Test</em>'. + * @see org.eclipse.etrice.generator.fsmtest.RandomTest + * @generated + */ + EClass getRandomTest(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getName() + * @see #getRandomTest() + * @generated + */ + EAttribute getRandomTest_Name(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm <em>Fsm</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Fsm</em>'. + * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm() + * @see #getRandomTest() + * @generated + */ + EReference getRandomTest_Fsm(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration <em>Loops Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Loops Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration() + * @see #getRandomTest() + * @generated + */ + EReference getRandomTest_LoopsDeclaration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration <em>Seed Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Seed Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration() + * @see #getRandomTest() + * @generated + */ + EReference getRandomTest_SeedDeclaration(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration <em>Guard Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Guard Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.GuardDeclaration + * @generated + */ + EClass getGuardDeclaration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal <em>Signal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Signal</em>'. + * @see org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal() + * @see #getGuardDeclaration() + * @generated + */ + EReference getGuardDeclaration_Signal(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration <em>Transition Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Transition Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration + * @generated + */ + EClass getTransitionDeclaration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName() + * @see #getTransitionDeclaration() + * @generated + */ + EAttribute getTransitionDeclaration_Name(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination <em>Destination</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Destination</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination() + * @see #getTransitionDeclaration() + * @generated + */ + EReference getTransitionDeclaration_Destination(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger <em>Trigger</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Trigger</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger() + * @see #getTransitionDeclaration() + * @generated + */ + EReference getTransitionDeclaration_Trigger(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTriggers <em>Triggers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Triggers</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTriggers() + * @see #getTransitionDeclaration() + * @generated + */ + EReference getTransitionDeclaration_Triggers(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPrecondition <em>Precondition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Precondition</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPrecondition() + * @see #getTransitionDeclaration() + * @generated + */ + EReference getTransitionDeclaration_Precondition(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPostcondition <em>Postcondition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Postcondition</em>'. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPostcondition() + * @see #getTransitionDeclaration() + * @generated + */ + EReference getTransitionDeclaration_Postcondition(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration <em>Condition Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Condition Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.ConditionDeclaration + * @generated + */ + EClass getConditionDeclaration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal <em>Signal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Signal</em>'. + * @see org.eclipse.etrice.generator.fsmtest.ConditionDeclaration#getSignal() + * @see #getConditionDeclaration() + * @generated + */ + EReference getConditionDeclaration_Signal(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration <em>Precondition Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Precondition Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration + * @generated + */ + EClass getPreconditionDeclaration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal <em>Signal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Signal</em>'. + * @see org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal() + * @see #getPreconditionDeclaration() + * @generated + */ + EReference getPreconditionDeclaration_Signal(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration <em>Postcondition Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Postcondition Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration + * @generated + */ + EClass getPostconditionDeclaration(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal <em>Signal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Signal</em>'. + * @see org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal() + * @see #getPostconditionDeclaration() + * @generated + */ + EReference getPostconditionDeclaration_Signal(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration <em>State Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>State Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration + * @generated + */ + EClass getStateDeclaration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName() + * @see #getStateDeclaration() + * @generated + */ + EAttribute getStateDeclaration_Name(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getCondition <em>Condition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Condition</em>'. + * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration#getCondition() + * @see #getStateDeclaration() + * @generated + */ + EReference getStateDeclaration_Condition(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getTransitions <em>Transitions</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Transitions</em>'. + * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration#getTransitions() + * @see #getStateDeclaration() + * @generated + */ + EReference getStateDeclaration_Transitions(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration <em>Loops Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Loops Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.LoopsDeclaration + * @generated + */ + EClass getLoopsDeclaration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal <em>Val</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Val</em>'. + * @see org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal() + * @see #getLoopsDeclaration() + * @generated + */ + EAttribute getLoopsDeclaration_Val(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration <em>Seed Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Seed Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SeedDeclaration + * @generated + */ + EClass getSeedDeclaration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal <em>Val</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Val</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal() + * @see #getSeedDeclaration() + * @generated + */ + EAttribute getSeedDeclaration_Val(); + + /** + * Returns the meta object for class '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration <em>Signal Declaration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Signal Declaration</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration + * @generated + */ + EClass getSignalDeclaration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort <em>Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort() + * @see #getSignalDeclaration() + * @generated + */ + EAttribute getSignalDeclaration_Port(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname <em>Signame</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Signame</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname() + * @see #getSignalDeclaration() + * @generated + */ + EAttribute getSignalDeclaration_Signame(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal <em>Int Val</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Int Val</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal() + * @see #getSignalDeclaration() + * @generated + */ + EAttribute getSignalDeclaration_IntVal(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal <em>Str Val</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Str Val</em>'. + * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal() + * @see #getSignalDeclaration() + * @generated + */ + EAttribute getSignalDeclaration_StrVal(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + FsmtestFactory getFsmtestFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals + { + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl <em>Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.ModelImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getModel() + * @generated + */ + EClass MODEL = eINSTANCE.getModel(); + + /** + * The meta object literal for the '<em><b>Fsm Definitions</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MODEL__FSM_DEFINITIONS = eINSTANCE.getModel_FsmDefinitions(); + + /** + * The meta object literal for the '<em><b>Random Tests</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MODEL__RANDOM_TESTS = eINSTANCE.getModel_RandomTests(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl <em>Fsm Definition</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getFsmDefinition() + * @generated + */ + EClass FSM_DEFINITION = eINSTANCE.getFsmDefinition(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FSM_DEFINITION__NAME = eINSTANCE.getFsmDefinition_Name(); + + /** + * The meta object literal for the '<em><b>States</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference FSM_DEFINITION__STATES = eINSTANCE.getFsmDefinition_States(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl <em>Random Test</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getRandomTest() + * @generated + */ + EClass RANDOM_TEST = eINSTANCE.getRandomTest(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute RANDOM_TEST__NAME = eINSTANCE.getRandomTest_Name(); + + /** + * The meta object literal for the '<em><b>Fsm</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference RANDOM_TEST__FSM = eINSTANCE.getRandomTest_Fsm(); + + /** + * The meta object literal for the '<em><b>Loops Declaration</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference RANDOM_TEST__LOOPS_DECLARATION = eINSTANCE.getRandomTest_LoopsDeclaration(); + + /** + * The meta object literal for the '<em><b>Seed Declaration</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference RANDOM_TEST__SEED_DECLARATION = eINSTANCE.getRandomTest_SeedDeclaration(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl <em>Guard Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getGuardDeclaration() + * @generated + */ + EClass GUARD_DECLARATION = eINSTANCE.getGuardDeclaration(); + + /** + * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUARD_DECLARATION__SIGNAL = eINSTANCE.getGuardDeclaration_Signal(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl <em>Transition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getTransitionDeclaration() + * @generated + */ + EClass TRANSITION_DECLARATION = eINSTANCE.getTransitionDeclaration(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TRANSITION_DECLARATION__NAME = eINSTANCE.getTransitionDeclaration_Name(); + + /** + * The meta object literal for the '<em><b>Destination</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TRANSITION_DECLARATION__DESTINATION = eINSTANCE.getTransitionDeclaration_Destination(); + + /** + * The meta object literal for the '<em><b>Trigger</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TRANSITION_DECLARATION__TRIGGER = eINSTANCE.getTransitionDeclaration_Trigger(); + + /** + * The meta object literal for the '<em><b>Triggers</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TRANSITION_DECLARATION__TRIGGERS = eINSTANCE.getTransitionDeclaration_Triggers(); + + /** + * The meta object literal for the '<em><b>Precondition</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TRANSITION_DECLARATION__PRECONDITION = eINSTANCE.getTransitionDeclaration_Precondition(); + + /** + * The meta object literal for the '<em><b>Postcondition</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TRANSITION_DECLARATION__POSTCONDITION = eINSTANCE.getTransitionDeclaration_Postcondition(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl <em>Condition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getConditionDeclaration() + * @generated + */ + EClass CONDITION_DECLARATION = eINSTANCE.getConditionDeclaration(); + + /** + * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONDITION_DECLARATION__SIGNAL = eINSTANCE.getConditionDeclaration_Signal(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl <em>Precondition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPreconditionDeclaration() + * @generated + */ + EClass PRECONDITION_DECLARATION = eINSTANCE.getPreconditionDeclaration(); + + /** + * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PRECONDITION_DECLARATION__SIGNAL = eINSTANCE.getPreconditionDeclaration_Signal(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl <em>Postcondition Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getPostconditionDeclaration() + * @generated + */ + EClass POSTCONDITION_DECLARATION = eINSTANCE.getPostconditionDeclaration(); + + /** + * The meta object literal for the '<em><b>Signal</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference POSTCONDITION_DECLARATION__SIGNAL = eINSTANCE.getPostconditionDeclaration_Signal(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl <em>State Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getStateDeclaration() + * @generated + */ + EClass STATE_DECLARATION = eINSTANCE.getStateDeclaration(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute STATE_DECLARATION__NAME = eINSTANCE.getStateDeclaration_Name(); + + /** + * The meta object literal for the '<em><b>Condition</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference STATE_DECLARATION__CONDITION = eINSTANCE.getStateDeclaration_Condition(); + + /** + * The meta object literal for the '<em><b>Transitions</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference STATE_DECLARATION__TRANSITIONS = eINSTANCE.getStateDeclaration_Transitions(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl <em>Loops Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getLoopsDeclaration() + * @generated + */ + EClass LOOPS_DECLARATION = eINSTANCE.getLoopsDeclaration(); + + /** + * The meta object literal for the '<em><b>Val</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOOPS_DECLARATION__VAL = eINSTANCE.getLoopsDeclaration_Val(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl <em>Seed Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSeedDeclaration() + * @generated + */ + EClass SEED_DECLARATION = eINSTANCE.getSeedDeclaration(); + + /** + * The meta object literal for the '<em><b>Val</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SEED_DECLARATION__VAL = eINSTANCE.getSeedDeclaration_Val(); + + /** + * The meta object literal for the '{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl <em>Signal Declaration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl + * @see org.eclipse.etrice.generator.fsmtest.impl.FsmtestPackageImpl#getSignalDeclaration() + * @generated + */ + EClass SIGNAL_DECLARATION = eINSTANCE.getSignalDeclaration(); + + /** + * The meta object literal for the '<em><b>Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SIGNAL_DECLARATION__PORT = eINSTANCE.getSignalDeclaration_Port(); + + /** + * The meta object literal for the '<em><b>Signame</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SIGNAL_DECLARATION__SIGNAME = eINSTANCE.getSignalDeclaration_Signame(); + + /** + * The meta object literal for the '<em><b>Int Val</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SIGNAL_DECLARATION__INT_VAL = eINSTANCE.getSignalDeclaration_IntVal(); + + /** + * The meta object literal for the '<em><b>Str Val</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SIGNAL_DECLARATION__STR_VAL = eINSTANCE.getSignalDeclaration_StrVal(); + + } + +} //FsmtestPackage diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/GuardDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/GuardDeclaration.java index 576a64264..b6808c726 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/GuardDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/GuardDeclaration.java @@ -1,51 +1,51 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Guard Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getGuardDeclaration()
- * @model
- * @generated
- */
-public interface GuardDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Signal</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Signal</em>' containment reference.
- * @see #setSignal(SignalDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getGuardDeclaration_Signal()
- * @model containment="true"
- * @generated
- */
- SignalDeclaration getSignal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Signal</em>' containment reference.
- * @see #getSignal()
- * @generated
- */
- void setSignal(SignalDeclaration value);
-
-} // GuardDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Guard Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getGuardDeclaration() + * @model + * @generated + */ +public interface GuardDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Signal</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Signal</em>' containment reference. + * @see #setSignal(SignalDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getGuardDeclaration_Signal() + * @model containment="true" + * @generated + */ + SignalDeclaration getSignal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration#getSignal <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Signal</em>' containment reference. + * @see #getSignal() + * @generated + */ + void setSignal(SignalDeclaration value); + +} // GuardDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/LoopsDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/LoopsDeclaration.java index b123c9480..fd1d4c316 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/LoopsDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/LoopsDeclaration.java @@ -1,51 +1,51 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Loops Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal <em>Val</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getLoopsDeclaration()
- * @model
- * @generated
- */
-public interface LoopsDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Val</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Val</em>' attribute.
- * @see #setVal(int)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getLoopsDeclaration_Val()
- * @model
- * @generated
- */
- int getVal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal <em>Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Val</em>' attribute.
- * @see #getVal()
- * @generated
- */
- void setVal(int value);
-
-} // LoopsDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Loops Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal <em>Val</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getLoopsDeclaration() + * @model + * @generated + */ +public interface LoopsDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Val</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Val</em>' attribute. + * @see #setVal(int) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getLoopsDeclaration_Val() + * @model + * @generated + */ + int getVal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration#getVal <em>Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Val</em>' attribute. + * @see #getVal() + * @generated + */ + void setVal(int value); + +} // LoopsDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/Model.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/Model.java index e04e44cb3..6e596e32b 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/Model.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/Model.java @@ -1,60 +1,60 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Model</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.Model#getFsmDefinitions <em>Fsm Definitions</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.Model#getRandomTests <em>Random Tests</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getModel()
- * @model
- * @generated
- */
-public interface Model extends EObject
-{
- /**
- * Returns the value of the '<em><b>Fsm Definitions</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.FsmDefinition}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Fsm Definitions</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Fsm Definitions</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getModel_FsmDefinitions()
- * @model containment="true"
- * @generated
- */
- EList<FsmDefinition> getFsmDefinitions();
-
- /**
- * Returns the value of the '<em><b>Random Tests</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.RandomTest}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Random Tests</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Random Tests</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getModel_RandomTests()
- * @model containment="true"
- * @generated
- */
- EList<RandomTest> getRandomTests();
-
-} // Model
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Model</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.Model#getFsmDefinitions <em>Fsm Definitions</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.Model#getRandomTests <em>Random Tests</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getModel() + * @model + * @generated + */ +public interface Model extends EObject +{ + /** + * Returns the value of the '<em><b>Fsm Definitions</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.FsmDefinition}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fsm Definitions</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fsm Definitions</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getModel_FsmDefinitions() + * @model containment="true" + * @generated + */ + EList<FsmDefinition> getFsmDefinitions(); + + /** + * Returns the value of the '<em><b>Random Tests</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.RandomTest}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Random Tests</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Random Tests</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getModel_RandomTests() + * @model containment="true" + * @generated + */ + EList<RandomTest> getRandomTests(); + +} // Model diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PostconditionDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PostconditionDeclaration.java index b95ba4bfd..cb06ea0f4 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PostconditionDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PostconditionDeclaration.java @@ -1,51 +1,51 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Postcondition Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPostconditionDeclaration()
- * @model
- * @generated
- */
-public interface PostconditionDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Signal</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Signal</em>' containment reference.
- * @see #setSignal(SignalDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPostconditionDeclaration_Signal()
- * @model containment="true"
- * @generated
- */
- SignalDeclaration getSignal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Signal</em>' containment reference.
- * @see #getSignal()
- * @generated
- */
- void setSignal(SignalDeclaration value);
-
-} // PostconditionDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Postcondition Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPostconditionDeclaration() + * @model + * @generated + */ +public interface PostconditionDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Signal</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Signal</em>' containment reference. + * @see #setSignal(SignalDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPostconditionDeclaration_Signal() + * @model containment="true" + * @generated + */ + SignalDeclaration getSignal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration#getSignal <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Signal</em>' containment reference. + * @see #getSignal() + * @generated + */ + void setSignal(SignalDeclaration value); + +} // PostconditionDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PreconditionDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PreconditionDeclaration.java index 891600607..9c1af69b5 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PreconditionDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/PreconditionDeclaration.java @@ -1,51 +1,51 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Precondition Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPreconditionDeclaration()
- * @model
- * @generated
- */
-public interface PreconditionDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Signal</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Signal</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Signal</em>' containment reference.
- * @see #setSignal(SignalDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPreconditionDeclaration_Signal()
- * @model containment="true"
- * @generated
- */
- SignalDeclaration getSignal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Signal</em>' containment reference.
- * @see #getSignal()
- * @generated
- */
- void setSignal(SignalDeclaration value);
-
-} // PreconditionDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Precondition Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPreconditionDeclaration() + * @model + * @generated + */ +public interface PreconditionDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Signal</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Signal</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Signal</em>' containment reference. + * @see #setSignal(SignalDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getPreconditionDeclaration_Signal() + * @model containment="true" + * @generated + */ + SignalDeclaration getSignal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration#getSignal <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Signal</em>' containment reference. + * @see #getSignal() + * @generated + */ + void setSignal(SignalDeclaration value); + +} // PreconditionDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/RandomTest.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/RandomTest.java index aa5522325..a9425a62e 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/RandomTest.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/RandomTest.java @@ -1,132 +1,132 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Random Test</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm <em>Fsm</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration <em>Loops Declaration</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration <em>Seed Declaration</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest()
- * @model
- * @generated
- */
-public interface RandomTest extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Fsm</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Fsm</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Fsm</em>' reference.
- * @see #setFsm(FsmDefinition)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_Fsm()
- * @model
- * @generated
- */
- FsmDefinition getFsm();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm <em>Fsm</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Fsm</em>' reference.
- * @see #getFsm()
- * @generated
- */
- void setFsm(FsmDefinition value);
-
- /**
- * Returns the value of the '<em><b>Loops Declaration</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Loops Declaration</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Loops Declaration</em>' containment reference.
- * @see #setLoopsDeclaration(LoopsDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_LoopsDeclaration()
- * @model containment="true"
- * @generated
- */
- LoopsDeclaration getLoopsDeclaration();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration <em>Loops Declaration</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Loops Declaration</em>' containment reference.
- * @see #getLoopsDeclaration()
- * @generated
- */
- void setLoopsDeclaration(LoopsDeclaration value);
-
- /**
- * Returns the value of the '<em><b>Seed Declaration</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Seed Declaration</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Seed Declaration</em>' containment reference.
- * @see #setSeedDeclaration(SeedDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_SeedDeclaration()
- * @model containment="true"
- * @generated
- */
- SeedDeclaration getSeedDeclaration();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration <em>Seed Declaration</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Seed Declaration</em>' containment reference.
- * @see #getSeedDeclaration()
- * @generated
- */
- void setSeedDeclaration(SeedDeclaration value);
-
-} // RandomTest
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Random Test</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm <em>Fsm</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration <em>Loops Declaration</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration <em>Seed Declaration</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest() + * @model + * @generated + */ +public interface RandomTest extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Fsm</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fsm</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fsm</em>' reference. + * @see #setFsm(FsmDefinition) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_Fsm() + * @model + * @generated + */ + FsmDefinition getFsm(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getFsm <em>Fsm</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fsm</em>' reference. + * @see #getFsm() + * @generated + */ + void setFsm(FsmDefinition value); + + /** + * Returns the value of the '<em><b>Loops Declaration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Loops Declaration</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Loops Declaration</em>' containment reference. + * @see #setLoopsDeclaration(LoopsDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_LoopsDeclaration() + * @model containment="true" + * @generated + */ + LoopsDeclaration getLoopsDeclaration(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getLoopsDeclaration <em>Loops Declaration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Loops Declaration</em>' containment reference. + * @see #getLoopsDeclaration() + * @generated + */ + void setLoopsDeclaration(LoopsDeclaration value); + + /** + * Returns the value of the '<em><b>Seed Declaration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Seed Declaration</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Seed Declaration</em>' containment reference. + * @see #setSeedDeclaration(SeedDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getRandomTest_SeedDeclaration() + * @model containment="true" + * @generated + */ + SeedDeclaration getSeedDeclaration(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.RandomTest#getSeedDeclaration <em>Seed Declaration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Seed Declaration</em>' containment reference. + * @see #getSeedDeclaration() + * @generated + */ + void setSeedDeclaration(SeedDeclaration value); + +} // RandomTest diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SeedDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SeedDeclaration.java index a51bcac5e..c238df512 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SeedDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SeedDeclaration.java @@ -1,51 +1,51 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Seed Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal <em>Val</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSeedDeclaration()
- * @model
- * @generated
- */
-public interface SeedDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Val</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Val</em>' attribute.
- * @see #setVal(int)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSeedDeclaration_Val()
- * @model
- * @generated
- */
- int getVal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal <em>Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Val</em>' attribute.
- * @see #getVal()
- * @generated
- */
- void setVal(int value);
-
-} // SeedDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Seed Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal <em>Val</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSeedDeclaration() + * @model + * @generated + */ +public interface SeedDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Val</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Val</em>' attribute. + * @see #setVal(int) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSeedDeclaration_Val() + * @model + * @generated + */ + int getVal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration#getVal <em>Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Val</em>' attribute. + * @see #getVal() + * @generated + */ + void setVal(int value); + +} // SeedDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SignalDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SignalDeclaration.java index 0943c8901..080773039 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SignalDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/SignalDeclaration.java @@ -1,132 +1,132 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Signal Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort <em>Port</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname <em>Signame</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal <em>Int Val</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal <em>Str Val</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration()
- * @model
- * @generated
- */
-public interface SignalDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Port</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Port</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Port</em>' attribute.
- * @see #setPort(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_Port()
- * @model
- * @generated
- */
- String getPort();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort <em>Port</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Port</em>' attribute.
- * @see #getPort()
- * @generated
- */
- void setPort(String value);
-
- /**
- * Returns the value of the '<em><b>Signame</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Signame</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Signame</em>' attribute.
- * @see #setSigname(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_Signame()
- * @model
- * @generated
- */
- String getSigname();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname <em>Signame</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Signame</em>' attribute.
- * @see #getSigname()
- * @generated
- */
- void setSigname(String value);
-
- /**
- * Returns the value of the '<em><b>Int Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Int Val</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Int Val</em>' attribute.
- * @see #setIntVal(int)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_IntVal()
- * @model
- * @generated
- */
- int getIntVal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal <em>Int Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Int Val</em>' attribute.
- * @see #getIntVal()
- * @generated
- */
- void setIntVal(int value);
-
- /**
- * Returns the value of the '<em><b>Str Val</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Str Val</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Str Val</em>' attribute.
- * @see #setStrVal(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_StrVal()
- * @model
- * @generated
- */
- String getStrVal();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal <em>Str Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Str Val</em>' attribute.
- * @see #getStrVal()
- * @generated
- */
- void setStrVal(String value);
-
-} // SignalDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Signal Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort <em>Port</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname <em>Signame</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal <em>Int Val</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal <em>Str Val</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration() + * @model + * @generated + */ +public interface SignalDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port</em>' attribute. + * @see #setPort(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_Port() + * @model + * @generated + */ + String getPort(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getPort <em>Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port</em>' attribute. + * @see #getPort() + * @generated + */ + void setPort(String value); + + /** + * Returns the value of the '<em><b>Signame</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Signame</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Signame</em>' attribute. + * @see #setSigname(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_Signame() + * @model + * @generated + */ + String getSigname(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getSigname <em>Signame</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Signame</em>' attribute. + * @see #getSigname() + * @generated + */ + void setSigname(String value); + + /** + * Returns the value of the '<em><b>Int Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Int Val</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Int Val</em>' attribute. + * @see #setIntVal(int) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_IntVal() + * @model + * @generated + */ + int getIntVal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getIntVal <em>Int Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Int Val</em>' attribute. + * @see #getIntVal() + * @generated + */ + void setIntVal(int value); + + /** + * Returns the value of the '<em><b>Str Val</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Str Val</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Str Val</em>' attribute. + * @see #setStrVal(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getSignalDeclaration_StrVal() + * @model + * @generated + */ + String getStrVal(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration#getStrVal <em>Str Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Str Val</em>' attribute. + * @see #getStrVal() + * @generated + */ + void setStrVal(String value); + +} // SignalDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/StateDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/StateDeclaration.java index 49b437e9e..b69c060f7 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/StateDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/StateDeclaration.java @@ -1,87 +1,87 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>State Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getCondition <em>Condition</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getTransitions <em>Transitions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration()
- * @model
- * @generated
- */
-public interface StateDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Condition</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Condition</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Condition</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration_Condition()
- * @model containment="true"
- * @generated
- */
- EList<ConditionDeclaration> getCondition();
-
- /**
- * Returns the value of the '<em><b>Transitions</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Transitions</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Transitions</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration_Transitions()
- * @model containment="true"
- * @generated
- */
- EList<TransitionDeclaration> getTransitions();
-
-} // StateDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>State Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getCondition <em>Condition</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getTransitions <em>Transitions</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration() + * @model + * @generated + */ +public interface StateDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Condition</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Condition</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Condition</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration_Condition() + * @model containment="true" + * @generated + */ + EList<ConditionDeclaration> getCondition(); + + /** + * Returns the value of the '<em><b>Transitions</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Transitions</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Transitions</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getStateDeclaration_Transitions() + * @model containment="true" + * @generated + */ + EList<TransitionDeclaration> getTransitions(); + +} // StateDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/TransitionDeclaration.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/TransitionDeclaration.java index 76826e3a3..dd3282129 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/TransitionDeclaration.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/TransitionDeclaration.java @@ -1,158 +1,158 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Transition Declaration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination <em>Destination</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger <em>Trigger</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTriggers <em>Triggers</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPrecondition <em>Precondition</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPostcondition <em>Postcondition</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration()
- * @model
- * @generated
- */
-public interface TransitionDeclaration extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Destination</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Destination</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Destination</em>' reference.
- * @see #setDestination(StateDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Destination()
- * @model
- * @generated
- */
- StateDeclaration getDestination();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination <em>Destination</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Destination</em>' reference.
- * @see #getDestination()
- * @generated
- */
- void setDestination(StateDeclaration value);
-
- /**
- * Returns the value of the '<em><b>Trigger</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Trigger</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Trigger</em>' containment reference.
- * @see #setTrigger(SignalDeclaration)
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Trigger()
- * @model containment="true"
- * @generated
- */
- SignalDeclaration getTrigger();
-
- /**
- * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger <em>Trigger</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Trigger</em>' containment reference.
- * @see #getTrigger()
- * @generated
- */
- void setTrigger(SignalDeclaration value);
-
- /**
- * Returns the value of the '<em><b>Triggers</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Triggers</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Triggers</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Triggers()
- * @model containment="true"
- * @generated
- */
- EList<GuardDeclaration> getTriggers();
-
- /**
- * Returns the value of the '<em><b>Precondition</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Precondition</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Precondition</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Precondition()
- * @model containment="true"
- * @generated
- */
- EList<PreconditionDeclaration> getPrecondition();
-
- /**
- * Returns the value of the '<em><b>Postcondition</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Postcondition</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Postcondition</em>' containment reference list.
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Postcondition()
- * @model containment="true"
- * @generated
- */
- EList<PostconditionDeclaration> getPostcondition();
-
-} // TransitionDeclaration
+/** + */ +package org.eclipse.etrice.generator.fsmtest; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Transition Declaration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination <em>Destination</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger <em>Trigger</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTriggers <em>Triggers</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPrecondition <em>Precondition</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getPostcondition <em>Postcondition</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration() + * @model + * @generated + */ +public interface TransitionDeclaration extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Destination</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Destination</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Destination</em>' reference. + * @see #setDestination(StateDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Destination() + * @model + * @generated + */ + StateDeclaration getDestination(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getDestination <em>Destination</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Destination</em>' reference. + * @see #getDestination() + * @generated + */ + void setDestination(StateDeclaration value); + + /** + * Returns the value of the '<em><b>Trigger</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Trigger</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Trigger</em>' containment reference. + * @see #setTrigger(SignalDeclaration) + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Trigger() + * @model containment="true" + * @generated + */ + SignalDeclaration getTrigger(); + + /** + * Sets the value of the '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration#getTrigger <em>Trigger</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Trigger</em>' containment reference. + * @see #getTrigger() + * @generated + */ + void setTrigger(SignalDeclaration value); + + /** + * Returns the value of the '<em><b>Triggers</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Triggers</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Triggers</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Triggers() + * @model containment="true" + * @generated + */ + EList<GuardDeclaration> getTriggers(); + + /** + * Returns the value of the '<em><b>Precondition</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Precondition</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Precondition</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Precondition() + * @model containment="true" + * @generated + */ + EList<PreconditionDeclaration> getPrecondition(); + + /** + * Returns the value of the '<em><b>Postcondition</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Postcondition</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Postcondition</em>' containment reference list. + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#getTransitionDeclaration_Postcondition() + * @model containment="true" + * @generated + */ + EList<PostconditionDeclaration> getPostcondition(); + +} // TransitionDeclaration diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ConditionDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ConditionDeclarationImpl.java index ffc3e6c07..3d32059a7 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ConditionDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ConditionDeclarationImpl.java @@ -1,194 +1,194 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Condition Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ConditionDeclarationImpl extends MinimalEObjectImpl.Container implements ConditionDeclaration
-{
- /**
- * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSignal()
- * @generated
- * @ordered
- */
- protected SignalDeclaration signal;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ConditionDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.CONDITION_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SignalDeclaration getSignal()
- {
- return signal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs)
- {
- SignalDeclaration oldSignal = signal;
- signal = newSignal;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.CONDITION_DECLARATION__SIGNAL, oldSignal, newSignal);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSignal(SignalDeclaration newSignal)
- {
- if (newSignal != signal)
- {
- NotificationChain msgs = null;
- if (signal != null)
- msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.CONDITION_DECLARATION__SIGNAL, null, msgs);
- if (newSignal != null)
- msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.CONDITION_DECLARATION__SIGNAL, null, msgs);
- msgs = basicSetSignal(newSignal, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.CONDITION_DECLARATION__SIGNAL, newSignal, newSignal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.CONDITION_DECLARATION__SIGNAL:
- return basicSetSignal(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.CONDITION_DECLARATION__SIGNAL:
- return getSignal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.CONDITION_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.CONDITION_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.CONDITION_DECLARATION__SIGNAL:
- return signal != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //ConditionDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Condition Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.ConditionDeclarationImpl#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ConditionDeclarationImpl extends MinimalEObjectImpl.Container implements ConditionDeclaration +{ + /** + * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSignal() + * @generated + * @ordered + */ + protected SignalDeclaration signal; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ConditionDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.CONDITION_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SignalDeclaration getSignal() + { + return signal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs) + { + SignalDeclaration oldSignal = signal; + signal = newSignal; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.CONDITION_DECLARATION__SIGNAL, oldSignal, newSignal); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSignal(SignalDeclaration newSignal) + { + if (newSignal != signal) + { + NotificationChain msgs = null; + if (signal != null) + msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.CONDITION_DECLARATION__SIGNAL, null, msgs); + if (newSignal != null) + msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.CONDITION_DECLARATION__SIGNAL, null, msgs); + msgs = basicSetSignal(newSignal, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.CONDITION_DECLARATION__SIGNAL, newSignal, newSignal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.CONDITION_DECLARATION__SIGNAL: + return basicSetSignal(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.CONDITION_DECLARATION__SIGNAL: + return getSignal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.CONDITION_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.CONDITION_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.CONDITION_DECLARATION__SIGNAL: + return signal != null; + } + return super.eIsSet(featureID); + } + +} //ConditionDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmDefinitionImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmDefinitionImpl.java index ad96ee822..faf7f296f 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmDefinitionImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmDefinitionImpl.java @@ -1,240 +1,240 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.etrice.generator.fsmtest.FsmDefinition;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.StateDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Fsm Definition</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl#getStates <em>States</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class FsmDefinitionImpl extends MinimalEObjectImpl.Container implements FsmDefinition
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getStates() <em>States</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStates()
- * @generated
- * @ordered
- */
- protected EList<StateDeclaration> states;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected FsmDefinitionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.FSM_DEFINITION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.FSM_DEFINITION__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<StateDeclaration> getStates()
- {
- if (states == null)
- {
- states = new EObjectContainmentEList<StateDeclaration>(StateDeclaration.class, this, FsmtestPackage.FSM_DEFINITION__STATES);
- }
- return states;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.FSM_DEFINITION__STATES:
- return ((InternalEList<?>)getStates()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.FSM_DEFINITION__NAME:
- return getName();
- case FsmtestPackage.FSM_DEFINITION__STATES:
- return getStates();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.FSM_DEFINITION__NAME:
- setName((String)newValue);
- return;
- case FsmtestPackage.FSM_DEFINITION__STATES:
- getStates().clear();
- getStates().addAll((Collection<? extends StateDeclaration>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.FSM_DEFINITION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case FsmtestPackage.FSM_DEFINITION__STATES:
- getStates().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.FSM_DEFINITION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case FsmtestPackage.FSM_DEFINITION__STATES:
- return states != null && !states.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //FsmDefinitionImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.etrice.generator.fsmtest.FsmDefinition; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.StateDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Fsm Definition</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.FsmDefinitionImpl#getStates <em>States</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FsmDefinitionImpl extends MinimalEObjectImpl.Container implements FsmDefinition +{ + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getStates() <em>States</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStates() + * @generated + * @ordered + */ + protected EList<StateDeclaration> states; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FsmDefinitionImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.FSM_DEFINITION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.FSM_DEFINITION__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<StateDeclaration> getStates() + { + if (states == null) + { + states = new EObjectContainmentEList<StateDeclaration>(StateDeclaration.class, this, FsmtestPackage.FSM_DEFINITION__STATES); + } + return states; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.FSM_DEFINITION__STATES: + return ((InternalEList<?>)getStates()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.FSM_DEFINITION__NAME: + return getName(); + case FsmtestPackage.FSM_DEFINITION__STATES: + return getStates(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.FSM_DEFINITION__NAME: + setName((String)newValue); + return; + case FsmtestPackage.FSM_DEFINITION__STATES: + getStates().clear(); + getStates().addAll((Collection<? extends StateDeclaration>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.FSM_DEFINITION__NAME: + setName(NAME_EDEFAULT); + return; + case FsmtestPackage.FSM_DEFINITION__STATES: + getStates().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.FSM_DEFINITION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case FsmtestPackage.FSM_DEFINITION__STATES: + return states != null && !states.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //FsmDefinitionImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestFactoryImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestFactoryImpl.java index 68bacc465..cb3a1564e 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestFactoryImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestFactoryImpl.java @@ -1,238 +1,238 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.etrice.generator.fsmtest.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class FsmtestFactoryImpl extends EFactoryImpl implements FsmtestFactory
-{
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static FsmtestFactory init()
- {
- try
- {
- FsmtestFactory theFsmtestFactory = (FsmtestFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/etrice/generator/FSMtest");
- if (theFsmtestFactory != null)
- {
- return theFsmtestFactory;
- }
- }
- catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new FsmtestFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmtestFactoryImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case FsmtestPackage.MODEL: return createModel();
- case FsmtestPackage.FSM_DEFINITION: return createFsmDefinition();
- case FsmtestPackage.RANDOM_TEST: return createRandomTest();
- case FsmtestPackage.GUARD_DECLARATION: return createGuardDeclaration();
- case FsmtestPackage.TRANSITION_DECLARATION: return createTransitionDeclaration();
- case FsmtestPackage.CONDITION_DECLARATION: return createConditionDeclaration();
- case FsmtestPackage.PRECONDITION_DECLARATION: return createPreconditionDeclaration();
- case FsmtestPackage.POSTCONDITION_DECLARATION: return createPostconditionDeclaration();
- case FsmtestPackage.STATE_DECLARATION: return createStateDeclaration();
- case FsmtestPackage.LOOPS_DECLARATION: return createLoopsDeclaration();
- case FsmtestPackage.SEED_DECLARATION: return createSeedDeclaration();
- case FsmtestPackage.SIGNAL_DECLARATION: return createSignalDeclaration();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Model createModel()
- {
- ModelImpl model = new ModelImpl();
- return model;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmDefinition createFsmDefinition()
- {
- FsmDefinitionImpl fsmDefinition = new FsmDefinitionImpl();
- return fsmDefinition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RandomTest createRandomTest()
- {
- RandomTestImpl randomTest = new RandomTestImpl();
- return randomTest;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public GuardDeclaration createGuardDeclaration()
- {
- GuardDeclarationImpl guardDeclaration = new GuardDeclarationImpl();
- return guardDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TransitionDeclaration createTransitionDeclaration()
- {
- TransitionDeclarationImpl transitionDeclaration = new TransitionDeclarationImpl();
- return transitionDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ConditionDeclaration createConditionDeclaration()
- {
- ConditionDeclarationImpl conditionDeclaration = new ConditionDeclarationImpl();
- return conditionDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PreconditionDeclaration createPreconditionDeclaration()
- {
- PreconditionDeclarationImpl preconditionDeclaration = new PreconditionDeclarationImpl();
- return preconditionDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PostconditionDeclaration createPostconditionDeclaration()
- {
- PostconditionDeclarationImpl postconditionDeclaration = new PostconditionDeclarationImpl();
- return postconditionDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StateDeclaration createStateDeclaration()
- {
- StateDeclarationImpl stateDeclaration = new StateDeclarationImpl();
- return stateDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LoopsDeclaration createLoopsDeclaration()
- {
- LoopsDeclarationImpl loopsDeclaration = new LoopsDeclarationImpl();
- return loopsDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SeedDeclaration createSeedDeclaration()
- {
- SeedDeclarationImpl seedDeclaration = new SeedDeclarationImpl();
- return seedDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SignalDeclaration createSignalDeclaration()
- {
- SignalDeclarationImpl signalDeclaration = new SignalDeclarationImpl();
- return signalDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmtestPackage getFsmtestPackage()
- {
- return (FsmtestPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static FsmtestPackage getPackage()
- {
- return FsmtestPackage.eINSTANCE;
- }
-
-} //FsmtestFactoryImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import org.eclipse.etrice.generator.fsmtest.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class FsmtestFactoryImpl extends EFactoryImpl implements FsmtestFactory +{ + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static FsmtestFactory init() + { + try + { + FsmtestFactory theFsmtestFactory = (FsmtestFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/etrice/generator/FSMtest"); + if (theFsmtestFactory != null) + { + return theFsmtestFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new FsmtestFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmtestFactoryImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case FsmtestPackage.MODEL: return createModel(); + case FsmtestPackage.FSM_DEFINITION: return createFsmDefinition(); + case FsmtestPackage.RANDOM_TEST: return createRandomTest(); + case FsmtestPackage.GUARD_DECLARATION: return createGuardDeclaration(); + case FsmtestPackage.TRANSITION_DECLARATION: return createTransitionDeclaration(); + case FsmtestPackage.CONDITION_DECLARATION: return createConditionDeclaration(); + case FsmtestPackage.PRECONDITION_DECLARATION: return createPreconditionDeclaration(); + case FsmtestPackage.POSTCONDITION_DECLARATION: return createPostconditionDeclaration(); + case FsmtestPackage.STATE_DECLARATION: return createStateDeclaration(); + case FsmtestPackage.LOOPS_DECLARATION: return createLoopsDeclaration(); + case FsmtestPackage.SEED_DECLARATION: return createSeedDeclaration(); + case FsmtestPackage.SIGNAL_DECLARATION: return createSignalDeclaration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Model createModel() + { + ModelImpl model = new ModelImpl(); + return model; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmDefinition createFsmDefinition() + { + FsmDefinitionImpl fsmDefinition = new FsmDefinitionImpl(); + return fsmDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RandomTest createRandomTest() + { + RandomTestImpl randomTest = new RandomTestImpl(); + return randomTest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuardDeclaration createGuardDeclaration() + { + GuardDeclarationImpl guardDeclaration = new GuardDeclarationImpl(); + return guardDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TransitionDeclaration createTransitionDeclaration() + { + TransitionDeclarationImpl transitionDeclaration = new TransitionDeclarationImpl(); + return transitionDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConditionDeclaration createConditionDeclaration() + { + ConditionDeclarationImpl conditionDeclaration = new ConditionDeclarationImpl(); + return conditionDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreconditionDeclaration createPreconditionDeclaration() + { + PreconditionDeclarationImpl preconditionDeclaration = new PreconditionDeclarationImpl(); + return preconditionDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostconditionDeclaration createPostconditionDeclaration() + { + PostconditionDeclarationImpl postconditionDeclaration = new PostconditionDeclarationImpl(); + return postconditionDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public StateDeclaration createStateDeclaration() + { + StateDeclarationImpl stateDeclaration = new StateDeclarationImpl(); + return stateDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LoopsDeclaration createLoopsDeclaration() + { + LoopsDeclarationImpl loopsDeclaration = new LoopsDeclarationImpl(); + return loopsDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SeedDeclaration createSeedDeclaration() + { + SeedDeclarationImpl seedDeclaration = new SeedDeclarationImpl(); + return seedDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SignalDeclaration createSignalDeclaration() + { + SignalDeclarationImpl signalDeclaration = new SignalDeclarationImpl(); + return signalDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmtestPackage getFsmtestPackage() + { + return (FsmtestPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static FsmtestPackage getPackage() + { + return FsmtestPackage.eINSTANCE; + } + +} //FsmtestFactoryImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestPackageImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestPackageImpl.java index 8ae468b9a..9d7ec06e3 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestPackageImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/FsmtestPackageImpl.java @@ -1,740 +1,740 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.FsmDefinition;
-import org.eclipse.etrice.generator.fsmtest.FsmtestFactory;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.GuardDeclaration;
-import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration;
-import org.eclipse.etrice.generator.fsmtest.Model;
-import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.RandomTest;
-import org.eclipse.etrice.generator.fsmtest.SeedDeclaration;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-import org.eclipse.etrice.generator.fsmtest.StateDeclaration;
-import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class FsmtestPackageImpl extends EPackageImpl implements FsmtestPackage
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass modelEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass fsmDefinitionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass randomTestEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass guardDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass transitionDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass conditionDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass preconditionDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass postconditionDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass stateDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass loopsDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass seedDeclarationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass signalDeclarationEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private FsmtestPackageImpl()
- {
- super(eNS_URI, FsmtestFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>This method is used to initialize {@link FsmtestPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static FsmtestPackage init()
- {
- if (isInited) return (FsmtestPackage)EPackage.Registry.INSTANCE.getEPackage(FsmtestPackage.eNS_URI);
-
- // Obtain or create and register package
- FsmtestPackageImpl theFsmtestPackage = (FsmtestPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FsmtestPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FsmtestPackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theFsmtestPackage.createPackageContents();
-
- // Initialize created meta-data
- theFsmtestPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theFsmtestPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(FsmtestPackage.eNS_URI, theFsmtestPackage);
- return theFsmtestPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getModel()
- {
- return modelEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_FsmDefinitions()
- {
- return (EReference)modelEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_RandomTests()
- {
- return (EReference)modelEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getFsmDefinition()
- {
- return fsmDefinitionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getFsmDefinition_Name()
- {
- return (EAttribute)fsmDefinitionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getFsmDefinition_States()
- {
- return (EReference)fsmDefinitionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getRandomTest()
- {
- return randomTestEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRandomTest_Name()
- {
- return (EAttribute)randomTestEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRandomTest_Fsm()
- {
- return (EReference)randomTestEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRandomTest_LoopsDeclaration()
- {
- return (EReference)randomTestEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRandomTest_SeedDeclaration()
- {
- return (EReference)randomTestEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getGuardDeclaration()
- {
- return guardDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getGuardDeclaration_Signal()
- {
- return (EReference)guardDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getTransitionDeclaration()
- {
- return transitionDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getTransitionDeclaration_Name()
- {
- return (EAttribute)transitionDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransitionDeclaration_Destination()
- {
- return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransitionDeclaration_Trigger()
- {
- return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransitionDeclaration_Triggers()
- {
- return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransitionDeclaration_Precondition()
- {
- return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransitionDeclaration_Postcondition()
- {
- return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getConditionDeclaration()
- {
- return conditionDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getConditionDeclaration_Signal()
- {
- return (EReference)conditionDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPreconditionDeclaration()
- {
- return preconditionDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPreconditionDeclaration_Signal()
- {
- return (EReference)preconditionDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPostconditionDeclaration()
- {
- return postconditionDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPostconditionDeclaration_Signal()
- {
- return (EReference)postconditionDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getStateDeclaration()
- {
- return stateDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getStateDeclaration_Name()
- {
- return (EAttribute)stateDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getStateDeclaration_Condition()
- {
- return (EReference)stateDeclarationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getStateDeclaration_Transitions()
- {
- return (EReference)stateDeclarationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getLoopsDeclaration()
- {
- return loopsDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLoopsDeclaration_Val()
- {
- return (EAttribute)loopsDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSeedDeclaration()
- {
- return seedDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSeedDeclaration_Val()
- {
- return (EAttribute)seedDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSignalDeclaration()
- {
- return signalDeclarationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSignalDeclaration_Port()
- {
- return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSignalDeclaration_Signame()
- {
- return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSignalDeclaration_IntVal()
- {
- return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSignalDeclaration_StrVal()
- {
- return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmtestFactory getFsmtestFactory()
- {
- return (FsmtestFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- modelEClass = createEClass(MODEL);
- createEReference(modelEClass, MODEL__FSM_DEFINITIONS);
- createEReference(modelEClass, MODEL__RANDOM_TESTS);
-
- fsmDefinitionEClass = createEClass(FSM_DEFINITION);
- createEAttribute(fsmDefinitionEClass, FSM_DEFINITION__NAME);
- createEReference(fsmDefinitionEClass, FSM_DEFINITION__STATES);
-
- randomTestEClass = createEClass(RANDOM_TEST);
- createEAttribute(randomTestEClass, RANDOM_TEST__NAME);
- createEReference(randomTestEClass, RANDOM_TEST__FSM);
- createEReference(randomTestEClass, RANDOM_TEST__LOOPS_DECLARATION);
- createEReference(randomTestEClass, RANDOM_TEST__SEED_DECLARATION);
-
- guardDeclarationEClass = createEClass(GUARD_DECLARATION);
- createEReference(guardDeclarationEClass, GUARD_DECLARATION__SIGNAL);
-
- transitionDeclarationEClass = createEClass(TRANSITION_DECLARATION);
- createEAttribute(transitionDeclarationEClass, TRANSITION_DECLARATION__NAME);
- createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__DESTINATION);
- createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__TRIGGER);
- createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__TRIGGERS);
- createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__PRECONDITION);
- createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__POSTCONDITION);
-
- conditionDeclarationEClass = createEClass(CONDITION_DECLARATION);
- createEReference(conditionDeclarationEClass, CONDITION_DECLARATION__SIGNAL);
-
- preconditionDeclarationEClass = createEClass(PRECONDITION_DECLARATION);
- createEReference(preconditionDeclarationEClass, PRECONDITION_DECLARATION__SIGNAL);
-
- postconditionDeclarationEClass = createEClass(POSTCONDITION_DECLARATION);
- createEReference(postconditionDeclarationEClass, POSTCONDITION_DECLARATION__SIGNAL);
-
- stateDeclarationEClass = createEClass(STATE_DECLARATION);
- createEAttribute(stateDeclarationEClass, STATE_DECLARATION__NAME);
- createEReference(stateDeclarationEClass, STATE_DECLARATION__CONDITION);
- createEReference(stateDeclarationEClass, STATE_DECLARATION__TRANSITIONS);
-
- loopsDeclarationEClass = createEClass(LOOPS_DECLARATION);
- createEAttribute(loopsDeclarationEClass, LOOPS_DECLARATION__VAL);
-
- seedDeclarationEClass = createEClass(SEED_DECLARATION);
- createEAttribute(seedDeclarationEClass, SEED_DECLARATION__VAL);
-
- signalDeclarationEClass = createEClass(SIGNAL_DECLARATION);
- createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__PORT);
- createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__SIGNAME);
- createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__INT_VAL);
- createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__STR_VAL);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getModel_FsmDefinitions(), this.getFsmDefinition(), null, "FsmDefinitions", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_RandomTests(), this.getRandomTest(), null, "RandomTests", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(fsmDefinitionEClass, FsmDefinition.class, "FsmDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getFsmDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, FsmDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFsmDefinition_States(), this.getStateDeclaration(), null, "states", null, 0, -1, FsmDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(randomTestEClass, RandomTest.class, "RandomTest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRandomTest_Name(), ecorePackage.getEString(), "name", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRandomTest_Fsm(), this.getFsmDefinition(), null, "fsm", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRandomTest_LoopsDeclaration(), this.getLoopsDeclaration(), null, "loopsDeclaration", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRandomTest_SeedDeclaration(), this.getSeedDeclaration(), null, "seedDeclaration", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(guardDeclarationEClass, GuardDeclaration.class, "GuardDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getGuardDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, GuardDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(transitionDeclarationEClass, TransitionDeclaration.class, "TransitionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTransitionDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTransitionDeclaration_Destination(), this.getStateDeclaration(), null, "destination", null, 0, 1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTransitionDeclaration_Trigger(), this.getSignalDeclaration(), null, "trigger", null, 0, 1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTransitionDeclaration_Triggers(), this.getGuardDeclaration(), null, "triggers", null, 0, -1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTransitionDeclaration_Precondition(), this.getPreconditionDeclaration(), null, "precondition", null, 0, -1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTransitionDeclaration_Postcondition(), this.getPostconditionDeclaration(), null, "postcondition", null, 0, -1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(conditionDeclarationEClass, ConditionDeclaration.class, "ConditionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConditionDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, ConditionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(preconditionDeclarationEClass, PreconditionDeclaration.class, "PreconditionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPreconditionDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, PreconditionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(postconditionDeclarationEClass, PostconditionDeclaration.class, "PostconditionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPostconditionDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, PostconditionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(stateDeclarationEClass, StateDeclaration.class, "StateDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getStateDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, StateDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getStateDeclaration_Condition(), this.getConditionDeclaration(), null, "condition", null, 0, -1, StateDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getStateDeclaration_Transitions(), this.getTransitionDeclaration(), null, "transitions", null, 0, -1, StateDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(loopsDeclarationEClass, LoopsDeclaration.class, "LoopsDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLoopsDeclaration_Val(), ecorePackage.getEInt(), "val", null, 0, 1, LoopsDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(seedDeclarationEClass, SeedDeclaration.class, "SeedDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSeedDeclaration_Val(), ecorePackage.getEInt(), "val", null, 0, 1, SeedDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(signalDeclarationEClass, SignalDeclaration.class, "SignalDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSignalDeclaration_Port(), ecorePackage.getEString(), "port", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSignalDeclaration_Signame(), ecorePackage.getEString(), "signame", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSignalDeclaration_IntVal(), ecorePackage.getEInt(), "intVal", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSignalDeclaration_StrVal(), ecorePackage.getEString(), "strVal", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //FsmtestPackageImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.FsmDefinition; +import org.eclipse.etrice.generator.fsmtest.FsmtestFactory; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.GuardDeclaration; +import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration; +import org.eclipse.etrice.generator.fsmtest.Model; +import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.RandomTest; +import org.eclipse.etrice.generator.fsmtest.SeedDeclaration; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; +import org.eclipse.etrice.generator.fsmtest.StateDeclaration; +import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class FsmtestPackageImpl extends EPackageImpl implements FsmtestPackage +{ + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass modelEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass fsmDefinitionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass randomTestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guardDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass transitionDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass conditionDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass preconditionDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass postconditionDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass stateDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass loopsDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass seedDeclarationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass signalDeclarationEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage#eNS_URI + * @see #init() + * @generated + */ + private FsmtestPackageImpl() + { + super(eNS_URI, FsmtestFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link FsmtestPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static FsmtestPackage init() + { + if (isInited) return (FsmtestPackage)EPackage.Registry.INSTANCE.getEPackage(FsmtestPackage.eNS_URI); + + // Obtain or create and register package + FsmtestPackageImpl theFsmtestPackage = (FsmtestPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FsmtestPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FsmtestPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theFsmtestPackage.createPackageContents(); + + // Initialize created meta-data + theFsmtestPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theFsmtestPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(FsmtestPackage.eNS_URI, theFsmtestPackage); + return theFsmtestPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getModel() + { + return modelEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getModel_FsmDefinitions() + { + return (EReference)modelEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getModel_RandomTests() + { + return (EReference)modelEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFsmDefinition() + { + return fsmDefinitionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFsmDefinition_Name() + { + return (EAttribute)fsmDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getFsmDefinition_States() + { + return (EReference)fsmDefinitionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRandomTest() + { + return randomTestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRandomTest_Name() + { + return (EAttribute)randomTestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRandomTest_Fsm() + { + return (EReference)randomTestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRandomTest_LoopsDeclaration() + { + return (EReference)randomTestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRandomTest_SeedDeclaration() + { + return (EReference)randomTestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuardDeclaration() + { + return guardDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuardDeclaration_Signal() + { + return (EReference)guardDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTransitionDeclaration() + { + return transitionDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTransitionDeclaration_Name() + { + return (EAttribute)transitionDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransitionDeclaration_Destination() + { + return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransitionDeclaration_Trigger() + { + return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransitionDeclaration_Triggers() + { + return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransitionDeclaration_Precondition() + { + return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransitionDeclaration_Postcondition() + { + return (EReference)transitionDeclarationEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getConditionDeclaration() + { + return conditionDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConditionDeclaration_Signal() + { + return (EReference)conditionDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPreconditionDeclaration() + { + return preconditionDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPreconditionDeclaration_Signal() + { + return (EReference)preconditionDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPostconditionDeclaration() + { + return postconditionDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPostconditionDeclaration_Signal() + { + return (EReference)postconditionDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getStateDeclaration() + { + return stateDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getStateDeclaration_Name() + { + return (EAttribute)stateDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getStateDeclaration_Condition() + { + return (EReference)stateDeclarationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getStateDeclaration_Transitions() + { + return (EReference)stateDeclarationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLoopsDeclaration() + { + return loopsDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLoopsDeclaration_Val() + { + return (EAttribute)loopsDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSeedDeclaration() + { + return seedDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSeedDeclaration_Val() + { + return (EAttribute)seedDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSignalDeclaration() + { + return signalDeclarationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSignalDeclaration_Port() + { + return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSignalDeclaration_Signame() + { + return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSignalDeclaration_IntVal() + { + return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSignalDeclaration_StrVal() + { + return (EAttribute)signalDeclarationEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmtestFactory getFsmtestFactory() + { + return (FsmtestFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() + { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + modelEClass = createEClass(MODEL); + createEReference(modelEClass, MODEL__FSM_DEFINITIONS); + createEReference(modelEClass, MODEL__RANDOM_TESTS); + + fsmDefinitionEClass = createEClass(FSM_DEFINITION); + createEAttribute(fsmDefinitionEClass, FSM_DEFINITION__NAME); + createEReference(fsmDefinitionEClass, FSM_DEFINITION__STATES); + + randomTestEClass = createEClass(RANDOM_TEST); + createEAttribute(randomTestEClass, RANDOM_TEST__NAME); + createEReference(randomTestEClass, RANDOM_TEST__FSM); + createEReference(randomTestEClass, RANDOM_TEST__LOOPS_DECLARATION); + createEReference(randomTestEClass, RANDOM_TEST__SEED_DECLARATION); + + guardDeclarationEClass = createEClass(GUARD_DECLARATION); + createEReference(guardDeclarationEClass, GUARD_DECLARATION__SIGNAL); + + transitionDeclarationEClass = createEClass(TRANSITION_DECLARATION); + createEAttribute(transitionDeclarationEClass, TRANSITION_DECLARATION__NAME); + createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__DESTINATION); + createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__TRIGGER); + createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__TRIGGERS); + createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__PRECONDITION); + createEReference(transitionDeclarationEClass, TRANSITION_DECLARATION__POSTCONDITION); + + conditionDeclarationEClass = createEClass(CONDITION_DECLARATION); + createEReference(conditionDeclarationEClass, CONDITION_DECLARATION__SIGNAL); + + preconditionDeclarationEClass = createEClass(PRECONDITION_DECLARATION); + createEReference(preconditionDeclarationEClass, PRECONDITION_DECLARATION__SIGNAL); + + postconditionDeclarationEClass = createEClass(POSTCONDITION_DECLARATION); + createEReference(postconditionDeclarationEClass, POSTCONDITION_DECLARATION__SIGNAL); + + stateDeclarationEClass = createEClass(STATE_DECLARATION); + createEAttribute(stateDeclarationEClass, STATE_DECLARATION__NAME); + createEReference(stateDeclarationEClass, STATE_DECLARATION__CONDITION); + createEReference(stateDeclarationEClass, STATE_DECLARATION__TRANSITIONS); + + loopsDeclarationEClass = createEClass(LOOPS_DECLARATION); + createEAttribute(loopsDeclarationEClass, LOOPS_DECLARATION__VAL); + + seedDeclarationEClass = createEClass(SEED_DECLARATION); + createEAttribute(seedDeclarationEClass, SEED_DECLARATION__VAL); + + signalDeclarationEClass = createEClass(SIGNAL_DECLARATION); + createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__PORT); + createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__SIGNAME); + createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__INT_VAL); + createEAttribute(signalDeclarationEClass, SIGNAL_DECLARATION__STR_VAL); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() + { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getModel_FsmDefinitions(), this.getFsmDefinition(), null, "FsmDefinitions", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getModel_RandomTests(), this.getRandomTest(), null, "RandomTests", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fsmDefinitionEClass, FsmDefinition.class, "FsmDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFsmDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, FsmDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFsmDefinition_States(), this.getStateDeclaration(), null, "states", null, 0, -1, FsmDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(randomTestEClass, RandomTest.class, "RandomTest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRandomTest_Name(), ecorePackage.getEString(), "name", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRandomTest_Fsm(), this.getFsmDefinition(), null, "fsm", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRandomTest_LoopsDeclaration(), this.getLoopsDeclaration(), null, "loopsDeclaration", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRandomTest_SeedDeclaration(), this.getSeedDeclaration(), null, "seedDeclaration", null, 0, 1, RandomTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(guardDeclarationEClass, GuardDeclaration.class, "GuardDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGuardDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, GuardDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(transitionDeclarationEClass, TransitionDeclaration.class, "TransitionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTransitionDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTransitionDeclaration_Destination(), this.getStateDeclaration(), null, "destination", null, 0, 1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTransitionDeclaration_Trigger(), this.getSignalDeclaration(), null, "trigger", null, 0, 1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTransitionDeclaration_Triggers(), this.getGuardDeclaration(), null, "triggers", null, 0, -1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTransitionDeclaration_Precondition(), this.getPreconditionDeclaration(), null, "precondition", null, 0, -1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTransitionDeclaration_Postcondition(), this.getPostconditionDeclaration(), null, "postcondition", null, 0, -1, TransitionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(conditionDeclarationEClass, ConditionDeclaration.class, "ConditionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConditionDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, ConditionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(preconditionDeclarationEClass, PreconditionDeclaration.class, "PreconditionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPreconditionDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, PreconditionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(postconditionDeclarationEClass, PostconditionDeclaration.class, "PostconditionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPostconditionDeclaration_Signal(), this.getSignalDeclaration(), null, "signal", null, 0, 1, PostconditionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stateDeclarationEClass, StateDeclaration.class, "StateDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStateDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, StateDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getStateDeclaration_Condition(), this.getConditionDeclaration(), null, "condition", null, 0, -1, StateDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getStateDeclaration_Transitions(), this.getTransitionDeclaration(), null, "transitions", null, 0, -1, StateDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(loopsDeclarationEClass, LoopsDeclaration.class, "LoopsDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLoopsDeclaration_Val(), ecorePackage.getEInt(), "val", null, 0, 1, LoopsDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(seedDeclarationEClass, SeedDeclaration.class, "SeedDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSeedDeclaration_Val(), ecorePackage.getEInt(), "val", null, 0, 1, SeedDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(signalDeclarationEClass, SignalDeclaration.class, "SignalDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSignalDeclaration_Port(), ecorePackage.getEString(), "port", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSignalDeclaration_Signame(), ecorePackage.getEString(), "signame", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSignalDeclaration_IntVal(), ecorePackage.getEInt(), "intVal", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSignalDeclaration_StrVal(), ecorePackage.getEString(), "strVal", null, 0, 1, SignalDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //FsmtestPackageImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/GuardDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/GuardDeclarationImpl.java index 0e1aed35a..d60b0063e 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/GuardDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/GuardDeclarationImpl.java @@ -1,194 +1,194 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.GuardDeclaration;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Guard Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class GuardDeclarationImpl extends MinimalEObjectImpl.Container implements GuardDeclaration
-{
- /**
- * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSignal()
- * @generated
- * @ordered
- */
- protected SignalDeclaration signal;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected GuardDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.GUARD_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SignalDeclaration getSignal()
- {
- return signal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs)
- {
- SignalDeclaration oldSignal = signal;
- signal = newSignal;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.GUARD_DECLARATION__SIGNAL, oldSignal, newSignal);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSignal(SignalDeclaration newSignal)
- {
- if (newSignal != signal)
- {
- NotificationChain msgs = null;
- if (signal != null)
- msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.GUARD_DECLARATION__SIGNAL, null, msgs);
- if (newSignal != null)
- msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.GUARD_DECLARATION__SIGNAL, null, msgs);
- msgs = basicSetSignal(newSignal, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.GUARD_DECLARATION__SIGNAL, newSignal, newSignal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.GUARD_DECLARATION__SIGNAL:
- return basicSetSignal(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.GUARD_DECLARATION__SIGNAL:
- return getSignal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.GUARD_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.GUARD_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.GUARD_DECLARATION__SIGNAL:
- return signal != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //GuardDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.GuardDeclaration; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Guard Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.GuardDeclarationImpl#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuardDeclarationImpl extends MinimalEObjectImpl.Container implements GuardDeclaration +{ + /** + * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSignal() + * @generated + * @ordered + */ + protected SignalDeclaration signal; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuardDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.GUARD_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SignalDeclaration getSignal() + { + return signal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs) + { + SignalDeclaration oldSignal = signal; + signal = newSignal; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.GUARD_DECLARATION__SIGNAL, oldSignal, newSignal); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSignal(SignalDeclaration newSignal) + { + if (newSignal != signal) + { + NotificationChain msgs = null; + if (signal != null) + msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.GUARD_DECLARATION__SIGNAL, null, msgs); + if (newSignal != null) + msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.GUARD_DECLARATION__SIGNAL, null, msgs); + msgs = basicSetSignal(newSignal, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.GUARD_DECLARATION__SIGNAL, newSignal, newSignal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.GUARD_DECLARATION__SIGNAL: + return basicSetSignal(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.GUARD_DECLARATION__SIGNAL: + return getSignal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.GUARD_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.GUARD_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.GUARD_DECLARATION__SIGNAL: + return signal != null; + } + return super.eIsSet(featureID); + } + +} //GuardDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/LoopsDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/LoopsDeclarationImpl.java index 73079bff8..4aaeb728c 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/LoopsDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/LoopsDeclarationImpl.java @@ -1,177 +1,177 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Loops Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl#getVal <em>Val</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class LoopsDeclarationImpl extends MinimalEObjectImpl.Container implements LoopsDeclaration
-{
- /**
- * The default value of the '{@link #getVal() <em>Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVal()
- * @generated
- * @ordered
- */
- protected static final int VAL_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getVal() <em>Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVal()
- * @generated
- * @ordered
- */
- protected int val = VAL_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LoopsDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.LOOPS_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getVal()
- {
- return val;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setVal(int newVal)
- {
- int oldVal = val;
- val = newVal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.LOOPS_DECLARATION__VAL, oldVal, val));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.LOOPS_DECLARATION__VAL:
- return getVal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.LOOPS_DECLARATION__VAL:
- setVal((Integer)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.LOOPS_DECLARATION__VAL:
- setVal(VAL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.LOOPS_DECLARATION__VAL:
- return val != VAL_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (val: ");
- result.append(val);
- result.append(')');
- return result.toString();
- }
-
-} //LoopsDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Loops Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.LoopsDeclarationImpl#getVal <em>Val</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class LoopsDeclarationImpl extends MinimalEObjectImpl.Container implements LoopsDeclaration +{ + /** + * The default value of the '{@link #getVal() <em>Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVal() + * @generated + * @ordered + */ + protected static final int VAL_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVal() <em>Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVal() + * @generated + * @ordered + */ + protected int val = VAL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected LoopsDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.LOOPS_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getVal() + { + return val; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVal(int newVal) + { + int oldVal = val; + val = newVal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.LOOPS_DECLARATION__VAL, oldVal, val)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.LOOPS_DECLARATION__VAL: + return getVal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.LOOPS_DECLARATION__VAL: + setVal((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.LOOPS_DECLARATION__VAL: + setVal(VAL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.LOOPS_DECLARATION__VAL: + return val != VAL_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (val: "); + result.append(val); + result.append(')'); + return result.toString(); + } + +} //LoopsDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ModelImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ModelImpl.java index bb3bdcbfa..997036b51 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ModelImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/ModelImpl.java @@ -1,206 +1,206 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.etrice.generator.fsmtest.FsmDefinition;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.Model;
-import org.eclipse.etrice.generator.fsmtest.RandomTest;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Model</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl#getFsmDefinitions <em>Fsm Definitions</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl#getRandomTests <em>Random Tests</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ModelImpl extends MinimalEObjectImpl.Container implements Model
-{
- /**
- * The cached value of the '{@link #getFsmDefinitions() <em>Fsm Definitions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFsmDefinitions()
- * @generated
- * @ordered
- */
- protected EList<FsmDefinition> fsmDefinitions;
-
- /**
- * The cached value of the '{@link #getRandomTests() <em>Random Tests</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRandomTests()
- * @generated
- * @ordered
- */
- protected EList<RandomTest> randomTests;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ModelImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.MODEL;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<FsmDefinition> getFsmDefinitions()
- {
- if (fsmDefinitions == null)
- {
- fsmDefinitions = new EObjectContainmentEList<FsmDefinition>(FsmDefinition.class, this, FsmtestPackage.MODEL__FSM_DEFINITIONS);
- }
- return fsmDefinitions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<RandomTest> getRandomTests()
- {
- if (randomTests == null)
- {
- randomTests = new EObjectContainmentEList<RandomTest>(RandomTest.class, this, FsmtestPackage.MODEL__RANDOM_TESTS);
- }
- return randomTests;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.MODEL__FSM_DEFINITIONS:
- return ((InternalEList<?>)getFsmDefinitions()).basicRemove(otherEnd, msgs);
- case FsmtestPackage.MODEL__RANDOM_TESTS:
- return ((InternalEList<?>)getRandomTests()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.MODEL__FSM_DEFINITIONS:
- return getFsmDefinitions();
- case FsmtestPackage.MODEL__RANDOM_TESTS:
- return getRandomTests();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.MODEL__FSM_DEFINITIONS:
- getFsmDefinitions().clear();
- getFsmDefinitions().addAll((Collection<? extends FsmDefinition>)newValue);
- return;
- case FsmtestPackage.MODEL__RANDOM_TESTS:
- getRandomTests().clear();
- getRandomTests().addAll((Collection<? extends RandomTest>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.MODEL__FSM_DEFINITIONS:
- getFsmDefinitions().clear();
- return;
- case FsmtestPackage.MODEL__RANDOM_TESTS:
- getRandomTests().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.MODEL__FSM_DEFINITIONS:
- return fsmDefinitions != null && !fsmDefinitions.isEmpty();
- case FsmtestPackage.MODEL__RANDOM_TESTS:
- return randomTests != null && !randomTests.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //ModelImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.etrice.generator.fsmtest.FsmDefinition; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.Model; +import org.eclipse.etrice.generator.fsmtest.RandomTest; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Model</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl#getFsmDefinitions <em>Fsm Definitions</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.ModelImpl#getRandomTests <em>Random Tests</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ModelImpl extends MinimalEObjectImpl.Container implements Model +{ + /** + * The cached value of the '{@link #getFsmDefinitions() <em>Fsm Definitions</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFsmDefinitions() + * @generated + * @ordered + */ + protected EList<FsmDefinition> fsmDefinitions; + + /** + * The cached value of the '{@link #getRandomTests() <em>Random Tests</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRandomTests() + * @generated + * @ordered + */ + protected EList<RandomTest> randomTests; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ModelImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.MODEL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<FsmDefinition> getFsmDefinitions() + { + if (fsmDefinitions == null) + { + fsmDefinitions = new EObjectContainmentEList<FsmDefinition>(FsmDefinition.class, this, FsmtestPackage.MODEL__FSM_DEFINITIONS); + } + return fsmDefinitions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<RandomTest> getRandomTests() + { + if (randomTests == null) + { + randomTests = new EObjectContainmentEList<RandomTest>(RandomTest.class, this, FsmtestPackage.MODEL__RANDOM_TESTS); + } + return randomTests; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.MODEL__FSM_DEFINITIONS: + return ((InternalEList<?>)getFsmDefinitions()).basicRemove(otherEnd, msgs); + case FsmtestPackage.MODEL__RANDOM_TESTS: + return ((InternalEList<?>)getRandomTests()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.MODEL__FSM_DEFINITIONS: + return getFsmDefinitions(); + case FsmtestPackage.MODEL__RANDOM_TESTS: + return getRandomTests(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.MODEL__FSM_DEFINITIONS: + getFsmDefinitions().clear(); + getFsmDefinitions().addAll((Collection<? extends FsmDefinition>)newValue); + return; + case FsmtestPackage.MODEL__RANDOM_TESTS: + getRandomTests().clear(); + getRandomTests().addAll((Collection<? extends RandomTest>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.MODEL__FSM_DEFINITIONS: + getFsmDefinitions().clear(); + return; + case FsmtestPackage.MODEL__RANDOM_TESTS: + getRandomTests().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.MODEL__FSM_DEFINITIONS: + return fsmDefinitions != null && !fsmDefinitions.isEmpty(); + case FsmtestPackage.MODEL__RANDOM_TESTS: + return randomTests != null && !randomTests.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ModelImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PostconditionDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PostconditionDeclarationImpl.java index 78d93af87..d1f3a2d24 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PostconditionDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PostconditionDeclarationImpl.java @@ -1,194 +1,194 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Postcondition Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PostconditionDeclarationImpl extends MinimalEObjectImpl.Container implements PostconditionDeclaration
-{
- /**
- * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSignal()
- * @generated
- * @ordered
- */
- protected SignalDeclaration signal;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PostconditionDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.POSTCONDITION_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SignalDeclaration getSignal()
- {
- return signal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs)
- {
- SignalDeclaration oldSignal = signal;
- signal = newSignal;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, oldSignal, newSignal);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSignal(SignalDeclaration newSignal)
- {
- if (newSignal != signal)
- {
- NotificationChain msgs = null;
- if (signal != null)
- msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, null, msgs);
- if (newSignal != null)
- msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, null, msgs);
- msgs = basicSetSignal(newSignal, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, newSignal, newSignal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL:
- return basicSetSignal(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL:
- return getSignal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL:
- return signal != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //PostconditionDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Postcondition Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.PostconditionDeclarationImpl#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PostconditionDeclarationImpl extends MinimalEObjectImpl.Container implements PostconditionDeclaration +{ + /** + * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSignal() + * @generated + * @ordered + */ + protected SignalDeclaration signal; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PostconditionDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.POSTCONDITION_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SignalDeclaration getSignal() + { + return signal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs) + { + SignalDeclaration oldSignal = signal; + signal = newSignal; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, oldSignal, newSignal); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSignal(SignalDeclaration newSignal) + { + if (newSignal != signal) + { + NotificationChain msgs = null; + if (signal != null) + msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, null, msgs); + if (newSignal != null) + msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, null, msgs); + msgs = basicSetSignal(newSignal, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL, newSignal, newSignal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL: + return basicSetSignal(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL: + return getSignal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.POSTCONDITION_DECLARATION__SIGNAL: + return signal != null; + } + return super.eIsSet(featureID); + } + +} //PostconditionDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PreconditionDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PreconditionDeclarationImpl.java index 4c9c8eb2e..e37e1db97 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PreconditionDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/PreconditionDeclarationImpl.java @@ -1,194 +1,194 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Precondition Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl#getSignal <em>Signal</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PreconditionDeclarationImpl extends MinimalEObjectImpl.Container implements PreconditionDeclaration
-{
- /**
- * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSignal()
- * @generated
- * @ordered
- */
- protected SignalDeclaration signal;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PreconditionDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.PRECONDITION_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SignalDeclaration getSignal()
- {
- return signal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs)
- {
- SignalDeclaration oldSignal = signal;
- signal = newSignal;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, oldSignal, newSignal);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSignal(SignalDeclaration newSignal)
- {
- if (newSignal != signal)
- {
- NotificationChain msgs = null;
- if (signal != null)
- msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, null, msgs);
- if (newSignal != null)
- msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, null, msgs);
- msgs = basicSetSignal(newSignal, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, newSignal, newSignal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL:
- return basicSetSignal(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL:
- return getSignal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL:
- setSignal((SignalDeclaration)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL:
- return signal != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //PreconditionDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Precondition Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.PreconditionDeclarationImpl#getSignal <em>Signal</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PreconditionDeclarationImpl extends MinimalEObjectImpl.Container implements PreconditionDeclaration +{ + /** + * The cached value of the '{@link #getSignal() <em>Signal</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSignal() + * @generated + * @ordered + */ + protected SignalDeclaration signal; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PreconditionDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.PRECONDITION_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SignalDeclaration getSignal() + { + return signal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSignal(SignalDeclaration newSignal, NotificationChain msgs) + { + SignalDeclaration oldSignal = signal; + signal = newSignal; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, oldSignal, newSignal); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSignal(SignalDeclaration newSignal) + { + if (newSignal != signal) + { + NotificationChain msgs = null; + if (signal != null) + msgs = ((InternalEObject)signal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, null, msgs); + if (newSignal != null) + msgs = ((InternalEObject)newSignal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, null, msgs); + msgs = basicSetSignal(newSignal, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL, newSignal, newSignal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL: + return basicSetSignal(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL: + return getSignal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL: + setSignal((SignalDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.PRECONDITION_DECLARATION__SIGNAL: + return signal != null; + } + return super.eIsSet(featureID); + } + +} //PreconditionDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/RandomTestImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/RandomTestImpl.java index 999e9c1c9..1c26b8547 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/RandomTestImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/RandomTestImpl.java @@ -1,403 +1,403 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmDefinition;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration;
-import org.eclipse.etrice.generator.fsmtest.RandomTest;
-import org.eclipse.etrice.generator.fsmtest.SeedDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Random Test</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getFsm <em>Fsm</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getLoopsDeclaration <em>Loops Declaration</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getSeedDeclaration <em>Seed Declaration</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RandomTestImpl extends MinimalEObjectImpl.Container implements RandomTest
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getFsm() <em>Fsm</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFsm()
- * @generated
- * @ordered
- */
- protected FsmDefinition fsm;
-
- /**
- * The cached value of the '{@link #getLoopsDeclaration() <em>Loops Declaration</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLoopsDeclaration()
- * @generated
- * @ordered
- */
- protected LoopsDeclaration loopsDeclaration;
-
- /**
- * The cached value of the '{@link #getSeedDeclaration() <em>Seed Declaration</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSeedDeclaration()
- * @generated
- * @ordered
- */
- protected SeedDeclaration seedDeclaration;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected RandomTestImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.RANDOM_TEST;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmDefinition getFsm()
- {
- if (fsm != null && fsm.eIsProxy())
- {
- InternalEObject oldFsm = (InternalEObject)fsm;
- fsm = (FsmDefinition)eResolveProxy(oldFsm);
- if (fsm != oldFsm)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, FsmtestPackage.RANDOM_TEST__FSM, oldFsm, fsm));
- }
- }
- return fsm;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmDefinition basicGetFsm()
- {
- return fsm;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setFsm(FsmDefinition newFsm)
- {
- FsmDefinition oldFsm = fsm;
- fsm = newFsm;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__FSM, oldFsm, fsm));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LoopsDeclaration getLoopsDeclaration()
- {
- return loopsDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetLoopsDeclaration(LoopsDeclaration newLoopsDeclaration, NotificationChain msgs)
- {
- LoopsDeclaration oldLoopsDeclaration = loopsDeclaration;
- loopsDeclaration = newLoopsDeclaration;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, oldLoopsDeclaration, newLoopsDeclaration);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLoopsDeclaration(LoopsDeclaration newLoopsDeclaration)
- {
- if (newLoopsDeclaration != loopsDeclaration)
- {
- NotificationChain msgs = null;
- if (loopsDeclaration != null)
- msgs = ((InternalEObject)loopsDeclaration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, null, msgs);
- if (newLoopsDeclaration != null)
- msgs = ((InternalEObject)newLoopsDeclaration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, null, msgs);
- msgs = basicSetLoopsDeclaration(newLoopsDeclaration, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, newLoopsDeclaration, newLoopsDeclaration));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SeedDeclaration getSeedDeclaration()
- {
- return seedDeclaration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetSeedDeclaration(SeedDeclaration newSeedDeclaration, NotificationChain msgs)
- {
- SeedDeclaration oldSeedDeclaration = seedDeclaration;
- seedDeclaration = newSeedDeclaration;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, oldSeedDeclaration, newSeedDeclaration);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSeedDeclaration(SeedDeclaration newSeedDeclaration)
- {
- if (newSeedDeclaration != seedDeclaration)
- {
- NotificationChain msgs = null;
- if (seedDeclaration != null)
- msgs = ((InternalEObject)seedDeclaration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, null, msgs);
- if (newSeedDeclaration != null)
- msgs = ((InternalEObject)newSeedDeclaration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, null, msgs);
- msgs = basicSetSeedDeclaration(newSeedDeclaration, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, newSeedDeclaration, newSeedDeclaration));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION:
- return basicSetLoopsDeclaration(null, msgs);
- case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION:
- return basicSetSeedDeclaration(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.RANDOM_TEST__NAME:
- return getName();
- case FsmtestPackage.RANDOM_TEST__FSM:
- if (resolve) return getFsm();
- return basicGetFsm();
- case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION:
- return getLoopsDeclaration();
- case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION:
- return getSeedDeclaration();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.RANDOM_TEST__NAME:
- setName((String)newValue);
- return;
- case FsmtestPackage.RANDOM_TEST__FSM:
- setFsm((FsmDefinition)newValue);
- return;
- case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION:
- setLoopsDeclaration((LoopsDeclaration)newValue);
- return;
- case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION:
- setSeedDeclaration((SeedDeclaration)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.RANDOM_TEST__NAME:
- setName(NAME_EDEFAULT);
- return;
- case FsmtestPackage.RANDOM_TEST__FSM:
- setFsm((FsmDefinition)null);
- return;
- case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION:
- setLoopsDeclaration((LoopsDeclaration)null);
- return;
- case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION:
- setSeedDeclaration((SeedDeclaration)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.RANDOM_TEST__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case FsmtestPackage.RANDOM_TEST__FSM:
- return fsm != null;
- case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION:
- return loopsDeclaration != null;
- case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION:
- return seedDeclaration != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //RandomTestImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmDefinition; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration; +import org.eclipse.etrice.generator.fsmtest.RandomTest; +import org.eclipse.etrice.generator.fsmtest.SeedDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Random Test</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getFsm <em>Fsm</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getLoopsDeclaration <em>Loops Declaration</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.RandomTestImpl#getSeedDeclaration <em>Seed Declaration</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class RandomTestImpl extends MinimalEObjectImpl.Container implements RandomTest +{ + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getFsm() <em>Fsm</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFsm() + * @generated + * @ordered + */ + protected FsmDefinition fsm; + + /** + * The cached value of the '{@link #getLoopsDeclaration() <em>Loops Declaration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLoopsDeclaration() + * @generated + * @ordered + */ + protected LoopsDeclaration loopsDeclaration; + + /** + * The cached value of the '{@link #getSeedDeclaration() <em>Seed Declaration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSeedDeclaration() + * @generated + * @ordered + */ + protected SeedDeclaration seedDeclaration; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected RandomTestImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.RANDOM_TEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmDefinition getFsm() + { + if (fsm != null && fsm.eIsProxy()) + { + InternalEObject oldFsm = (InternalEObject)fsm; + fsm = (FsmDefinition)eResolveProxy(oldFsm); + if (fsm != oldFsm) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, FsmtestPackage.RANDOM_TEST__FSM, oldFsm, fsm)); + } + } + return fsm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmDefinition basicGetFsm() + { + return fsm; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFsm(FsmDefinition newFsm) + { + FsmDefinition oldFsm = fsm; + fsm = newFsm; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__FSM, oldFsm, fsm)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LoopsDeclaration getLoopsDeclaration() + { + return loopsDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetLoopsDeclaration(LoopsDeclaration newLoopsDeclaration, NotificationChain msgs) + { + LoopsDeclaration oldLoopsDeclaration = loopsDeclaration; + loopsDeclaration = newLoopsDeclaration; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, oldLoopsDeclaration, newLoopsDeclaration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLoopsDeclaration(LoopsDeclaration newLoopsDeclaration) + { + if (newLoopsDeclaration != loopsDeclaration) + { + NotificationChain msgs = null; + if (loopsDeclaration != null) + msgs = ((InternalEObject)loopsDeclaration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, null, msgs); + if (newLoopsDeclaration != null) + msgs = ((InternalEObject)newLoopsDeclaration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, null, msgs); + msgs = basicSetLoopsDeclaration(newLoopsDeclaration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION, newLoopsDeclaration, newLoopsDeclaration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SeedDeclaration getSeedDeclaration() + { + return seedDeclaration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSeedDeclaration(SeedDeclaration newSeedDeclaration, NotificationChain msgs) + { + SeedDeclaration oldSeedDeclaration = seedDeclaration; + seedDeclaration = newSeedDeclaration; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, oldSeedDeclaration, newSeedDeclaration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSeedDeclaration(SeedDeclaration newSeedDeclaration) + { + if (newSeedDeclaration != seedDeclaration) + { + NotificationChain msgs = null; + if (seedDeclaration != null) + msgs = ((InternalEObject)seedDeclaration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, null, msgs); + if (newSeedDeclaration != null) + msgs = ((InternalEObject)newSeedDeclaration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, null, msgs); + msgs = basicSetSeedDeclaration(newSeedDeclaration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.RANDOM_TEST__SEED_DECLARATION, newSeedDeclaration, newSeedDeclaration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION: + return basicSetLoopsDeclaration(null, msgs); + case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION: + return basicSetSeedDeclaration(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.RANDOM_TEST__NAME: + return getName(); + case FsmtestPackage.RANDOM_TEST__FSM: + if (resolve) return getFsm(); + return basicGetFsm(); + case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION: + return getLoopsDeclaration(); + case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION: + return getSeedDeclaration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.RANDOM_TEST__NAME: + setName((String)newValue); + return; + case FsmtestPackage.RANDOM_TEST__FSM: + setFsm((FsmDefinition)newValue); + return; + case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION: + setLoopsDeclaration((LoopsDeclaration)newValue); + return; + case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION: + setSeedDeclaration((SeedDeclaration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.RANDOM_TEST__NAME: + setName(NAME_EDEFAULT); + return; + case FsmtestPackage.RANDOM_TEST__FSM: + setFsm((FsmDefinition)null); + return; + case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION: + setLoopsDeclaration((LoopsDeclaration)null); + return; + case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION: + setSeedDeclaration((SeedDeclaration)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.RANDOM_TEST__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case FsmtestPackage.RANDOM_TEST__FSM: + return fsm != null; + case FsmtestPackage.RANDOM_TEST__LOOPS_DECLARATION: + return loopsDeclaration != null; + case FsmtestPackage.RANDOM_TEST__SEED_DECLARATION: + return seedDeclaration != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //RandomTestImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SeedDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SeedDeclarationImpl.java index a2998cbc5..e52b64b74 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SeedDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SeedDeclarationImpl.java @@ -1,177 +1,177 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.SeedDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Seed Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl#getVal <em>Val</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SeedDeclarationImpl extends MinimalEObjectImpl.Container implements SeedDeclaration
-{
- /**
- * The default value of the '{@link #getVal() <em>Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVal()
- * @generated
- * @ordered
- */
- protected static final int VAL_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getVal() <em>Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVal()
- * @generated
- * @ordered
- */
- protected int val = VAL_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SeedDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.SEED_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getVal()
- {
- return val;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setVal(int newVal)
- {
- int oldVal = val;
- val = newVal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SEED_DECLARATION__VAL, oldVal, val));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.SEED_DECLARATION__VAL:
- return getVal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.SEED_DECLARATION__VAL:
- setVal((Integer)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.SEED_DECLARATION__VAL:
- setVal(VAL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.SEED_DECLARATION__VAL:
- return val != VAL_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (val: ");
- result.append(val);
- result.append(')');
- return result.toString();
- }
-
-} //SeedDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.SeedDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Seed Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SeedDeclarationImpl#getVal <em>Val</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SeedDeclarationImpl extends MinimalEObjectImpl.Container implements SeedDeclaration +{ + /** + * The default value of the '{@link #getVal() <em>Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVal() + * @generated + * @ordered + */ + protected static final int VAL_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVal() <em>Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVal() + * @generated + * @ordered + */ + protected int val = VAL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SeedDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.SEED_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getVal() + { + return val; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVal(int newVal) + { + int oldVal = val; + val = newVal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SEED_DECLARATION__VAL, oldVal, val)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.SEED_DECLARATION__VAL: + return getVal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.SEED_DECLARATION__VAL: + setVal((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.SEED_DECLARATION__VAL: + setVal(VAL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.SEED_DECLARATION__VAL: + return val != VAL_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (val: "); + result.append(val); + result.append(')'); + return result.toString(); + } + +} //SeedDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SignalDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SignalDeclarationImpl.java index 1ed54dc7d..14498a344 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SignalDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/SignalDeclarationImpl.java @@ -1,345 +1,345 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Signal Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getPort <em>Port</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getSigname <em>Signame</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getIntVal <em>Int Val</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getStrVal <em>Str Val</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SignalDeclarationImpl extends MinimalEObjectImpl.Container implements SignalDeclaration
-{
- /**
- * The default value of the '{@link #getPort() <em>Port</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPort()
- * @generated
- * @ordered
- */
- protected static final String PORT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPort() <em>Port</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPort()
- * @generated
- * @ordered
- */
- protected String port = PORT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSigname() <em>Signame</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSigname()
- * @generated
- * @ordered
- */
- protected static final String SIGNAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSigname() <em>Signame</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSigname()
- * @generated
- * @ordered
- */
- protected String signame = SIGNAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getIntVal() <em>Int Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getIntVal()
- * @generated
- * @ordered
- */
- protected static final int INT_VAL_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getIntVal() <em>Int Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getIntVal()
- * @generated
- * @ordered
- */
- protected int intVal = INT_VAL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getStrVal() <em>Str Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStrVal()
- * @generated
- * @ordered
- */
- protected static final String STR_VAL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getStrVal() <em>Str Val</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStrVal()
- * @generated
- * @ordered
- */
- protected String strVal = STR_VAL_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SignalDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.SIGNAL_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getPort()
- {
- return port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPort(String newPort)
- {
- String oldPort = port;
- port = newPort;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__PORT, oldPort, port));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getSigname()
- {
- return signame;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSigname(String newSigname)
- {
- String oldSigname = signame;
- signame = newSigname;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__SIGNAME, oldSigname, signame));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getIntVal()
- {
- return intVal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setIntVal(int newIntVal)
- {
- int oldIntVal = intVal;
- intVal = newIntVal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__INT_VAL, oldIntVal, intVal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getStrVal()
- {
- return strVal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setStrVal(String newStrVal)
- {
- String oldStrVal = strVal;
- strVal = newStrVal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__STR_VAL, oldStrVal, strVal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.SIGNAL_DECLARATION__PORT:
- return getPort();
- case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME:
- return getSigname();
- case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL:
- return getIntVal();
- case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL:
- return getStrVal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.SIGNAL_DECLARATION__PORT:
- setPort((String)newValue);
- return;
- case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME:
- setSigname((String)newValue);
- return;
- case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL:
- setIntVal((Integer)newValue);
- return;
- case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL:
- setStrVal((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.SIGNAL_DECLARATION__PORT:
- setPort(PORT_EDEFAULT);
- return;
- case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME:
- setSigname(SIGNAME_EDEFAULT);
- return;
- case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL:
- setIntVal(INT_VAL_EDEFAULT);
- return;
- case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL:
- setStrVal(STR_VAL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.SIGNAL_DECLARATION__PORT:
- return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port);
- case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME:
- return SIGNAME_EDEFAULT == null ? signame != null : !SIGNAME_EDEFAULT.equals(signame);
- case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL:
- return intVal != INT_VAL_EDEFAULT;
- case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL:
- return STR_VAL_EDEFAULT == null ? strVal != null : !STR_VAL_EDEFAULT.equals(strVal);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (port: ");
- result.append(port);
- result.append(", signame: ");
- result.append(signame);
- result.append(", intVal: ");
- result.append(intVal);
- result.append(", strVal: ");
- result.append(strVal);
- result.append(')');
- return result.toString();
- }
-
-} //SignalDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Signal Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getPort <em>Port</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getSigname <em>Signame</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getIntVal <em>Int Val</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.SignalDeclarationImpl#getStrVal <em>Str Val</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SignalDeclarationImpl extends MinimalEObjectImpl.Container implements SignalDeclaration +{ + /** + * The default value of the '{@link #getPort() <em>Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort() + * @generated + * @ordered + */ + protected static final String PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort() <em>Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort() + * @generated + * @ordered + */ + protected String port = PORT_EDEFAULT; + + /** + * The default value of the '{@link #getSigname() <em>Signame</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSigname() + * @generated + * @ordered + */ + protected static final String SIGNAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSigname() <em>Signame</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSigname() + * @generated + * @ordered + */ + protected String signame = SIGNAME_EDEFAULT; + + /** + * The default value of the '{@link #getIntVal() <em>Int Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIntVal() + * @generated + * @ordered + */ + protected static final int INT_VAL_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getIntVal() <em>Int Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIntVal() + * @generated + * @ordered + */ + protected int intVal = INT_VAL_EDEFAULT; + + /** + * The default value of the '{@link #getStrVal() <em>Str Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStrVal() + * @generated + * @ordered + */ + protected static final String STR_VAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStrVal() <em>Str Val</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStrVal() + * @generated + * @ordered + */ + protected String strVal = STR_VAL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SignalDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.SIGNAL_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPort() + { + return port; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPort(String newPort) + { + String oldPort = port; + port = newPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__PORT, oldPort, port)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSigname() + { + return signame; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSigname(String newSigname) + { + String oldSigname = signame; + signame = newSigname; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__SIGNAME, oldSigname, signame)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getIntVal() + { + return intVal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIntVal(int newIntVal) + { + int oldIntVal = intVal; + intVal = newIntVal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__INT_VAL, oldIntVal, intVal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStrVal() + { + return strVal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStrVal(String newStrVal) + { + String oldStrVal = strVal; + strVal = newStrVal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.SIGNAL_DECLARATION__STR_VAL, oldStrVal, strVal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.SIGNAL_DECLARATION__PORT: + return getPort(); + case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME: + return getSigname(); + case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL: + return getIntVal(); + case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL: + return getStrVal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.SIGNAL_DECLARATION__PORT: + setPort((String)newValue); + return; + case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME: + setSigname((String)newValue); + return; + case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL: + setIntVal((Integer)newValue); + return; + case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL: + setStrVal((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.SIGNAL_DECLARATION__PORT: + setPort(PORT_EDEFAULT); + return; + case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME: + setSigname(SIGNAME_EDEFAULT); + return; + case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL: + setIntVal(INT_VAL_EDEFAULT); + return; + case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL: + setStrVal(STR_VAL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.SIGNAL_DECLARATION__PORT: + return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port); + case FsmtestPackage.SIGNAL_DECLARATION__SIGNAME: + return SIGNAME_EDEFAULT == null ? signame != null : !SIGNAME_EDEFAULT.equals(signame); + case FsmtestPackage.SIGNAL_DECLARATION__INT_VAL: + return intVal != INT_VAL_EDEFAULT; + case FsmtestPackage.SIGNAL_DECLARATION__STR_VAL: + return STR_VAL_EDEFAULT == null ? strVal != null : !STR_VAL_EDEFAULT.equals(strVal); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (port: "); + result.append(port); + result.append(", signame: "); + result.append(signame); + result.append(", intVal: "); + result.append(intVal); + result.append(", strVal: "); + result.append(strVal); + result.append(')'); + return result.toString(); + } + +} //SignalDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/StateDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/StateDeclarationImpl.java index b7b4f7cfe..ef89a4a61 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/StateDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/StateDeclarationImpl.java @@ -1,279 +1,279 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.StateDeclaration;
-import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>State Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl#getCondition <em>Condition</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl#getTransitions <em>Transitions</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class StateDeclarationImpl extends MinimalEObjectImpl.Container implements StateDeclaration
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCondition()
- * @generated
- * @ordered
- */
- protected EList<ConditionDeclaration> condition;
-
- /**
- * The cached value of the '{@link #getTransitions() <em>Transitions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransitions()
- * @generated
- * @ordered
- */
- protected EList<TransitionDeclaration> transitions;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected StateDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.STATE_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.STATE_DECLARATION__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<ConditionDeclaration> getCondition()
- {
- if (condition == null)
- {
- condition = new EObjectContainmentEList<ConditionDeclaration>(ConditionDeclaration.class, this, FsmtestPackage.STATE_DECLARATION__CONDITION);
- }
- return condition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<TransitionDeclaration> getTransitions()
- {
- if (transitions == null)
- {
- transitions = new EObjectContainmentEList<TransitionDeclaration>(TransitionDeclaration.class, this, FsmtestPackage.STATE_DECLARATION__TRANSITIONS);
- }
- return transitions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.STATE_DECLARATION__CONDITION:
- return ((InternalEList<?>)getCondition()).basicRemove(otherEnd, msgs);
- case FsmtestPackage.STATE_DECLARATION__TRANSITIONS:
- return ((InternalEList<?>)getTransitions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.STATE_DECLARATION__NAME:
- return getName();
- case FsmtestPackage.STATE_DECLARATION__CONDITION:
- return getCondition();
- case FsmtestPackage.STATE_DECLARATION__TRANSITIONS:
- return getTransitions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.STATE_DECLARATION__NAME:
- setName((String)newValue);
- return;
- case FsmtestPackage.STATE_DECLARATION__CONDITION:
- getCondition().clear();
- getCondition().addAll((Collection<? extends ConditionDeclaration>)newValue);
- return;
- case FsmtestPackage.STATE_DECLARATION__TRANSITIONS:
- getTransitions().clear();
- getTransitions().addAll((Collection<? extends TransitionDeclaration>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.STATE_DECLARATION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case FsmtestPackage.STATE_DECLARATION__CONDITION:
- getCondition().clear();
- return;
- case FsmtestPackage.STATE_DECLARATION__TRANSITIONS:
- getTransitions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.STATE_DECLARATION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case FsmtestPackage.STATE_DECLARATION__CONDITION:
- return condition != null && !condition.isEmpty();
- case FsmtestPackage.STATE_DECLARATION__TRANSITIONS:
- return transitions != null && !transitions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //StateDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.StateDeclaration; +import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>State Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl#getCondition <em>Condition</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.StateDeclarationImpl#getTransitions <em>Transitions</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class StateDeclarationImpl extends MinimalEObjectImpl.Container implements StateDeclaration +{ + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCondition() + * @generated + * @ordered + */ + protected EList<ConditionDeclaration> condition; + + /** + * The cached value of the '{@link #getTransitions() <em>Transitions</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTransitions() + * @generated + * @ordered + */ + protected EList<TransitionDeclaration> transitions; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected StateDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.STATE_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.STATE_DECLARATION__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ConditionDeclaration> getCondition() + { + if (condition == null) + { + condition = new EObjectContainmentEList<ConditionDeclaration>(ConditionDeclaration.class, this, FsmtestPackage.STATE_DECLARATION__CONDITION); + } + return condition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<TransitionDeclaration> getTransitions() + { + if (transitions == null) + { + transitions = new EObjectContainmentEList<TransitionDeclaration>(TransitionDeclaration.class, this, FsmtestPackage.STATE_DECLARATION__TRANSITIONS); + } + return transitions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.STATE_DECLARATION__CONDITION: + return ((InternalEList<?>)getCondition()).basicRemove(otherEnd, msgs); + case FsmtestPackage.STATE_DECLARATION__TRANSITIONS: + return ((InternalEList<?>)getTransitions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.STATE_DECLARATION__NAME: + return getName(); + case FsmtestPackage.STATE_DECLARATION__CONDITION: + return getCondition(); + case FsmtestPackage.STATE_DECLARATION__TRANSITIONS: + return getTransitions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.STATE_DECLARATION__NAME: + setName((String)newValue); + return; + case FsmtestPackage.STATE_DECLARATION__CONDITION: + getCondition().clear(); + getCondition().addAll((Collection<? extends ConditionDeclaration>)newValue); + return; + case FsmtestPackage.STATE_DECLARATION__TRANSITIONS: + getTransitions().clear(); + getTransitions().addAll((Collection<? extends TransitionDeclaration>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.STATE_DECLARATION__NAME: + setName(NAME_EDEFAULT); + return; + case FsmtestPackage.STATE_DECLARATION__CONDITION: + getCondition().clear(); + return; + case FsmtestPackage.STATE_DECLARATION__TRANSITIONS: + getTransitions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.STATE_DECLARATION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case FsmtestPackage.STATE_DECLARATION__CONDITION: + return condition != null && !condition.isEmpty(); + case FsmtestPackage.STATE_DECLARATION__TRANSITIONS: + return transitions != null && !transitions.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //StateDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/TransitionDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/TransitionDeclarationImpl.java index 8d6c82a6c..3f05f51b0 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/TransitionDeclarationImpl.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/TransitionDeclarationImpl.java @@ -1,456 +1,456 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.GuardDeclaration;
-import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-import org.eclipse.etrice.generator.fsmtest.StateDeclaration;
-import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Transition Declaration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getDestination <em>Destination</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getTrigger <em>Trigger</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getTriggers <em>Triggers</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getPrecondition <em>Precondition</em>}</li>
- * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getPostcondition <em>Postcondition</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TransitionDeclarationImpl extends MinimalEObjectImpl.Container implements TransitionDeclaration
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getDestination() <em>Destination</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDestination()
- * @generated
- * @ordered
- */
- protected StateDeclaration destination;
-
- /**
- * The cached value of the '{@link #getTrigger() <em>Trigger</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTrigger()
- * @generated
- * @ordered
- */
- protected SignalDeclaration trigger;
-
- /**
- * The cached value of the '{@link #getTriggers() <em>Triggers</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTriggers()
- * @generated
- * @ordered
- */
- protected EList<GuardDeclaration> triggers;
-
- /**
- * The cached value of the '{@link #getPrecondition() <em>Precondition</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPrecondition()
- * @generated
- * @ordered
- */
- protected EList<PreconditionDeclaration> precondition;
-
- /**
- * The cached value of the '{@link #getPostcondition() <em>Postcondition</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPostcondition()
- * @generated
- * @ordered
- */
- protected EList<PostconditionDeclaration> postcondition;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TransitionDeclarationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return FsmtestPackage.Literals.TRANSITION_DECLARATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StateDeclaration getDestination()
- {
- if (destination != null && destination.eIsProxy())
- {
- InternalEObject oldDestination = (InternalEObject)destination;
- destination = (StateDeclaration)eResolveProxy(oldDestination);
- if (destination != oldDestination)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, FsmtestPackage.TRANSITION_DECLARATION__DESTINATION, oldDestination, destination));
- }
- }
- return destination;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StateDeclaration basicGetDestination()
- {
- return destination;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDestination(StateDeclaration newDestination)
- {
- StateDeclaration oldDestination = destination;
- destination = newDestination;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__DESTINATION, oldDestination, destination));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SignalDeclaration getTrigger()
- {
- return trigger;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetTrigger(SignalDeclaration newTrigger, NotificationChain msgs)
- {
- SignalDeclaration oldTrigger = trigger;
- trigger = newTrigger;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, oldTrigger, newTrigger);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTrigger(SignalDeclaration newTrigger)
- {
- if (newTrigger != trigger)
- {
- NotificationChain msgs = null;
- if (trigger != null)
- msgs = ((InternalEObject)trigger).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, null, msgs);
- if (newTrigger != null)
- msgs = ((InternalEObject)newTrigger).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, null, msgs);
- msgs = basicSetTrigger(newTrigger, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, newTrigger, newTrigger));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<GuardDeclaration> getTriggers()
- {
- if (triggers == null)
- {
- triggers = new EObjectContainmentEList<GuardDeclaration>(GuardDeclaration.class, this, FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS);
- }
- return triggers;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<PreconditionDeclaration> getPrecondition()
- {
- if (precondition == null)
- {
- precondition = new EObjectContainmentEList<PreconditionDeclaration>(PreconditionDeclaration.class, this, FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION);
- }
- return precondition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<PostconditionDeclaration> getPostcondition()
- {
- if (postcondition == null)
- {
- postcondition = new EObjectContainmentEList<PostconditionDeclaration>(PostconditionDeclaration.class, this, FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION);
- }
- return postcondition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER:
- return basicSetTrigger(null, msgs);
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS:
- return ((InternalEList<?>)getTriggers()).basicRemove(otherEnd, msgs);
- case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION:
- return ((InternalEList<?>)getPrecondition()).basicRemove(otherEnd, msgs);
- case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION:
- return ((InternalEList<?>)getPostcondition()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case FsmtestPackage.TRANSITION_DECLARATION__NAME:
- return getName();
- case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION:
- if (resolve) return getDestination();
- return basicGetDestination();
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER:
- return getTrigger();
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS:
- return getTriggers();
- case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION:
- return getPrecondition();
- case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION:
- return getPostcondition();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case FsmtestPackage.TRANSITION_DECLARATION__NAME:
- setName((String)newValue);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION:
- setDestination((StateDeclaration)newValue);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER:
- setTrigger((SignalDeclaration)newValue);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS:
- getTriggers().clear();
- getTriggers().addAll((Collection<? extends GuardDeclaration>)newValue);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION:
- getPrecondition().clear();
- getPrecondition().addAll((Collection<? extends PreconditionDeclaration>)newValue);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION:
- getPostcondition().clear();
- getPostcondition().addAll((Collection<? extends PostconditionDeclaration>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.TRANSITION_DECLARATION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION:
- setDestination((StateDeclaration)null);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER:
- setTrigger((SignalDeclaration)null);
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS:
- getTriggers().clear();
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION:
- getPrecondition().clear();
- return;
- case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION:
- getPostcondition().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case FsmtestPackage.TRANSITION_DECLARATION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION:
- return destination != null;
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER:
- return trigger != null;
- case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS:
- return triggers != null && !triggers.isEmpty();
- case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION:
- return precondition != null && !precondition.isEmpty();
- case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION:
- return postcondition != null && !postcondition.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //TransitionDeclarationImpl
+/** + */ +package org.eclipse.etrice.generator.fsmtest.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.GuardDeclaration; +import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; +import org.eclipse.etrice.generator.fsmtest.StateDeclaration; +import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Transition Declaration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getDestination <em>Destination</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getTrigger <em>Trigger</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getTriggers <em>Triggers</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getPrecondition <em>Precondition</em>}</li> + * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.TransitionDeclarationImpl#getPostcondition <em>Postcondition</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TransitionDeclarationImpl extends MinimalEObjectImpl.Container implements TransitionDeclaration +{ + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getDestination() <em>Destination</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDestination() + * @generated + * @ordered + */ + protected StateDeclaration destination; + + /** + * The cached value of the '{@link #getTrigger() <em>Trigger</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTrigger() + * @generated + * @ordered + */ + protected SignalDeclaration trigger; + + /** + * The cached value of the '{@link #getTriggers() <em>Triggers</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTriggers() + * @generated + * @ordered + */ + protected EList<GuardDeclaration> triggers; + + /** + * The cached value of the '{@link #getPrecondition() <em>Precondition</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrecondition() + * @generated + * @ordered + */ + protected EList<PreconditionDeclaration> precondition; + + /** + * The cached value of the '{@link #getPostcondition() <em>Postcondition</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostcondition() + * @generated + * @ordered + */ + protected EList<PostconditionDeclaration> postcondition; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TransitionDeclarationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return FsmtestPackage.Literals.TRANSITION_DECLARATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public StateDeclaration getDestination() + { + if (destination != null && destination.eIsProxy()) + { + InternalEObject oldDestination = (InternalEObject)destination; + destination = (StateDeclaration)eResolveProxy(oldDestination); + if (destination != oldDestination) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, FsmtestPackage.TRANSITION_DECLARATION__DESTINATION, oldDestination, destination)); + } + } + return destination; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public StateDeclaration basicGetDestination() + { + return destination; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDestination(StateDeclaration newDestination) + { + StateDeclaration oldDestination = destination; + destination = newDestination; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__DESTINATION, oldDestination, destination)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SignalDeclaration getTrigger() + { + return trigger; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTrigger(SignalDeclaration newTrigger, NotificationChain msgs) + { + SignalDeclaration oldTrigger = trigger; + trigger = newTrigger; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, oldTrigger, newTrigger); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTrigger(SignalDeclaration newTrigger) + { + if (newTrigger != trigger) + { + NotificationChain msgs = null; + if (trigger != null) + msgs = ((InternalEObject)trigger).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, null, msgs); + if (newTrigger != null) + msgs = ((InternalEObject)newTrigger).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, null, msgs); + msgs = basicSetTrigger(newTrigger, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.TRANSITION_DECLARATION__TRIGGER, newTrigger, newTrigger)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuardDeclaration> getTriggers() + { + if (triggers == null) + { + triggers = new EObjectContainmentEList<GuardDeclaration>(GuardDeclaration.class, this, FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS); + } + return triggers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<PreconditionDeclaration> getPrecondition() + { + if (precondition == null) + { + precondition = new EObjectContainmentEList<PreconditionDeclaration>(PreconditionDeclaration.class, this, FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION); + } + return precondition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<PostconditionDeclaration> getPostcondition() + { + if (postcondition == null) + { + postcondition = new EObjectContainmentEList<PostconditionDeclaration>(PostconditionDeclaration.class, this, FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION); + } + return postcondition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER: + return basicSetTrigger(null, msgs); + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS: + return ((InternalEList<?>)getTriggers()).basicRemove(otherEnd, msgs); + case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION: + return ((InternalEList<?>)getPrecondition()).basicRemove(otherEnd, msgs); + case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION: + return ((InternalEList<?>)getPostcondition()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case FsmtestPackage.TRANSITION_DECLARATION__NAME: + return getName(); + case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION: + if (resolve) return getDestination(); + return basicGetDestination(); + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER: + return getTrigger(); + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS: + return getTriggers(); + case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION: + return getPrecondition(); + case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION: + return getPostcondition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case FsmtestPackage.TRANSITION_DECLARATION__NAME: + setName((String)newValue); + return; + case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION: + setDestination((StateDeclaration)newValue); + return; + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER: + setTrigger((SignalDeclaration)newValue); + return; + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS: + getTriggers().clear(); + getTriggers().addAll((Collection<? extends GuardDeclaration>)newValue); + return; + case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION: + getPrecondition().clear(); + getPrecondition().addAll((Collection<? extends PreconditionDeclaration>)newValue); + return; + case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION: + getPostcondition().clear(); + getPostcondition().addAll((Collection<? extends PostconditionDeclaration>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case FsmtestPackage.TRANSITION_DECLARATION__NAME: + setName(NAME_EDEFAULT); + return; + case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION: + setDestination((StateDeclaration)null); + return; + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER: + setTrigger((SignalDeclaration)null); + return; + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS: + getTriggers().clear(); + return; + case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION: + getPrecondition().clear(); + return; + case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION: + getPostcondition().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case FsmtestPackage.TRANSITION_DECLARATION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case FsmtestPackage.TRANSITION_DECLARATION__DESTINATION: + return destination != null; + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGER: + return trigger != null; + case FsmtestPackage.TRANSITION_DECLARATION__TRIGGERS: + return triggers != null && !triggers.isEmpty(); + case FsmtestPackage.TRANSITION_DECLARATION__PRECONDITION: + return precondition != null && !precondition.isEmpty(); + case FsmtestPackage.TRANSITION_DECLARATION__POSTCONDITION: + return postcondition != null && !postcondition.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //TransitionDeclarationImpl diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestAdapterFactory.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestAdapterFactory.java index 8e3baf26b..00c78cef8 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestAdapterFactory.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestAdapterFactory.java @@ -1,352 +1,352 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.etrice.generator.fsmtest.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage
- * @generated
- */
-public class FsmtestAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static FsmtestPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmtestAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = FsmtestPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected FsmtestSwitch<Adapter> modelSwitch =
- new FsmtestSwitch<Adapter>()
- {
- @Override
- public Adapter caseModel(Model object)
- {
- return createModelAdapter();
- }
- @Override
- public Adapter caseFsmDefinition(FsmDefinition object)
- {
- return createFsmDefinitionAdapter();
- }
- @Override
- public Adapter caseRandomTest(RandomTest object)
- {
- return createRandomTestAdapter();
- }
- @Override
- public Adapter caseGuardDeclaration(GuardDeclaration object)
- {
- return createGuardDeclarationAdapter();
- }
- @Override
- public Adapter caseTransitionDeclaration(TransitionDeclaration object)
- {
- return createTransitionDeclarationAdapter();
- }
- @Override
- public Adapter caseConditionDeclaration(ConditionDeclaration object)
- {
- return createConditionDeclarationAdapter();
- }
- @Override
- public Adapter casePreconditionDeclaration(PreconditionDeclaration object)
- {
- return createPreconditionDeclarationAdapter();
- }
- @Override
- public Adapter casePostconditionDeclaration(PostconditionDeclaration object)
- {
- return createPostconditionDeclarationAdapter();
- }
- @Override
- public Adapter caseStateDeclaration(StateDeclaration object)
- {
- return createStateDeclarationAdapter();
- }
- @Override
- public Adapter caseLoopsDeclaration(LoopsDeclaration object)
- {
- return createLoopsDeclarationAdapter();
- }
- @Override
- public Adapter caseSeedDeclaration(SeedDeclaration object)
- {
- return createSeedDeclarationAdapter();
- }
- @Override
- public Adapter caseSignalDeclaration(SignalDeclaration object)
- {
- return createSignalDeclarationAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.Model <em>Model</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.Model
- * @generated
- */
- public Adapter createModelAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition <em>Fsm Definition</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition
- * @generated
- */
- public Adapter createFsmDefinitionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.RandomTest <em>Random Test</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.RandomTest
- * @generated
- */
- public Adapter createRandomTestAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration <em>Guard Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.GuardDeclaration
- * @generated
- */
- public Adapter createGuardDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration <em>Transition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration
- * @generated
- */
- public Adapter createTransitionDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration <em>Condition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.ConditionDeclaration
- * @generated
- */
- public Adapter createConditionDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration <em>Precondition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration
- * @generated
- */
- public Adapter createPreconditionDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration <em>Postcondition Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration
- * @generated
- */
- public Adapter createPostconditionDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration <em>State Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration
- * @generated
- */
- public Adapter createStateDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration <em>Loops Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.LoopsDeclaration
- * @generated
- */
- public Adapter createLoopsDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration <em>Seed Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.SeedDeclaration
- * @generated
- */
- public Adapter createSeedDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration <em>Signal Declaration</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration
- * @generated
- */
- public Adapter createSignalDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} //FsmtestAdapterFactory
+/** + */ +package org.eclipse.etrice.generator.fsmtest.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.etrice.generator.fsmtest.*; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage + * @generated + */ +public class FsmtestAdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static FsmtestPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmtestAdapterFactory() + { + if (modelPackage == null) + { + modelPackage = FsmtestPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) + { + if (object == modelPackage) + { + return true; + } + if (object instanceof EObject) + { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FsmtestSwitch<Adapter> modelSwitch = + new FsmtestSwitch<Adapter>() + { + @Override + public Adapter caseModel(Model object) + { + return createModelAdapter(); + } + @Override + public Adapter caseFsmDefinition(FsmDefinition object) + { + return createFsmDefinitionAdapter(); + } + @Override + public Adapter caseRandomTest(RandomTest object) + { + return createRandomTestAdapter(); + } + @Override + public Adapter caseGuardDeclaration(GuardDeclaration object) + { + return createGuardDeclarationAdapter(); + } + @Override + public Adapter caseTransitionDeclaration(TransitionDeclaration object) + { + return createTransitionDeclarationAdapter(); + } + @Override + public Adapter caseConditionDeclaration(ConditionDeclaration object) + { + return createConditionDeclarationAdapter(); + } + @Override + public Adapter casePreconditionDeclaration(PreconditionDeclaration object) + { + return createPreconditionDeclarationAdapter(); + } + @Override + public Adapter casePostconditionDeclaration(PostconditionDeclaration object) + { + return createPostconditionDeclarationAdapter(); + } + @Override + public Adapter caseStateDeclaration(StateDeclaration object) + { + return createStateDeclarationAdapter(); + } + @Override + public Adapter caseLoopsDeclaration(LoopsDeclaration object) + { + return createLoopsDeclarationAdapter(); + } + @Override + public Adapter caseSeedDeclaration(SeedDeclaration object) + { + return createSeedDeclarationAdapter(); + } + @Override + public Adapter caseSignalDeclaration(SignalDeclaration object) + { + return createSignalDeclarationAdapter(); + } + @Override + public Adapter defaultCase(EObject object) + { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) + { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.Model <em>Model</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.Model + * @generated + */ + public Adapter createModelAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.FsmDefinition <em>Fsm Definition</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.FsmDefinition + * @generated + */ + public Adapter createFsmDefinitionAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.RandomTest <em>Random Test</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.RandomTest + * @generated + */ + public Adapter createRandomTestAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.GuardDeclaration <em>Guard Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.GuardDeclaration + * @generated + */ + public Adapter createGuardDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.TransitionDeclaration <em>Transition Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.TransitionDeclaration + * @generated + */ + public Adapter createTransitionDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.ConditionDeclaration <em>Condition Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.ConditionDeclaration + * @generated + */ + public Adapter createConditionDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration <em>Precondition Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration + * @generated + */ + public Adapter createPreconditionDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration <em>Postcondition Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration + * @generated + */ + public Adapter createPostconditionDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.StateDeclaration <em>State Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.StateDeclaration + * @generated + */ + public Adapter createStateDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.LoopsDeclaration <em>Loops Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.LoopsDeclaration + * @generated + */ + public Adapter createLoopsDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.SeedDeclaration <em>Seed Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.SeedDeclaration + * @generated + */ + public Adapter createSeedDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.etrice.generator.fsmtest.SignalDeclaration <em>Signal Declaration</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.etrice.generator.fsmtest.SignalDeclaration + * @generated + */ + public Adapter createSignalDeclarationAdapter() + { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() + { + return null; + } + +} //FsmtestAdapterFactory diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestSwitch.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestSwitch.java index 64b7e6d91..c490a50dd 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestSwitch.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/util/FsmtestSwitch.java @@ -1,372 +1,372 @@ -/**
- */
-package org.eclipse.etrice.generator.fsmtest.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.etrice.generator.fsmtest.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage
- * @generated
- */
-public class FsmtestSwitch<T> extends Switch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static FsmtestPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FsmtestSwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = FsmtestPackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage)
- {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case FsmtestPackage.MODEL:
- {
- Model model = (Model)theEObject;
- T result = caseModel(model);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.FSM_DEFINITION:
- {
- FsmDefinition fsmDefinition = (FsmDefinition)theEObject;
- T result = caseFsmDefinition(fsmDefinition);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.RANDOM_TEST:
- {
- RandomTest randomTest = (RandomTest)theEObject;
- T result = caseRandomTest(randomTest);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.GUARD_DECLARATION:
- {
- GuardDeclaration guardDeclaration = (GuardDeclaration)theEObject;
- T result = caseGuardDeclaration(guardDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.TRANSITION_DECLARATION:
- {
- TransitionDeclaration transitionDeclaration = (TransitionDeclaration)theEObject;
- T result = caseTransitionDeclaration(transitionDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.CONDITION_DECLARATION:
- {
- ConditionDeclaration conditionDeclaration = (ConditionDeclaration)theEObject;
- T result = caseConditionDeclaration(conditionDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.PRECONDITION_DECLARATION:
- {
- PreconditionDeclaration preconditionDeclaration = (PreconditionDeclaration)theEObject;
- T result = casePreconditionDeclaration(preconditionDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.POSTCONDITION_DECLARATION:
- {
- PostconditionDeclaration postconditionDeclaration = (PostconditionDeclaration)theEObject;
- T result = casePostconditionDeclaration(postconditionDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.STATE_DECLARATION:
- {
- StateDeclaration stateDeclaration = (StateDeclaration)theEObject;
- T result = caseStateDeclaration(stateDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.LOOPS_DECLARATION:
- {
- LoopsDeclaration loopsDeclaration = (LoopsDeclaration)theEObject;
- T result = caseLoopsDeclaration(loopsDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.SEED_DECLARATION:
- {
- SeedDeclaration seedDeclaration = (SeedDeclaration)theEObject;
- T result = caseSeedDeclaration(seedDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case FsmtestPackage.SIGNAL_DECLARATION:
- {
- SignalDeclaration signalDeclaration = (SignalDeclaration)theEObject;
- T result = caseSignalDeclaration(signalDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Model</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Model</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModel(Model object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Fsm Definition</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Fsm Definition</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFsmDefinition(FsmDefinition object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Random Test</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Random Test</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRandomTest(RandomTest object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Guard Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Guard Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseGuardDeclaration(GuardDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Transition Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Transition Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTransitionDeclaration(TransitionDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Condition Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Condition Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConditionDeclaration(ConditionDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Precondition Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Precondition Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePreconditionDeclaration(PreconditionDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Postcondition Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Postcondition Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePostconditionDeclaration(PostconditionDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>State Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>State Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStateDeclaration(StateDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Loops Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Loops Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLoopsDeclaration(LoopsDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Seed Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Seed Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSeedDeclaration(SeedDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Signal Declaration</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Signal Declaration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSignalDeclaration(SignalDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} //FsmtestSwitch
+/** + */ +package org.eclipse.etrice.generator.fsmtest.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +import org.eclipse.etrice.generator.fsmtest.*; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.etrice.generator.fsmtest.FsmtestPackage + * @generated + */ +public class FsmtestSwitch<T> extends Switch<T> +{ + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static FsmtestPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FsmtestSwitch() + { + if (modelPackage == null) + { + modelPackage = FsmtestPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) + { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case FsmtestPackage.MODEL: + { + Model model = (Model)theEObject; + T result = caseModel(model); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.FSM_DEFINITION: + { + FsmDefinition fsmDefinition = (FsmDefinition)theEObject; + T result = caseFsmDefinition(fsmDefinition); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.RANDOM_TEST: + { + RandomTest randomTest = (RandomTest)theEObject; + T result = caseRandomTest(randomTest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.GUARD_DECLARATION: + { + GuardDeclaration guardDeclaration = (GuardDeclaration)theEObject; + T result = caseGuardDeclaration(guardDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.TRANSITION_DECLARATION: + { + TransitionDeclaration transitionDeclaration = (TransitionDeclaration)theEObject; + T result = caseTransitionDeclaration(transitionDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.CONDITION_DECLARATION: + { + ConditionDeclaration conditionDeclaration = (ConditionDeclaration)theEObject; + T result = caseConditionDeclaration(conditionDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.PRECONDITION_DECLARATION: + { + PreconditionDeclaration preconditionDeclaration = (PreconditionDeclaration)theEObject; + T result = casePreconditionDeclaration(preconditionDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.POSTCONDITION_DECLARATION: + { + PostconditionDeclaration postconditionDeclaration = (PostconditionDeclaration)theEObject; + T result = casePostconditionDeclaration(postconditionDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.STATE_DECLARATION: + { + StateDeclaration stateDeclaration = (StateDeclaration)theEObject; + T result = caseStateDeclaration(stateDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.LOOPS_DECLARATION: + { + LoopsDeclaration loopsDeclaration = (LoopsDeclaration)theEObject; + T result = caseLoopsDeclaration(loopsDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.SEED_DECLARATION: + { + SeedDeclaration seedDeclaration = (SeedDeclaration)theEObject; + T result = caseSeedDeclaration(seedDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case FsmtestPackage.SIGNAL_DECLARATION: + { + SignalDeclaration signalDeclaration = (SignalDeclaration)theEObject; + T result = caseSignalDeclaration(signalDeclaration); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Model</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Model</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModel(Model object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Fsm Definition</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Fsm Definition</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFsmDefinition(FsmDefinition object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Random Test</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Random Test</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRandomTest(RandomTest object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Guard Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Guard Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGuardDeclaration(GuardDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Transition Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Transition Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTransitionDeclaration(TransitionDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Condition Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Condition Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConditionDeclaration(ConditionDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Precondition Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Precondition Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePreconditionDeclaration(PreconditionDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Postcondition Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Postcondition Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePostconditionDeclaration(PostconditionDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>State Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>State Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStateDeclaration(StateDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Loops Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Loops Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLoopsDeclaration(LoopsDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Seed Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Seed Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSeedDeclaration(SeedDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Signal Declaration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Signal Declaration</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSignalDeclaration(SignalDeclaration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) + { + return null; + } + +} //FsmtestSwitch diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.tokens b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.tokens index e5336c3b9..6708800c3 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.tokens +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.tokens @@ -1,43 +1,43 @@ -RULE_ID=4
-T__28=28
-T__27=27
-T__26=26
-T__25=25
-T__24=24
-T__23=23
-T__22=22
-RULE_ANY_OTHER=10
-T__21=21
-T__20=20
-RULE_SL_COMMENT=8
-RULE_ML_COMMENT=7
-T__19=19
-RULE_STRING=6
-T__16=16
-T__15=15
-T__18=18
-T__17=17
-T__12=12
-T__11=11
-T__14=14
-T__13=13
-RULE_INT=5
-RULE_WS=9
-'randomtest'=14
-'constraints:'=20
-'condition'=21
-'fsmdefinition'=11
-'fsm:'=15
-'loops:'=25
-'to'=17
-'guards:'=19
-'state'=24
-';'=13
-'='=28
-'randseed:'=26
-'precondition'=22
-'.'=27
-'initial'=12
-'transition'=16
-'trigger:'=18
-'postcondition'=23
+RULE_ID=4 +T__28=28 +T__27=27 +T__26=26 +T__25=25 +T__24=24 +T__23=23 +T__22=22 +RULE_ANY_OTHER=10 +T__21=21 +T__20=20 +RULE_SL_COMMENT=8 +RULE_ML_COMMENT=7 +T__19=19 +RULE_STRING=6 +T__16=16 +T__15=15 +T__18=18 +T__17=17 +T__12=12 +T__11=11 +T__14=14 +T__13=13 +RULE_INT=5 +RULE_WS=9 +'randomtest'=14 +'constraints:'=20 +'condition'=21 +'fsmdefinition'=11 +'fsm:'=15 +'loops:'=25 +'to'=17 +'guards:'=19 +'state'=24 +';'=13 +'='=28 +'randseed:'=26 +'precondition'=22 +'.'=27 +'initial'=12 +'transition'=16 +'trigger:'=18 +'postcondition'=23 diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestLexer.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestLexer.java index da0743b0c..8c1a51ed7 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestLexer.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestLexer.java @@ -1,1435 +1,1435 @@ -package org.eclipse.etrice.generator.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-
-@SuppressWarnings("all")
-public class InternalFSMtestLexer extends Lexer {
- public static final int RULE_ID=4;
- public static final int T__28=28;
- public static final int T__27=27;
- public static final int T__26=26;
- public static final int T__25=25;
- public static final int T__24=24;
- public static final int T__23=23;
- public static final int T__22=22;
- public static final int RULE_ANY_OTHER=10;
- public static final int T__21=21;
- public static final int T__20=20;
- public static final int EOF=-1;
- public static final int RULE_SL_COMMENT=8;
- public static final int RULE_ML_COMMENT=7;
- public static final int T__19=19;
- public static final int RULE_STRING=6;
- public static final int T__16=16;
- public static final int T__15=15;
- public static final int T__18=18;
- public static final int T__17=17;
- public static final int T__12=12;
- public static final int T__11=11;
- public static final int T__14=14;
- public static final int T__13=13;
- public static final int RULE_INT=5;
- public static final int RULE_WS=9;
-
- // delegates
- // delegators
-
- public InternalFSMtestLexer() {;}
- public InternalFSMtestLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalFSMtestLexer(CharStream input, RecognizerSharedState state) {
- super(input,state);
-
- }
- public String getGrammarFileName() { return "../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g"; }
-
- // $ANTLR start "T__11"
- public final void mT__11() throws RecognitionException {
- try {
- int _type = T__11;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:11:7: ( 'fsmdefinition' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:11:9: 'fsmdefinition'
- {
- match("fsmdefinition");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__11"
-
- // $ANTLR start "T__12"
- public final void mT__12() throws RecognitionException {
- try {
- int _type = T__12;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:12:7: ( 'initial' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:12:9: 'initial'
- {
- match("initial");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__12"
-
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
- try {
- int _type = T__13;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:13:7: ( ';' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:13:9: ';'
- {
- match(';');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__13"
-
- // $ANTLR start "T__14"
- public final void mT__14() throws RecognitionException {
- try {
- int _type = T__14;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:14:7: ( 'randomtest' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:14:9: 'randomtest'
- {
- match("randomtest");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__14"
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:15:7: ( 'fsm:' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:15:9: 'fsm:'
- {
- match("fsm:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:16:7: ( 'transition' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:16:9: 'transition'
- {
- match("transition");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:17:7: ( 'to' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:17:9: 'to'
- {
- match("to");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:18:7: ( 'trigger:' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:18:9: 'trigger:'
- {
- match("trigger:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:19:7: ( 'guards:' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:19:9: 'guards:'
- {
- match("guards:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:20:7: ( 'constraints:' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:20:9: 'constraints:'
- {
- match("constraints:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:21:7: ( 'condition' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:21:9: 'condition'
- {
- match("condition");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:22:7: ( 'precondition' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:22:9: 'precondition'
- {
- match("precondition");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:23:7: ( 'postcondition' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:23:9: 'postcondition'
- {
- match("postcondition");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:24:7: ( 'state' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:24:9: 'state'
- {
- match("state");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:25:7: ( 'loops:' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:25:9: 'loops:'
- {
- match("loops:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:26:7: ( 'randseed:' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:26:9: 'randseed:'
- {
- match("randseed:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:27:7: ( '.' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:27:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:28:7: ( '=' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:28:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__28"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:11: ( '^' )?
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0=='^') ) {
- alt1=1;
- }
- switch (alt1) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:11: '^'
- {
- match('^');
-
- }
- break;
-
- }
-
- if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {
- alt2=1;
- }
-
-
- switch (alt2) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop2;
- }
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:12: ( '0' .. '9' )+
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:12: ( '0' .. '9' )+
- int cnt3=0;
- loop3:
- do {
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( ((LA3_0>='0' && LA3_0<='9')) ) {
- alt3=1;
- }
-
-
- switch (alt3) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:13: '0' .. '9'
- {
- matchRange('0','9');
-
- }
- break;
-
- default :
- if ( cnt3 >= 1 ) break loop3;
- EarlyExitException eee =
- new EarlyExitException(3, input);
- throw eee;
- }
- cnt3++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_INT"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0=='\"') ) {
- alt6=1;
- }
- else if ( (LA6_0=='\'') ) {
- alt6=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 6, 0, input);
-
- throw nvae;
- }
- switch (alt6) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
- {
- match('\"');
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
- loop4:
- do {
- int alt4=3;
- int LA4_0 = input.LA(1);
-
- if ( (LA4_0=='\\') ) {
- alt4=1;
- }
- else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
- alt4=2;
- }
-
-
- switch (alt4) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:66: ~ ( ( '\\\\' | '\"' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop4;
- }
- } while (true);
-
- match('\"');
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
- {
- match('\'');
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
- loop5:
- do {
- int alt5=3;
- int LA5_0 = input.LA(1);
-
- if ( (LA5_0=='\\') ) {
- alt5=1;
- }
- else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) {
- alt5=2;
- }
-
-
- switch (alt5) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:137: ~ ( ( '\\\\' | '\\'' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop5;
- }
- } while (true);
-
- match('\'');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:19: '/*' ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:24: ( options {greedy=false; } : . )*
- loop7:
- do {
- int alt7=2;
- int LA7_0 = input.LA(1);
-
- if ( (LA7_0=='*') ) {
- int LA7_1 = input.LA(2);
-
- if ( (LA7_1=='/') ) {
- alt7=2;
- }
- else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) {
- alt7=1;
- }
-
-
- }
- else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) {
- alt7=1;
- }
-
-
- switch (alt7) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:52: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop7;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:24: (~ ( ( '\\n' | '\\r' ) ) )*
- loop8:
- do {
- int alt8=2;
- int LA8_0 = input.LA(1);
-
- if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) {
- alt8=1;
- }
-
-
- switch (alt8) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:24: ~ ( ( '\\n' | '\\r' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop8;
- }
- } while (true);
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:40: ( ( '\\r' )? '\\n' )?
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0=='\n'||LA10_0=='\r') ) {
- alt10=1;
- }
- switch (alt10) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:41: ( '\\r' )? '\\n'
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:41: ( '\\r' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0=='\r') ) {
- alt9=1;
- }
- switch (alt9) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:41: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:917:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:917:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:917:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt11=0;
- loop11:
- do {
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) {
- alt11=1;
- }
-
-
- switch (alt11) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:
- {
- if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- if ( cnt11 >= 1 ) break loop11;
- EarlyExitException eee =
- new EarlyExitException(11, input);
- throw eee;
- }
- cnt11++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_WS"
-
- // $ANTLR start "RULE_ANY_OTHER"
- public final void mRULE_ANY_OTHER() throws RecognitionException {
- try {
- int _type = RULE_ANY_OTHER;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:919:16: ( . )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:919:18: .
- {
- matchAny();
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ANY_OTHER"
-
- public void mTokens() throws RecognitionException {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:8: ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
- int alt12=25;
- alt12 = dfa12.predict(input);
- switch (alt12) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:10: T__11
- {
- mT__11();
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:16: T__12
- {
- mT__12();
-
- }
- break;
- case 3 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:22: T__13
- {
- mT__13();
-
- }
- break;
- case 4 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:28: T__14
- {
- mT__14();
-
- }
- break;
- case 5 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:34: T__15
- {
- mT__15();
-
- }
- break;
- case 6 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:40: T__16
- {
- mT__16();
-
- }
- break;
- case 7 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:46: T__17
- {
- mT__17();
-
- }
- break;
- case 8 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:52: T__18
- {
- mT__18();
-
- }
- break;
- case 9 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:58: T__19
- {
- mT__19();
-
- }
- break;
- case 10 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:64: T__20
- {
- mT__20();
-
- }
- break;
- case 11 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:70: T__21
- {
- mT__21();
-
- }
- break;
- case 12 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:76: T__22
- {
- mT__22();
-
- }
- break;
- case 13 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:82: T__23
- {
- mT__23();
-
- }
- break;
- case 14 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:88: T__24
- {
- mT__24();
-
- }
- break;
- case 15 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:94: T__25
- {
- mT__25();
-
- }
- break;
- case 16 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:100: T__26
- {
- mT__26();
-
- }
- break;
- case 17 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:106: T__27
- {
- mT__27();
-
- }
- break;
- case 18 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:112: T__28
- {
- mT__28();
-
- }
- break;
- case 19 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:118: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 20 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:126: RULE_INT
- {
- mRULE_INT();
-
- }
- break;
- case 21 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:135: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 22 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:147: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 23 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:163: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 24 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:179: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
- case 25 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:187: RULE_ANY_OTHER
- {
- mRULE_ANY_OTHER();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA12 dfa12 = new DFA12(this);
- static final String DFA12_eotS =
- "\1\uffff\2\26\1\uffff\7\26\2\uffff\1\24\2\uffff\3\24\2\uffff\1"+
- "\26\1\uffff\1\26\1\uffff\2\26\1\56\6\26\7\uffff\5\26\1\uffff\7\26"+
- "\1\uffff\26\26\1\132\14\26\2\uffff\1\26\1\150\4\26\1\uffff\5\26"+
- "\1\uffff\3\26\1\uffff\6\26\1\uffff\2\26\1\175\3\26\1\u0081\1\u0082"+
- "\1\26\1\uffff\3\26\2\uffff\4\26\1\uffff\1\u008b\1\26\1\u008d\1\uffff"+
- "\1\u008e\2\uffff";
- static final String DFA12_eofS =
- "\u008f\uffff";
- static final String DFA12_minS =
- "\1\0\1\163\1\156\1\uffff\1\141\1\157\1\165\2\157\1\164\1\157\2"+
- "\uffff\1\101\2\uffff\2\0\1\52\2\uffff\1\155\1\uffff\1\151\1\uffff"+
- "\1\156\1\141\1\60\1\141\1\156\1\145\1\163\1\141\1\157\7\uffff\1"+
- "\72\1\164\1\144\1\156\1\147\1\uffff\1\162\1\144\1\143\2\164\1\160"+
- "\1\145\1\uffff\1\151\1\157\1\163\1\147\1\144\1\164\1\151\1\157\1"+
- "\143\1\145\1\163\1\146\1\141\1\155\1\145\1\151\1\145\1\163\1\162"+
- "\1\164\1\156\1\157\1\60\1\72\1\151\1\154\1\164\1\145\1\164\1\162"+
- "\1\72\1\141\1\151\1\144\1\156\2\uffff\1\156\1\60\1\145\1\144\1\151"+
- "\1\72\1\uffff\1\151\1\157\1\151\1\144\1\151\1\uffff\1\163\1\72\1"+
- "\157\1\uffff\2\156\1\164\1\151\2\164\1\uffff\1\156\1\164\1\60\1"+
- "\151\1\164\1\151\2\60\1\163\1\uffff\1\157\1\151\1\157\2\uffff\1"+
- "\72\1\156\1\157\1\156\1\uffff\1\60\1\156\1\60\1\uffff\1\60\2\uffff";
- static final String DFA12_maxS =
- "\1\uffff\1\163\1\156\1\uffff\1\141\1\162\1\165\1\157\1\162\1\164"+
- "\1\157\2\uffff\1\172\2\uffff\2\uffff\1\57\2\uffff\1\155\1\uffff"+
- "\1\151\1\uffff\1\156\1\151\1\172\1\141\1\156\1\145\1\163\1\141\1"+
- "\157\7\uffff\1\144\1\164\1\144\1\156\1\147\1\uffff\1\162\1\163\1"+
- "\143\2\164\1\160\1\145\1\uffff\1\151\2\163\1\147\1\144\1\164\1\151"+
- "\1\157\1\143\1\145\1\163\1\146\1\141\1\155\1\145\1\151\1\145\1\163"+
- "\1\162\1\164\1\156\1\157\1\172\1\72\1\151\1\154\1\164\1\145\1\164"+
- "\1\162\1\72\1\141\1\151\1\144\1\156\2\uffff\1\156\1\172\1\145\1"+
- "\144\1\151\1\72\1\uffff\1\151\1\157\1\151\1\144\1\151\1\uffff\1"+
- "\163\1\72\1\157\1\uffff\2\156\1\164\1\151\2\164\1\uffff\1\156\1"+
- "\164\1\172\1\151\1\164\1\151\2\172\1\163\1\uffff\1\157\1\151\1\157"+
- "\2\uffff\1\72\1\156\1\157\1\156\1\uffff\1\172\1\156\1\172\1\uffff"+
- "\1\172\2\uffff";
- static final String DFA12_acceptS =
- "\3\uffff\1\3\7\uffff\1\21\1\22\1\uffff\1\23\1\24\3\uffff\1\30\1"+
- "\31\1\uffff\1\23\1\uffff\1\3\11\uffff\1\21\1\22\1\24\1\25\1\26\1"+
- "\27\1\30\5\uffff\1\7\7\uffff\1\5\43\uffff\1\16\1\17\6\uffff\1\11"+
- "\5\uffff\1\2\3\uffff\1\10\6\uffff\1\20\11\uffff\1\13\3\uffff\1\4"+
- "\1\6\4\uffff\1\12\3\uffff\1\14\1\uffff\1\1\1\15";
- static final String DFA12_specialS =
- "\1\1\17\uffff\1\0\1\2\175\uffff}>";
- static final String[] DFA12_transitionS = {
- "\11\24\2\23\2\24\1\23\22\24\1\23\1\24\1\20\4\24\1\21\6\24\1"+
- "\13\1\22\12\17\1\24\1\3\1\24\1\14\3\24\32\16\3\24\1\15\1\16"+
- "\1\24\2\16\1\7\2\16\1\1\1\6\1\16\1\2\2\16\1\12\3\16\1\10\1\16"+
- "\1\4\1\11\1\5\6\16\uff85\24",
- "\1\25",
- "\1\27",
- "",
- "\1\31",
- "\1\33\2\uffff\1\32",
- "\1\34",
- "\1\35",
- "\1\37\2\uffff\1\36",
- "\1\40",
- "\1\41",
- "",
- "",
- "\32\26\4\uffff\1\26\1\uffff\32\26",
- "",
- "",
- "\0\45",
- "\0\45",
- "\1\46\4\uffff\1\47",
- "",
- "",
- "\1\51",
- "",
- "\1\52",
- "",
- "\1\53",
- "\1\54\7\uffff\1\55",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\1\57",
- "\1\60",
- "\1\61",
- "\1\62",
- "\1\63",
- "\1\64",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\66\51\uffff\1\65",
- "\1\67",
- "\1\70",
- "\1\71",
- "\1\72",
- "",
- "\1\73",
- "\1\75\16\uffff\1\74",
- "\1\76",
- "\1\77",
- "\1\100",
- "\1\101",
- "\1\102",
- "",
- "\1\103",
- "\1\104\3\uffff\1\105",
- "\1\106",
- "\1\107",
- "\1\110",
- "\1\111",
- "\1\112",
- "\1\113",
- "\1\114",
- "\1\115",
- "\1\116",
- "\1\117",
- "\1\120",
- "\1\121",
- "\1\122",
- "\1\123",
- "\1\124",
- "\1\125",
- "\1\126",
- "\1\127",
- "\1\130",
- "\1\131",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\1\133",
- "\1\134",
- "\1\135",
- "\1\136",
- "\1\137",
- "\1\140",
- "\1\141",
- "\1\142",
- "\1\143",
- "\1\144",
- "\1\145",
- "\1\146",
- "",
- "",
- "\1\147",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\1\151",
- "\1\152",
- "\1\153",
- "\1\154",
- "",
- "\1\155",
- "\1\156",
- "\1\157",
- "\1\160",
- "\1\161",
- "",
- "\1\162",
- "\1\163",
- "\1\164",
- "",
- "\1\165",
- "\1\166",
- "\1\167",
- "\1\170",
- "\1\171",
- "\1\172",
- "",
- "\1\173",
- "\1\174",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\1\176",
- "\1\177",
- "\1\u0080",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\1\u0083",
- "",
- "\1\u0084",
- "\1\u0085",
- "\1\u0086",
- "",
- "",
- "\1\u0087",
- "\1\u0088",
- "\1\u0089",
- "\1\u008a",
- "",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "\1\u008c",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "",
- "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26",
- "",
- ""
- };
-
- static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS);
- static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS);
- static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS);
- static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS);
- static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS);
- static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS);
- static final short[][] DFA12_transition;
-
- static {
- int numStates = DFA12_transitionS.length;
- DFA12_transition = new short[numStates][];
- for (int i=0; i<numStates; i++) {
- DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]);
- }
- }
-
- class DFA12 extends DFA {
-
- public DFA12(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 12;
- this.eot = DFA12_eot;
- this.eof = DFA12_eof;
- this.min = DFA12_min;
- this.max = DFA12_max;
- this.accept = DFA12_accept;
- this.special = DFA12_special;
- this.transition = DFA12_transition;
- }
- public String getDescription() {
- return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- IntStream input = _input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA12_16 = input.LA(1);
-
- s = -1;
- if ( ((LA12_16>='\u0000' && LA12_16<='\uFFFF')) ) {s = 37;}
-
- else s = 20;
-
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA12_0 = input.LA(1);
-
- s = -1;
- if ( (LA12_0=='f') ) {s = 1;}
-
- else if ( (LA12_0=='i') ) {s = 2;}
-
- else if ( (LA12_0==';') ) {s = 3;}
-
- else if ( (LA12_0=='r') ) {s = 4;}
-
- else if ( (LA12_0=='t') ) {s = 5;}
-
- else if ( (LA12_0=='g') ) {s = 6;}
-
- else if ( (LA12_0=='c') ) {s = 7;}
-
- else if ( (LA12_0=='p') ) {s = 8;}
-
- else if ( (LA12_0=='s') ) {s = 9;}
-
- else if ( (LA12_0=='l') ) {s = 10;}
-
- else if ( (LA12_0=='.') ) {s = 11;}
-
- else if ( (LA12_0=='=') ) {s = 12;}
-
- else if ( (LA12_0=='^') ) {s = 13;}
-
- else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='b')||(LA12_0>='d' && LA12_0<='e')||LA12_0=='h'||(LA12_0>='j' && LA12_0<='k')||(LA12_0>='m' && LA12_0<='o')||LA12_0=='q'||(LA12_0>='u' && LA12_0<='z')) ) {s = 14;}
-
- else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 15;}
-
- else if ( (LA12_0=='\"') ) {s = 16;}
-
- else if ( (LA12_0=='\'') ) {s = 17;}
-
- else if ( (LA12_0=='/') ) {s = 18;}
-
- else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 19;}
-
- else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='#' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='-')||LA12_0==':'||LA12_0=='<'||(LA12_0>='>' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||(LA12_0>='{' && LA12_0<='\uFFFF')) ) {s = 20;}
-
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA12_17 = input.LA(1);
-
- s = -1;
- if ( ((LA12_17>='\u0000' && LA12_17<='\uFFFF')) ) {s = 37;}
-
- else s = 20;
-
- if ( s>=0 ) return s;
- break;
- }
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 12, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
+package org.eclipse.etrice.generator.parser.antlr.internal; + +// Hack: Use our own Lexer superclass by means of import. +// Currently there is no other way to specify the superclass for the lexer. +import org.eclipse.xtext.parser.antlr.Lexer; + + +import org.antlr.runtime.*; +import java.util.Stack; +import java.util.List; +import java.util.ArrayList; + +@SuppressWarnings("all") +public class InternalFSMtestLexer extends Lexer { + public static final int RULE_ID=4; + public static final int T__28=28; + public static final int T__27=27; + public static final int T__26=26; + public static final int T__25=25; + public static final int T__24=24; + public static final int T__23=23; + public static final int T__22=22; + public static final int RULE_ANY_OTHER=10; + public static final int T__21=21; + public static final int T__20=20; + public static final int EOF=-1; + public static final int RULE_SL_COMMENT=8; + public static final int RULE_ML_COMMENT=7; + public static final int T__19=19; + public static final int RULE_STRING=6; + public static final int T__16=16; + public static final int T__15=15; + public static final int T__18=18; + public static final int T__17=17; + public static final int T__12=12; + public static final int T__11=11; + public static final int T__14=14; + public static final int T__13=13; + public static final int RULE_INT=5; + public static final int RULE_WS=9; + + // delegates + // delegators + + public InternalFSMtestLexer() {;} + public InternalFSMtestLexer(CharStream input) { + this(input, new RecognizerSharedState()); + } + public InternalFSMtestLexer(CharStream input, RecognizerSharedState state) { + super(input,state); + + } + public String getGrammarFileName() { return "../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g"; } + + // $ANTLR start "T__11" + public final void mT__11() throws RecognitionException { + try { + int _type = T__11; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:11:7: ( 'fsmdefinition' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:11:9: 'fsmdefinition' + { + match("fsmdefinition"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__11" + + // $ANTLR start "T__12" + public final void mT__12() throws RecognitionException { + try { + int _type = T__12; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:12:7: ( 'initial' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:12:9: 'initial' + { + match("initial"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__12" + + // $ANTLR start "T__13" + public final void mT__13() throws RecognitionException { + try { + int _type = T__13; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:13:7: ( ';' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:13:9: ';' + { + match(';'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__13" + + // $ANTLR start "T__14" + public final void mT__14() throws RecognitionException { + try { + int _type = T__14; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:14:7: ( 'randomtest' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:14:9: 'randomtest' + { + match("randomtest"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__14" + + // $ANTLR start "T__15" + public final void mT__15() throws RecognitionException { + try { + int _type = T__15; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:15:7: ( 'fsm:' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:15:9: 'fsm:' + { + match("fsm:"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__15" + + // $ANTLR start "T__16" + public final void mT__16() throws RecognitionException { + try { + int _type = T__16; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:16:7: ( 'transition' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:16:9: 'transition' + { + match("transition"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__16" + + // $ANTLR start "T__17" + public final void mT__17() throws RecognitionException { + try { + int _type = T__17; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:17:7: ( 'to' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:17:9: 'to' + { + match("to"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__17" + + // $ANTLR start "T__18" + public final void mT__18() throws RecognitionException { + try { + int _type = T__18; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:18:7: ( 'trigger:' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:18:9: 'trigger:' + { + match("trigger:"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__18" + + // $ANTLR start "T__19" + public final void mT__19() throws RecognitionException { + try { + int _type = T__19; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:19:7: ( 'guards:' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:19:9: 'guards:' + { + match("guards:"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__19" + + // $ANTLR start "T__20" + public final void mT__20() throws RecognitionException { + try { + int _type = T__20; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:20:7: ( 'constraints:' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:20:9: 'constraints:' + { + match("constraints:"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__20" + + // $ANTLR start "T__21" + public final void mT__21() throws RecognitionException { + try { + int _type = T__21; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:21:7: ( 'condition' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:21:9: 'condition' + { + match("condition"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__21" + + // $ANTLR start "T__22" + public final void mT__22() throws RecognitionException { + try { + int _type = T__22; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:22:7: ( 'precondition' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:22:9: 'precondition' + { + match("precondition"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__22" + + // $ANTLR start "T__23" + public final void mT__23() throws RecognitionException { + try { + int _type = T__23; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:23:7: ( 'postcondition' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:23:9: 'postcondition' + { + match("postcondition"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__23" + + // $ANTLR start "T__24" + public final void mT__24() throws RecognitionException { + try { + int _type = T__24; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:24:7: ( 'state' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:24:9: 'state' + { + match("state"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__24" + + // $ANTLR start "T__25" + public final void mT__25() throws RecognitionException { + try { + int _type = T__25; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:25:7: ( 'loops:' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:25:9: 'loops:' + { + match("loops:"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__25" + + // $ANTLR start "T__26" + public final void mT__26() throws RecognitionException { + try { + int _type = T__26; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:26:7: ( 'randseed:' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:26:9: 'randseed:' + { + match("randseed:"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__26" + + // $ANTLR start "T__27" + public final void mT__27() throws RecognitionException { + try { + int _type = T__27; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:27:7: ( '.' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:27:9: '.' + { + match('.'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__27" + + // $ANTLR start "T__28" + public final void mT__28() throws RecognitionException { + try { + int _type = T__28; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:28:7: ( '=' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:28:9: '=' + { + match('='); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__28" + + // $ANTLR start "RULE_ID" + public final void mRULE_ID() throws RecognitionException { + try { + int _type = RULE_ID; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:11: ( '^' )? + int alt1=2; + int LA1_0 = input.LA(1); + + if ( (LA1_0=='^') ) { + alt1=1; + } + switch (alt1) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:11: '^' + { + match('^'); + + } + break; + + } + + if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:907:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + loop2: + do { + int alt2=2; + int LA2_0 = input.LA(1); + + if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { + alt2=1; + } + + + switch (alt2) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g: + { + if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop2; + } + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ID" + + // $ANTLR start "RULE_INT" + public final void mRULE_INT() throws RecognitionException { + try { + int _type = RULE_INT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:10: ( ( '0' .. '9' )+ ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:12: ( '0' .. '9' )+ + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:12: ( '0' .. '9' )+ + int cnt3=0; + loop3: + do { + int alt3=2; + int LA3_0 = input.LA(1); + + if ( ((LA3_0>='0' && LA3_0<='9')) ) { + alt3=1; + } + + + switch (alt3) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:909:13: '0' .. '9' + { + matchRange('0','9'); + + } + break; + + default : + if ( cnt3 >= 1 ) break loop3; + EarlyExitException eee = + new EarlyExitException(3, input); + throw eee; + } + cnt3++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_INT" + + // $ANTLR start "RULE_STRING" + public final void mRULE_STRING() throws RecognitionException { + try { + int _type = RULE_STRING; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + int alt6=2; + int LA6_0 = input.LA(1); + + if ( (LA6_0=='\"') ) { + alt6=1; + } + else if ( (LA6_0=='\'') ) { + alt6=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 6, 0, input); + + throw nvae; + } + switch (alt6) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + { + match('\"'); + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* + loop4: + do { + int alt4=3; + int LA4_0 = input.LA(1); + + if ( (LA4_0=='\\') ) { + alt4=1; + } + else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { + alt4=2; + } + + + switch (alt4) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) + { + match('\\'); + if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:66: ~ ( ( '\\\\' | '\"' ) ) + { + if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop4; + } + } while (true); + + match('\"'); + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' + { + match('\''); + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* + loop5: + do { + int alt5=3; + int LA5_0 = input.LA(1); + + if ( (LA5_0=='\\') ) { + alt5=1; + } + else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { + alt5=2; + } + + + switch (alt5) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) + { + match('\\'); + if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:911:137: ~ ( ( '\\\\' | '\\'' ) ) + { + if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop5; + } + } while (true); + + match('\''); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_STRING" + + // $ANTLR start "RULE_ML_COMMENT" + public final void mRULE_ML_COMMENT() throws RecognitionException { + try { + int _type = RULE_ML_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:19: '/*' ( options {greedy=false; } : . )* '*/' + { + match("/*"); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:24: ( options {greedy=false; } : . )* + loop7: + do { + int alt7=2; + int LA7_0 = input.LA(1); + + if ( (LA7_0=='*') ) { + int LA7_1 = input.LA(2); + + if ( (LA7_1=='/') ) { + alt7=2; + } + else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { + alt7=1; + } + + + } + else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { + alt7=1; + } + + + switch (alt7) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:913:52: . + { + matchAny(); + + } + break; + + default : + break loop7; + } + } while (true); + + match("*/"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ML_COMMENT" + + // $ANTLR start "RULE_SL_COMMENT" + public final void mRULE_SL_COMMENT() throws RecognitionException { + try { + int _type = RULE_SL_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? + { + match("//"); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:24: (~ ( ( '\\n' | '\\r' ) ) )* + loop8: + do { + int alt8=2; + int LA8_0 = input.LA(1); + + if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { + alt8=1; + } + + + switch (alt8) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:24: ~ ( ( '\\n' | '\\r' ) ) + { + if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop8; + } + } while (true); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:40: ( ( '\\r' )? '\\n' )? + int alt10=2; + int LA10_0 = input.LA(1); + + if ( (LA10_0=='\n'||LA10_0=='\r') ) { + alt10=1; + } + switch (alt10) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:41: ( '\\r' )? '\\n' + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:41: ( '\\r' )? + int alt9=2; + int LA9_0 = input.LA(1); + + if ( (LA9_0=='\r') ) { + alt9=1; + } + switch (alt9) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:915:41: '\\r' + { + match('\r'); + + } + break; + + } + + match('\n'); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_SL_COMMENT" + + // $ANTLR start "RULE_WS" + public final void mRULE_WS() throws RecognitionException { + try { + int _type = RULE_WS; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:917:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:917:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:917:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + int cnt11=0; + loop11: + do { + int alt11=2; + int LA11_0 = input.LA(1); + + if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { + alt11=1; + } + + + switch (alt11) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g: + { + if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + if ( cnt11 >= 1 ) break loop11; + EarlyExitException eee = + new EarlyExitException(11, input); + throw eee; + } + cnt11++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_WS" + + // $ANTLR start "RULE_ANY_OTHER" + public final void mRULE_ANY_OTHER() throws RecognitionException { + try { + int _type = RULE_ANY_OTHER; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:919:16: ( . ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:919:18: . + { + matchAny(); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ANY_OTHER" + + public void mTokens() throws RecognitionException { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:8: ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) + int alt12=25; + alt12 = dfa12.predict(input); + switch (alt12) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:10: T__11 + { + mT__11(); + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:16: T__12 + { + mT__12(); + + } + break; + case 3 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:22: T__13 + { + mT__13(); + + } + break; + case 4 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:28: T__14 + { + mT__14(); + + } + break; + case 5 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:34: T__15 + { + mT__15(); + + } + break; + case 6 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:40: T__16 + { + mT__16(); + + } + break; + case 7 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:46: T__17 + { + mT__17(); + + } + break; + case 8 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:52: T__18 + { + mT__18(); + + } + break; + case 9 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:58: T__19 + { + mT__19(); + + } + break; + case 10 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:64: T__20 + { + mT__20(); + + } + break; + case 11 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:70: T__21 + { + mT__21(); + + } + break; + case 12 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:76: T__22 + { + mT__22(); + + } + break; + case 13 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:82: T__23 + { + mT__23(); + + } + break; + case 14 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:88: T__24 + { + mT__24(); + + } + break; + case 15 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:94: T__25 + { + mT__25(); + + } + break; + case 16 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:100: T__26 + { + mT__26(); + + } + break; + case 17 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:106: T__27 + { + mT__27(); + + } + break; + case 18 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:112: T__28 + { + mT__28(); + + } + break; + case 19 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:118: RULE_ID + { + mRULE_ID(); + + } + break; + case 20 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:126: RULE_INT + { + mRULE_INT(); + + } + break; + case 21 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:135: RULE_STRING + { + mRULE_STRING(); + + } + break; + case 22 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:147: RULE_ML_COMMENT + { + mRULE_ML_COMMENT(); + + } + break; + case 23 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:163: RULE_SL_COMMENT + { + mRULE_SL_COMMENT(); + + } + break; + case 24 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:179: RULE_WS + { + mRULE_WS(); + + } + break; + case 25 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:1:187: RULE_ANY_OTHER + { + mRULE_ANY_OTHER(); + + } + break; + + } + + } + + + protected DFA12 dfa12 = new DFA12(this); + static final String DFA12_eotS = + "\1\uffff\2\26\1\uffff\7\26\2\uffff\1\24\2\uffff\3\24\2\uffff\1"+ + "\26\1\uffff\1\26\1\uffff\2\26\1\56\6\26\7\uffff\5\26\1\uffff\7\26"+ + "\1\uffff\26\26\1\132\14\26\2\uffff\1\26\1\150\4\26\1\uffff\5\26"+ + "\1\uffff\3\26\1\uffff\6\26\1\uffff\2\26\1\175\3\26\1\u0081\1\u0082"+ + "\1\26\1\uffff\3\26\2\uffff\4\26\1\uffff\1\u008b\1\26\1\u008d\1\uffff"+ + "\1\u008e\2\uffff"; + static final String DFA12_eofS = + "\u008f\uffff"; + static final String DFA12_minS = + "\1\0\1\163\1\156\1\uffff\1\141\1\157\1\165\2\157\1\164\1\157\2"+ + "\uffff\1\101\2\uffff\2\0\1\52\2\uffff\1\155\1\uffff\1\151\1\uffff"+ + "\1\156\1\141\1\60\1\141\1\156\1\145\1\163\1\141\1\157\7\uffff\1"+ + "\72\1\164\1\144\1\156\1\147\1\uffff\1\162\1\144\1\143\2\164\1\160"+ + "\1\145\1\uffff\1\151\1\157\1\163\1\147\1\144\1\164\1\151\1\157\1"+ + "\143\1\145\1\163\1\146\1\141\1\155\1\145\1\151\1\145\1\163\1\162"+ + "\1\164\1\156\1\157\1\60\1\72\1\151\1\154\1\164\1\145\1\164\1\162"+ + "\1\72\1\141\1\151\1\144\1\156\2\uffff\1\156\1\60\1\145\1\144\1\151"+ + "\1\72\1\uffff\1\151\1\157\1\151\1\144\1\151\1\uffff\1\163\1\72\1"+ + "\157\1\uffff\2\156\1\164\1\151\2\164\1\uffff\1\156\1\164\1\60\1"+ + "\151\1\164\1\151\2\60\1\163\1\uffff\1\157\1\151\1\157\2\uffff\1"+ + "\72\1\156\1\157\1\156\1\uffff\1\60\1\156\1\60\1\uffff\1\60\2\uffff"; + static final String DFA12_maxS = + "\1\uffff\1\163\1\156\1\uffff\1\141\1\162\1\165\1\157\1\162\1\164"+ + "\1\157\2\uffff\1\172\2\uffff\2\uffff\1\57\2\uffff\1\155\1\uffff"+ + "\1\151\1\uffff\1\156\1\151\1\172\1\141\1\156\1\145\1\163\1\141\1"+ + "\157\7\uffff\1\144\1\164\1\144\1\156\1\147\1\uffff\1\162\1\163\1"+ + "\143\2\164\1\160\1\145\1\uffff\1\151\2\163\1\147\1\144\1\164\1\151"+ + "\1\157\1\143\1\145\1\163\1\146\1\141\1\155\1\145\1\151\1\145\1\163"+ + "\1\162\1\164\1\156\1\157\1\172\1\72\1\151\1\154\1\164\1\145\1\164"+ + "\1\162\1\72\1\141\1\151\1\144\1\156\2\uffff\1\156\1\172\1\145\1"+ + "\144\1\151\1\72\1\uffff\1\151\1\157\1\151\1\144\1\151\1\uffff\1"+ + "\163\1\72\1\157\1\uffff\2\156\1\164\1\151\2\164\1\uffff\1\156\1"+ + "\164\1\172\1\151\1\164\1\151\2\172\1\163\1\uffff\1\157\1\151\1\157"+ + "\2\uffff\1\72\1\156\1\157\1\156\1\uffff\1\172\1\156\1\172\1\uffff"+ + "\1\172\2\uffff"; + static final String DFA12_acceptS = + "\3\uffff\1\3\7\uffff\1\21\1\22\1\uffff\1\23\1\24\3\uffff\1\30\1"+ + "\31\1\uffff\1\23\1\uffff\1\3\11\uffff\1\21\1\22\1\24\1\25\1\26\1"+ + "\27\1\30\5\uffff\1\7\7\uffff\1\5\43\uffff\1\16\1\17\6\uffff\1\11"+ + "\5\uffff\1\2\3\uffff\1\10\6\uffff\1\20\11\uffff\1\13\3\uffff\1\4"+ + "\1\6\4\uffff\1\12\3\uffff\1\14\1\uffff\1\1\1\15"; + static final String DFA12_specialS = + "\1\1\17\uffff\1\0\1\2\175\uffff}>"; + static final String[] DFA12_transitionS = { + "\11\24\2\23\2\24\1\23\22\24\1\23\1\24\1\20\4\24\1\21\6\24\1"+ + "\13\1\22\12\17\1\24\1\3\1\24\1\14\3\24\32\16\3\24\1\15\1\16"+ + "\1\24\2\16\1\7\2\16\1\1\1\6\1\16\1\2\2\16\1\12\3\16\1\10\1\16"+ + "\1\4\1\11\1\5\6\16\uff85\24", + "\1\25", + "\1\27", + "", + "\1\31", + "\1\33\2\uffff\1\32", + "\1\34", + "\1\35", + "\1\37\2\uffff\1\36", + "\1\40", + "\1\41", + "", + "", + "\32\26\4\uffff\1\26\1\uffff\32\26", + "", + "", + "\0\45", + "\0\45", + "\1\46\4\uffff\1\47", + "", + "", + "\1\51", + "", + "\1\52", + "", + "\1\53", + "\1\54\7\uffff\1\55", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\1\57", + "\1\60", + "\1\61", + "\1\62", + "\1\63", + "\1\64", + "", + "", + "", + "", + "", + "", + "", + "\1\66\51\uffff\1\65", + "\1\67", + "\1\70", + "\1\71", + "\1\72", + "", + "\1\73", + "\1\75\16\uffff\1\74", + "\1\76", + "\1\77", + "\1\100", + "\1\101", + "\1\102", + "", + "\1\103", + "\1\104\3\uffff\1\105", + "\1\106", + "\1\107", + "\1\110", + "\1\111", + "\1\112", + "\1\113", + "\1\114", + "\1\115", + "\1\116", + "\1\117", + "\1\120", + "\1\121", + "\1\122", + "\1\123", + "\1\124", + "\1\125", + "\1\126", + "\1\127", + "\1\130", + "\1\131", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\1\133", + "\1\134", + "\1\135", + "\1\136", + "\1\137", + "\1\140", + "\1\141", + "\1\142", + "\1\143", + "\1\144", + "\1\145", + "\1\146", + "", + "", + "\1\147", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\1\151", + "\1\152", + "\1\153", + "\1\154", + "", + "\1\155", + "\1\156", + "\1\157", + "\1\160", + "\1\161", + "", + "\1\162", + "\1\163", + "\1\164", + "", + "\1\165", + "\1\166", + "\1\167", + "\1\170", + "\1\171", + "\1\172", + "", + "\1\173", + "\1\174", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\1\176", + "\1\177", + "\1\u0080", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\1\u0083", + "", + "\1\u0084", + "\1\u0085", + "\1\u0086", + "", + "", + "\1\u0087", + "\1\u0088", + "\1\u0089", + "\1\u008a", + "", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "\1\u008c", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "", + "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", + "", + "" + }; + + static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); + static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); + static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); + static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); + static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); + static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); + static final short[][] DFA12_transition; + + static { + int numStates = DFA12_transitionS.length; + DFA12_transition = new short[numStates][]; + for (int i=0; i<numStates; i++) { + DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]); + } + } + + class DFA12 extends DFA { + + public DFA12(BaseRecognizer recognizer) { + this.recognizer = recognizer; + this.decisionNumber = 12; + this.eot = DFA12_eot; + this.eof = DFA12_eof; + this.min = DFA12_min; + this.max = DFA12_max; + this.accept = DFA12_accept; + this.special = DFA12_special; + this.transition = DFA12_transition; + } + public String getDescription() { + return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; + } + public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { + IntStream input = _input; + int _s = s; + switch ( s ) { + case 0 : + int LA12_16 = input.LA(1); + + s = -1; + if ( ((LA12_16>='\u0000' && LA12_16<='\uFFFF')) ) {s = 37;} + + else s = 20; + + if ( s>=0 ) return s; + break; + case 1 : + int LA12_0 = input.LA(1); + + s = -1; + if ( (LA12_0=='f') ) {s = 1;} + + else if ( (LA12_0=='i') ) {s = 2;} + + else if ( (LA12_0==';') ) {s = 3;} + + else if ( (LA12_0=='r') ) {s = 4;} + + else if ( (LA12_0=='t') ) {s = 5;} + + else if ( (LA12_0=='g') ) {s = 6;} + + else if ( (LA12_0=='c') ) {s = 7;} + + else if ( (LA12_0=='p') ) {s = 8;} + + else if ( (LA12_0=='s') ) {s = 9;} + + else if ( (LA12_0=='l') ) {s = 10;} + + else if ( (LA12_0=='.') ) {s = 11;} + + else if ( (LA12_0=='=') ) {s = 12;} + + else if ( (LA12_0=='^') ) {s = 13;} + + else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='b')||(LA12_0>='d' && LA12_0<='e')||LA12_0=='h'||(LA12_0>='j' && LA12_0<='k')||(LA12_0>='m' && LA12_0<='o')||LA12_0=='q'||(LA12_0>='u' && LA12_0<='z')) ) {s = 14;} + + else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 15;} + + else if ( (LA12_0=='\"') ) {s = 16;} + + else if ( (LA12_0=='\'') ) {s = 17;} + + else if ( (LA12_0=='/') ) {s = 18;} + + else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 19;} + + else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='#' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='-')||LA12_0==':'||LA12_0=='<'||(LA12_0>='>' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||(LA12_0>='{' && LA12_0<='\uFFFF')) ) {s = 20;} + + if ( s>=0 ) return s; + break; + case 2 : + int LA12_17 = input.LA(1); + + s = -1; + if ( ((LA12_17>='\u0000' && LA12_17<='\uFFFF')) ) {s = 37;} + + else s = 20; + + if ( s>=0 ) return s; + break; + } + NoViableAltException nvae = + new NoViableAltException(getDescription(), 12, _s, input); + error(nvae); + throw nvae; + } + } + + }
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestParser.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestParser.java index 64fa7db2f..f89741b43 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestParser.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtestParser.java @@ -1,2268 +1,2268 @@ -package org.eclipse.etrice.generator.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.etrice.generator.services.FSMtestGrammarAccess;
-
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-
-@SuppressWarnings("all")
-public class InternalFSMtestParser extends AbstractInternalAntlrParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'fsmdefinition'", "'initial'", "';'", "'randomtest'", "'fsm:'", "'transition'", "'to'", "'trigger:'", "'guards:'", "'constraints:'", "'condition'", "'precondition'", "'postcondition'", "'state'", "'loops:'", "'randseed:'", "'.'", "'='"
- };
- public static final int RULE_ID=4;
- public static final int T__28=28;
- public static final int T__27=27;
- public static final int T__26=26;
- public static final int T__25=25;
- public static final int T__24=24;
- public static final int T__23=23;
- public static final int T__22=22;
- public static final int RULE_ANY_OTHER=10;
- public static final int T__21=21;
- public static final int T__20=20;
- public static final int RULE_SL_COMMENT=8;
- public static final int EOF=-1;
- public static final int RULE_ML_COMMENT=7;
- public static final int T__19=19;
- public static final int RULE_STRING=6;
- public static final int T__16=16;
- public static final int T__15=15;
- public static final int T__18=18;
- public static final int T__17=17;
- public static final int T__12=12;
- public static final int T__11=11;
- public static final int T__14=14;
- public static final int T__13=13;
- public static final int RULE_INT=5;
- public static final int RULE_WS=9;
-
- // delegates
- // delegators
-
-
- public InternalFSMtestParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalFSMtestParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- public String[] getTokenNames() { return InternalFSMtestParser.tokenNames; }
- public String getGrammarFileName() { return "../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g"; }
-
-
-
- private FSMtestGrammarAccess grammarAccess;
-
- public InternalFSMtestParser(TokenStream input, FSMtestGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "Model";
- }
-
- @Override
- protected FSMtestGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-
-
-
- // $ANTLR start "entryRuleModel"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:67:1: entryRuleModel returns [EObject current=null] : iv_ruleModel= ruleModel EOF ;
- public final EObject entryRuleModel() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleModel = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:68:2: (iv_ruleModel= ruleModel EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:69:2: iv_ruleModel= ruleModel EOF
- {
- newCompositeNode(grammarAccess.getModelRule());
- pushFollow(FOLLOW_ruleModel_in_entryRuleModel75);
- iv_ruleModel=ruleModel();
-
- state._fsp--;
-
- current =iv_ruleModel;
- match(input,EOF,FOLLOW_EOF_in_entryRuleModel85);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleModel"
-
-
- // $ANTLR start "ruleModel"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:76:1: ruleModel returns [EObject current=null] : ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )* ;
- public final EObject ruleModel() throws RecognitionException {
- EObject current = null;
-
- EObject lv_FsmDefinitions_0_0 = null;
-
- EObject lv_RandomTests_1_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:79:28: ( ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )* )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:1: ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )*
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:1: ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )*
- loop1:
- do {
- int alt1=3;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0==11) ) {
- alt1=1;
- }
- else if ( (LA1_0==14) ) {
- alt1=2;
- }
-
-
- switch (alt1) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:2: ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:2: ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:81:1: (lv_FsmDefinitions_0_0= ruleFsmDefinition )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:81:1: (lv_FsmDefinitions_0_0= ruleFsmDefinition )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:82:3: lv_FsmDefinitions_0_0= ruleFsmDefinition
- {
-
- newCompositeNode(grammarAccess.getModelAccess().getFsmDefinitionsFsmDefinitionParserRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleFsmDefinition_in_ruleModel131);
- lv_FsmDefinitions_0_0=ruleFsmDefinition();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getModelRule());
- }
- add(
- current,
- "FsmDefinitions",
- lv_FsmDefinitions_0_0,
- "FsmDefinition");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:99:6: ( (lv_RandomTests_1_0= ruleRandomTest ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:99:6: ( (lv_RandomTests_1_0= ruleRandomTest ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:100:1: (lv_RandomTests_1_0= ruleRandomTest )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:100:1: (lv_RandomTests_1_0= ruleRandomTest )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:101:3: lv_RandomTests_1_0= ruleRandomTest
- {
-
- newCompositeNode(grammarAccess.getModelAccess().getRandomTestsRandomTestParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleRandomTest_in_ruleModel158);
- lv_RandomTests_1_0=ruleRandomTest();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getModelRule());
- }
- add(
- current,
- "RandomTests",
- lv_RandomTests_1_0,
- "RandomTest");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop1;
- }
- } while (true);
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleModel"
-
-
- // $ANTLR start "entryRuleFsmDefinition"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:125:1: entryRuleFsmDefinition returns [EObject current=null] : iv_ruleFsmDefinition= ruleFsmDefinition EOF ;
- public final EObject entryRuleFsmDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFsmDefinition = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:126:2: (iv_ruleFsmDefinition= ruleFsmDefinition EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:127:2: iv_ruleFsmDefinition= ruleFsmDefinition EOF
- {
- newCompositeNode(grammarAccess.getFsmDefinitionRule());
- pushFollow(FOLLOW_ruleFsmDefinition_in_entryRuleFsmDefinition195);
- iv_ruleFsmDefinition=ruleFsmDefinition();
-
- state._fsp--;
-
- current =iv_ruleFsmDefinition;
- match(input,EOF,FOLLOW_EOF_in_entryRuleFsmDefinition205);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleFsmDefinition"
-
-
- // $ANTLR start "ruleFsmDefinition"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:134:1: ruleFsmDefinition returns [EObject current=null] : (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' ) ;
- public final EObject ruleFsmDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_name_1_0=null;
- Token otherlv_2=null;
- Token otherlv_5=null;
- EObject lv_states_3_0 = null;
-
- EObject lv_states_4_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:137:28: ( (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:138:1: (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:138:1: (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:138:3: otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';'
- {
- otherlv_0=(Token)match(input,11,FOLLOW_11_in_ruleFsmDefinition242);
-
- newLeafNode(otherlv_0, grammarAccess.getFsmDefinitionAccess().getFsmdefinitionKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:142:1: ( (lv_name_1_0= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:143:1: (lv_name_1_0= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:143:1: (lv_name_1_0= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:144:3: lv_name_1_0= RULE_ID
- {
- lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleFsmDefinition259);
-
- newLeafNode(lv_name_1_0, grammarAccess.getFsmDefinitionAccess().getNameIDTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getFsmDefinitionRule());
- }
- setWithLastConsumed(
- current,
- "name",
- lv_name_1_0,
- "ID");
-
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,12,FOLLOW_12_in_ruleFsmDefinition276);
-
- newLeafNode(otherlv_2, grammarAccess.getFsmDefinitionAccess().getInitialKeyword_2());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:164:1: ( (lv_states_3_0= ruleStateDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:165:1: (lv_states_3_0= ruleStateDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:165:1: (lv_states_3_0= ruleStateDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:166:3: lv_states_3_0= ruleStateDeclaration
- {
-
- newCompositeNode(grammarAccess.getFsmDefinitionAccess().getStatesStateDeclarationParserRuleCall_3_0());
-
- pushFollow(FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition297);
- lv_states_3_0=ruleStateDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFsmDefinitionRule());
- }
- add(
- current,
- "states",
- lv_states_3_0,
- "StateDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:182:2: ( (lv_states_4_0= ruleStateDeclaration ) )*
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0==24) ) {
- alt2=1;
- }
-
-
- switch (alt2) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:183:1: (lv_states_4_0= ruleStateDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:183:1: (lv_states_4_0= ruleStateDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:184:3: lv_states_4_0= ruleStateDeclaration
- {
-
- newCompositeNode(grammarAccess.getFsmDefinitionAccess().getStatesStateDeclarationParserRuleCall_4_0());
-
- pushFollow(FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition318);
- lv_states_4_0=ruleStateDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFsmDefinitionRule());
- }
- add(
- current,
- "states",
- lv_states_4_0,
- "StateDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- default :
- break loop2;
- }
- } while (true);
-
- otherlv_5=(Token)match(input,13,FOLLOW_13_in_ruleFsmDefinition331);
-
- newLeafNode(otherlv_5, grammarAccess.getFsmDefinitionAccess().getSemicolonKeyword_5());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleFsmDefinition"
-
-
- // $ANTLR start "entryRuleRandomTest"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:212:1: entryRuleRandomTest returns [EObject current=null] : iv_ruleRandomTest= ruleRandomTest EOF ;
- public final EObject entryRuleRandomTest() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRandomTest = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:213:2: (iv_ruleRandomTest= ruleRandomTest EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:214:2: iv_ruleRandomTest= ruleRandomTest EOF
- {
- newCompositeNode(grammarAccess.getRandomTestRule());
- pushFollow(FOLLOW_ruleRandomTest_in_entryRuleRandomTest367);
- iv_ruleRandomTest=ruleRandomTest();
-
- state._fsp--;
-
- current =iv_ruleRandomTest;
- match(input,EOF,FOLLOW_EOF_in_entryRuleRandomTest377);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleRandomTest"
-
-
- // $ANTLR start "ruleRandomTest"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:221:1: ruleRandomTest returns [EObject current=null] : (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' ) ;
- public final EObject ruleRandomTest() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_name_1_0=null;
- Token otherlv_2=null;
- Token otherlv_3=null;
- Token otherlv_6=null;
- EObject lv_loopsDeclaration_4_0 = null;
-
- EObject lv_seedDeclaration_5_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:224:28: ( (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:225:1: (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:225:1: (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:225:3: otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';'
- {
- otherlv_0=(Token)match(input,14,FOLLOW_14_in_ruleRandomTest414);
-
- newLeafNode(otherlv_0, grammarAccess.getRandomTestAccess().getRandomtestKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:229:1: ( (lv_name_1_0= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:230:1: (lv_name_1_0= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:230:1: (lv_name_1_0= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:231:3: lv_name_1_0= RULE_ID
- {
- lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRandomTest431);
-
- newLeafNode(lv_name_1_0, grammarAccess.getRandomTestAccess().getNameIDTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getRandomTestRule());
- }
- setWithLastConsumed(
- current,
- "name",
- lv_name_1_0,
- "ID");
-
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,15,FOLLOW_15_in_ruleRandomTest448);
-
- newLeafNode(otherlv_2, grammarAccess.getRandomTestAccess().getFsmKeyword_2());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:251:1: ( (otherlv_3= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:252:1: (otherlv_3= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:252:1: (otherlv_3= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:253:3: otherlv_3= RULE_ID
- {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getRandomTestRule());
- }
-
- otherlv_3=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRandomTest468);
-
- newLeafNode(otherlv_3, grammarAccess.getRandomTestAccess().getFsmFsmDefinitionCrossReference_3_0());
-
-
- }
-
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:264:2: ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:265:1: (lv_loopsDeclaration_4_0= ruleLoopsDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:265:1: (lv_loopsDeclaration_4_0= ruleLoopsDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:266:3: lv_loopsDeclaration_4_0= ruleLoopsDeclaration
- {
-
- newCompositeNode(grammarAccess.getRandomTestAccess().getLoopsDeclarationLoopsDeclarationParserRuleCall_4_0());
-
- pushFollow(FOLLOW_ruleLoopsDeclaration_in_ruleRandomTest489);
- lv_loopsDeclaration_4_0=ruleLoopsDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getRandomTestRule());
- }
- set(
- current,
- "loopsDeclaration",
- lv_loopsDeclaration_4_0,
- "LoopsDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:282:2: ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )?
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( (LA3_0==26) ) {
- alt3=1;
- }
- switch (alt3) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:283:1: (lv_seedDeclaration_5_0= ruleSeedDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:283:1: (lv_seedDeclaration_5_0= ruleSeedDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:284:3: lv_seedDeclaration_5_0= ruleSeedDeclaration
- {
-
- newCompositeNode(grammarAccess.getRandomTestAccess().getSeedDeclarationSeedDeclarationParserRuleCall_5_0());
-
- pushFollow(FOLLOW_ruleSeedDeclaration_in_ruleRandomTest510);
- lv_seedDeclaration_5_0=ruleSeedDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getRandomTestRule());
- }
- set(
- current,
- "seedDeclaration",
- lv_seedDeclaration_5_0,
- "SeedDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,13,FOLLOW_13_in_ruleRandomTest523);
-
- newLeafNode(otherlv_6, grammarAccess.getRandomTestAccess().getSemicolonKeyword_6());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleRandomTest"
-
-
- // $ANTLR start "entryRuleGuardDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:312:1: entryRuleGuardDeclaration returns [EObject current=null] : iv_ruleGuardDeclaration= ruleGuardDeclaration EOF ;
- public final EObject entryRuleGuardDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleGuardDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:313:2: (iv_ruleGuardDeclaration= ruleGuardDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:314:2: iv_ruleGuardDeclaration= ruleGuardDeclaration EOF
- {
- newCompositeNode(grammarAccess.getGuardDeclarationRule());
- pushFollow(FOLLOW_ruleGuardDeclaration_in_entryRuleGuardDeclaration559);
- iv_ruleGuardDeclaration=ruleGuardDeclaration();
-
- state._fsp--;
-
- current =iv_ruleGuardDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleGuardDeclaration569);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleGuardDeclaration"
-
-
- // $ANTLR start "ruleGuardDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:321:1: ruleGuardDeclaration returns [EObject current=null] : ( (lv_signal_0_0= ruleSignalDeclaration ) ) ;
- public final EObject ruleGuardDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject lv_signal_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:324:28: ( ( (lv_signal_0_0= ruleSignalDeclaration ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:325:1: ( (lv_signal_0_0= ruleSignalDeclaration ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:325:1: ( (lv_signal_0_0= ruleSignalDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:326:1: (lv_signal_0_0= ruleSignalDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:326:1: (lv_signal_0_0= ruleSignalDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:327:3: lv_signal_0_0= ruleSignalDeclaration
- {
-
- newCompositeNode(grammarAccess.getGuardDeclarationAccess().getSignalSignalDeclarationParserRuleCall_0());
-
- pushFollow(FOLLOW_ruleSignalDeclaration_in_ruleGuardDeclaration614);
- lv_signal_0_0=ruleSignalDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getGuardDeclarationRule());
- }
- set(
- current,
- "signal",
- lv_signal_0_0,
- "SignalDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleGuardDeclaration"
-
-
- // $ANTLR start "entryRuleTransitionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:351:1: entryRuleTransitionDeclaration returns [EObject current=null] : iv_ruleTransitionDeclaration= ruleTransitionDeclaration EOF ;
- public final EObject entryRuleTransitionDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTransitionDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:352:2: (iv_ruleTransitionDeclaration= ruleTransitionDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:353:2: iv_ruleTransitionDeclaration= ruleTransitionDeclaration EOF
- {
- newCompositeNode(grammarAccess.getTransitionDeclarationRule());
- pushFollow(FOLLOW_ruleTransitionDeclaration_in_entryRuleTransitionDeclaration649);
- iv_ruleTransitionDeclaration=ruleTransitionDeclaration();
-
- state._fsp--;
-
- current =iv_ruleTransitionDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleTransitionDeclaration659);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTransitionDeclaration"
-
-
- // $ANTLR start "ruleTransitionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:360:1: ruleTransitionDeclaration returns [EObject current=null] : (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' ) ;
- public final EObject ruleTransitionDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_name_1_0=null;
- Token otherlv_2=null;
- Token otherlv_3=null;
- Token otherlv_4=null;
- Token otherlv_6=null;
- Token otherlv_8=null;
- Token otherlv_11=null;
- EObject lv_trigger_5_0 = null;
-
- EObject lv_triggers_7_0 = null;
-
- EObject lv_precondition_9_0 = null;
-
- EObject lv_postcondition_10_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:363:28: ( (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:364:1: (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:364:1: (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:364:3: otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';'
- {
- otherlv_0=(Token)match(input,16,FOLLOW_16_in_ruleTransitionDeclaration696);
-
- newLeafNode(otherlv_0, grammarAccess.getTransitionDeclarationAccess().getTransitionKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:368:1: ( (lv_name_1_0= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:369:1: (lv_name_1_0= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:369:1: (lv_name_1_0= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:370:3: lv_name_1_0= RULE_ID
- {
- lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTransitionDeclaration713);
-
- newLeafNode(lv_name_1_0, grammarAccess.getTransitionDeclarationAccess().getNameIDTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTransitionDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "name",
- lv_name_1_0,
- "ID");
-
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,17,FOLLOW_17_in_ruleTransitionDeclaration730);
-
- newLeafNode(otherlv_2, grammarAccess.getTransitionDeclarationAccess().getToKeyword_2());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:390:1: ( (otherlv_3= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:391:1: (otherlv_3= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:391:1: (otherlv_3= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:392:3: otherlv_3= RULE_ID
- {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTransitionDeclarationRule());
- }
-
- otherlv_3=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTransitionDeclaration750);
-
- newLeafNode(otherlv_3, grammarAccess.getTransitionDeclarationAccess().getDestinationStateDeclarationCrossReference_3_0());
-
-
- }
-
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:403:2: (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )?
- int alt4=2;
- int LA4_0 = input.LA(1);
-
- if ( (LA4_0==18) ) {
- alt4=1;
- }
- switch (alt4) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:403:4: otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) )
- {
- otherlv_4=(Token)match(input,18,FOLLOW_18_in_ruleTransitionDeclaration763);
-
- newLeafNode(otherlv_4, grammarAccess.getTransitionDeclarationAccess().getTriggerKeyword_4_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:407:1: ( (lv_trigger_5_0= ruleSignalDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:408:1: (lv_trigger_5_0= ruleSignalDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:408:1: (lv_trigger_5_0= ruleSignalDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:409:3: lv_trigger_5_0= ruleSignalDeclaration
- {
-
- newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getTriggerSignalDeclarationParserRuleCall_4_1_0());
-
- pushFollow(FOLLOW_ruleSignalDeclaration_in_ruleTransitionDeclaration784);
- lv_trigger_5_0=ruleSignalDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule());
- }
- set(
- current,
- "trigger",
- lv_trigger_5_0,
- "SignalDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:425:4: (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )?
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0==19) ) {
- alt6=1;
- }
- switch (alt6) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:425:6: otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+
- {
- otherlv_6=(Token)match(input,19,FOLLOW_19_in_ruleTransitionDeclaration799);
-
- newLeafNode(otherlv_6, grammarAccess.getTransitionDeclarationAccess().getGuardsKeyword_5_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:429:1: ( (lv_triggers_7_0= ruleGuardDeclaration ) )+
- int cnt5=0;
- loop5:
- do {
- int alt5=2;
- int LA5_0 = input.LA(1);
-
- if ( (LA5_0==RULE_ID) ) {
- alt5=1;
- }
-
-
- switch (alt5) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:430:1: (lv_triggers_7_0= ruleGuardDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:430:1: (lv_triggers_7_0= ruleGuardDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:431:3: lv_triggers_7_0= ruleGuardDeclaration
- {
-
- newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getTriggersGuardDeclarationParserRuleCall_5_1_0());
-
- pushFollow(FOLLOW_ruleGuardDeclaration_in_ruleTransitionDeclaration820);
- lv_triggers_7_0=ruleGuardDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule());
- }
- add(
- current,
- "triggers",
- lv_triggers_7_0,
- "GuardDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt5 >= 1 ) break loop5;
- EarlyExitException eee =
- new EarlyExitException(5, input);
- throw eee;
- }
- cnt5++;
- } while (true);
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:447:5: (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )?
- int alt8=2;
- int LA8_0 = input.LA(1);
-
- if ( (LA8_0==20) ) {
- alt8=1;
- }
- switch (alt8) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:447:7: otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+
- {
- otherlv_8=(Token)match(input,20,FOLLOW_20_in_ruleTransitionDeclaration836);
-
- newLeafNode(otherlv_8, grammarAccess.getTransitionDeclarationAccess().getConstraintsKeyword_6_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:451:1: ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+
- int cnt7=0;
- loop7:
- do {
- int alt7=3;
- int LA7_0 = input.LA(1);
-
- if ( (LA7_0==22) ) {
- alt7=1;
- }
- else if ( (LA7_0==23) ) {
- alt7=2;
- }
-
-
- switch (alt7) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:451:2: ( (lv_precondition_9_0= rulePreconditionDeclaration ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:451:2: ( (lv_precondition_9_0= rulePreconditionDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:452:1: (lv_precondition_9_0= rulePreconditionDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:452:1: (lv_precondition_9_0= rulePreconditionDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:453:3: lv_precondition_9_0= rulePreconditionDeclaration
- {
-
- newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getPreconditionPreconditionDeclarationParserRuleCall_6_1_0_0());
-
- pushFollow(FOLLOW_rulePreconditionDeclaration_in_ruleTransitionDeclaration858);
- lv_precondition_9_0=rulePreconditionDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule());
- }
- add(
- current,
- "precondition",
- lv_precondition_9_0,
- "PreconditionDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:470:6: ( (lv_postcondition_10_0= rulePostconditionDeclaration ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:470:6: ( (lv_postcondition_10_0= rulePostconditionDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:471:1: (lv_postcondition_10_0= rulePostconditionDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:471:1: (lv_postcondition_10_0= rulePostconditionDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:472:3: lv_postcondition_10_0= rulePostconditionDeclaration
- {
-
- newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getPostconditionPostconditionDeclarationParserRuleCall_6_1_1_0());
-
- pushFollow(FOLLOW_rulePostconditionDeclaration_in_ruleTransitionDeclaration885);
- lv_postcondition_10_0=rulePostconditionDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule());
- }
- add(
- current,
- "postcondition",
- lv_postcondition_10_0,
- "PostconditionDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt7 >= 1 ) break loop7;
- EarlyExitException eee =
- new EarlyExitException(7, input);
- throw eee;
- }
- cnt7++;
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_11=(Token)match(input,13,FOLLOW_13_in_ruleTransitionDeclaration901);
-
- newLeafNode(otherlv_11, grammarAccess.getTransitionDeclarationAccess().getSemicolonKeyword_7());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTransitionDeclaration"
-
-
- // $ANTLR start "entryRuleConditionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:500:1: entryRuleConditionDeclaration returns [EObject current=null] : iv_ruleConditionDeclaration= ruleConditionDeclaration EOF ;
- public final EObject entryRuleConditionDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:501:2: (iv_ruleConditionDeclaration= ruleConditionDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:502:2: iv_ruleConditionDeclaration= ruleConditionDeclaration EOF
- {
- newCompositeNode(grammarAccess.getConditionDeclarationRule());
- pushFollow(FOLLOW_ruleConditionDeclaration_in_entryRuleConditionDeclaration937);
- iv_ruleConditionDeclaration=ruleConditionDeclaration();
-
- state._fsp--;
-
- current =iv_ruleConditionDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleConditionDeclaration947);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleConditionDeclaration"
-
-
- // $ANTLR start "ruleConditionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:509:1: ruleConditionDeclaration returns [EObject current=null] : (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ;
- public final EObject ruleConditionDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject lv_signal_1_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:512:28: ( (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:513:1: (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:513:1: (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:513:3: otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) )
- {
- otherlv_0=(Token)match(input,21,FOLLOW_21_in_ruleConditionDeclaration984);
-
- newLeafNode(otherlv_0, grammarAccess.getConditionDeclarationAccess().getConditionKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:517:1: ( (lv_signal_1_0= ruleSignalDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:518:1: (lv_signal_1_0= ruleSignalDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:518:1: (lv_signal_1_0= ruleSignalDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:519:3: lv_signal_1_0= ruleSignalDeclaration
- {
-
- newCompositeNode(grammarAccess.getConditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleSignalDeclaration_in_ruleConditionDeclaration1005);
- lv_signal_1_0=ruleSignalDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConditionDeclarationRule());
- }
- set(
- current,
- "signal",
- lv_signal_1_0,
- "SignalDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConditionDeclaration"
-
-
- // $ANTLR start "entryRulePreconditionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:543:1: entryRulePreconditionDeclaration returns [EObject current=null] : iv_rulePreconditionDeclaration= rulePreconditionDeclaration EOF ;
- public final EObject entryRulePreconditionDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePreconditionDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:544:2: (iv_rulePreconditionDeclaration= rulePreconditionDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:545:2: iv_rulePreconditionDeclaration= rulePreconditionDeclaration EOF
- {
- newCompositeNode(grammarAccess.getPreconditionDeclarationRule());
- pushFollow(FOLLOW_rulePreconditionDeclaration_in_entryRulePreconditionDeclaration1041);
- iv_rulePreconditionDeclaration=rulePreconditionDeclaration();
-
- state._fsp--;
-
- current =iv_rulePreconditionDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRulePreconditionDeclaration1051);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePreconditionDeclaration"
-
-
- // $ANTLR start "rulePreconditionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:552:1: rulePreconditionDeclaration returns [EObject current=null] : (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ;
- public final EObject rulePreconditionDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject lv_signal_1_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:555:28: ( (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:556:1: (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:556:1: (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:556:3: otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) )
- {
- otherlv_0=(Token)match(input,22,FOLLOW_22_in_rulePreconditionDeclaration1088);
-
- newLeafNode(otherlv_0, grammarAccess.getPreconditionDeclarationAccess().getPreconditionKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:560:1: ( (lv_signal_1_0= ruleSignalDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:561:1: (lv_signal_1_0= ruleSignalDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:561:1: (lv_signal_1_0= ruleSignalDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:562:3: lv_signal_1_0= ruleSignalDeclaration
- {
-
- newCompositeNode(grammarAccess.getPreconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleSignalDeclaration_in_rulePreconditionDeclaration1109);
- lv_signal_1_0=ruleSignalDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPreconditionDeclarationRule());
- }
- set(
- current,
- "signal",
- lv_signal_1_0,
- "SignalDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePreconditionDeclaration"
-
-
- // $ANTLR start "entryRulePostconditionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:586:1: entryRulePostconditionDeclaration returns [EObject current=null] : iv_rulePostconditionDeclaration= rulePostconditionDeclaration EOF ;
- public final EObject entryRulePostconditionDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePostconditionDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:587:2: (iv_rulePostconditionDeclaration= rulePostconditionDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:588:2: iv_rulePostconditionDeclaration= rulePostconditionDeclaration EOF
- {
- newCompositeNode(grammarAccess.getPostconditionDeclarationRule());
- pushFollow(FOLLOW_rulePostconditionDeclaration_in_entryRulePostconditionDeclaration1145);
- iv_rulePostconditionDeclaration=rulePostconditionDeclaration();
-
- state._fsp--;
-
- current =iv_rulePostconditionDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRulePostconditionDeclaration1155);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePostconditionDeclaration"
-
-
- // $ANTLR start "rulePostconditionDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:595:1: rulePostconditionDeclaration returns [EObject current=null] : (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ;
- public final EObject rulePostconditionDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject lv_signal_1_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:598:28: ( (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:599:1: (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:599:1: (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:599:3: otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) )
- {
- otherlv_0=(Token)match(input,23,FOLLOW_23_in_rulePostconditionDeclaration1192);
-
- newLeafNode(otherlv_0, grammarAccess.getPostconditionDeclarationAccess().getPostconditionKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:603:1: ( (lv_signal_1_0= ruleSignalDeclaration ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:604:1: (lv_signal_1_0= ruleSignalDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:604:1: (lv_signal_1_0= ruleSignalDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:605:3: lv_signal_1_0= ruleSignalDeclaration
- {
-
- newCompositeNode(grammarAccess.getPostconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleSignalDeclaration_in_rulePostconditionDeclaration1213);
- lv_signal_1_0=ruleSignalDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPostconditionDeclarationRule());
- }
- set(
- current,
- "signal",
- lv_signal_1_0,
- "SignalDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePostconditionDeclaration"
-
-
- // $ANTLR start "entryRuleStateDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:629:1: entryRuleStateDeclaration returns [EObject current=null] : iv_ruleStateDeclaration= ruleStateDeclaration EOF ;
- public final EObject entryRuleStateDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStateDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:630:2: (iv_ruleStateDeclaration= ruleStateDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:631:2: iv_ruleStateDeclaration= ruleStateDeclaration EOF
- {
- newCompositeNode(grammarAccess.getStateDeclarationRule());
- pushFollow(FOLLOW_ruleStateDeclaration_in_entryRuleStateDeclaration1249);
- iv_ruleStateDeclaration=ruleStateDeclaration();
-
- state._fsp--;
-
- current =iv_ruleStateDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleStateDeclaration1259);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleStateDeclaration"
-
-
- // $ANTLR start "ruleStateDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:638:1: ruleStateDeclaration returns [EObject current=null] : (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' ) ;
- public final EObject ruleStateDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_name_1_0=null;
- Token otherlv_2=null;
- Token otherlv_5=null;
- EObject lv_condition_3_0 = null;
-
- EObject lv_transitions_4_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:641:28: ( (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:642:1: (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:642:1: (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:642:3: otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';'
- {
- otherlv_0=(Token)match(input,24,FOLLOW_24_in_ruleStateDeclaration1296);
-
- newLeafNode(otherlv_0, grammarAccess.getStateDeclarationAccess().getStateKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:646:1: ( (lv_name_1_0= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:647:1: (lv_name_1_0= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:647:1: (lv_name_1_0= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:648:3: lv_name_1_0= RULE_ID
- {
- lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleStateDeclaration1313);
-
- newLeafNode(lv_name_1_0, grammarAccess.getStateDeclarationAccess().getNameIDTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getStateDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "name",
- lv_name_1_0,
- "ID");
-
-
- }
-
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:664:2: (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )?
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0==20) ) {
- alt10=1;
- }
- switch (alt10) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:664:4: otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+
- {
- otherlv_2=(Token)match(input,20,FOLLOW_20_in_ruleStateDeclaration1331);
-
- newLeafNode(otherlv_2, grammarAccess.getStateDeclarationAccess().getConstraintsKeyword_2_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:668:1: ( (lv_condition_3_0= ruleConditionDeclaration ) )+
- int cnt9=0;
- loop9:
- do {
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0==21) ) {
- alt9=1;
- }
-
-
- switch (alt9) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:669:1: (lv_condition_3_0= ruleConditionDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:669:1: (lv_condition_3_0= ruleConditionDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:670:3: lv_condition_3_0= ruleConditionDeclaration
- {
-
- newCompositeNode(grammarAccess.getStateDeclarationAccess().getConditionConditionDeclarationParserRuleCall_2_1_0());
-
- pushFollow(FOLLOW_ruleConditionDeclaration_in_ruleStateDeclaration1352);
- lv_condition_3_0=ruleConditionDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStateDeclarationRule());
- }
- add(
- current,
- "condition",
- lv_condition_3_0,
- "ConditionDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt9 >= 1 ) break loop9;
- EarlyExitException eee =
- new EarlyExitException(9, input);
- throw eee;
- }
- cnt9++;
- } while (true);
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:686:5: ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+
- int cnt11=0;
- loop11:
- do {
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( (LA11_0==16) ) {
- alt11=1;
- }
-
-
- switch (alt11) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:687:1: (lv_transitions_4_0= ruleTransitionDeclaration )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:687:1: (lv_transitions_4_0= ruleTransitionDeclaration )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:688:3: lv_transitions_4_0= ruleTransitionDeclaration
- {
-
- newCompositeNode(grammarAccess.getStateDeclarationAccess().getTransitionsTransitionDeclarationParserRuleCall_3_0());
-
- pushFollow(FOLLOW_ruleTransitionDeclaration_in_ruleStateDeclaration1376);
- lv_transitions_4_0=ruleTransitionDeclaration();
-
- state._fsp--;
-
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStateDeclarationRule());
- }
- add(
- current,
- "transitions",
- lv_transitions_4_0,
- "TransitionDeclaration");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt11 >= 1 ) break loop11;
- EarlyExitException eee =
- new EarlyExitException(11, input);
- throw eee;
- }
- cnt11++;
- } while (true);
-
- otherlv_5=(Token)match(input,13,FOLLOW_13_in_ruleStateDeclaration1389);
-
- newLeafNode(otherlv_5, grammarAccess.getStateDeclarationAccess().getSemicolonKeyword_4());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleStateDeclaration"
-
-
- // $ANTLR start "entryRuleLoopsDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:716:1: entryRuleLoopsDeclaration returns [EObject current=null] : iv_ruleLoopsDeclaration= ruleLoopsDeclaration EOF ;
- public final EObject entryRuleLoopsDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLoopsDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:717:2: (iv_ruleLoopsDeclaration= ruleLoopsDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:718:2: iv_ruleLoopsDeclaration= ruleLoopsDeclaration EOF
- {
- newCompositeNode(grammarAccess.getLoopsDeclarationRule());
- pushFollow(FOLLOW_ruleLoopsDeclaration_in_entryRuleLoopsDeclaration1425);
- iv_ruleLoopsDeclaration=ruleLoopsDeclaration();
-
- state._fsp--;
-
- current =iv_ruleLoopsDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleLoopsDeclaration1435);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLoopsDeclaration"
-
-
- // $ANTLR start "ruleLoopsDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:725:1: ruleLoopsDeclaration returns [EObject current=null] : (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) ) ;
- public final EObject ruleLoopsDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_val_1_0=null;
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:728:28: ( (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:729:1: (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:729:1: (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:729:3: otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) )
- {
- otherlv_0=(Token)match(input,25,FOLLOW_25_in_ruleLoopsDeclaration1472);
-
- newLeafNode(otherlv_0, grammarAccess.getLoopsDeclarationAccess().getLoopsKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:733:1: ( (lv_val_1_0= RULE_INT ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:734:1: (lv_val_1_0= RULE_INT )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:734:1: (lv_val_1_0= RULE_INT )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:735:3: lv_val_1_0= RULE_INT
- {
- lv_val_1_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleLoopsDeclaration1489);
-
- newLeafNode(lv_val_1_0, grammarAccess.getLoopsDeclarationAccess().getValINTTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getLoopsDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "val",
- lv_val_1_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLoopsDeclaration"
-
-
- // $ANTLR start "entryRuleSeedDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:759:1: entryRuleSeedDeclaration returns [EObject current=null] : iv_ruleSeedDeclaration= ruleSeedDeclaration EOF ;
- public final EObject entryRuleSeedDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSeedDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:760:2: (iv_ruleSeedDeclaration= ruleSeedDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:761:2: iv_ruleSeedDeclaration= ruleSeedDeclaration EOF
- {
- newCompositeNode(grammarAccess.getSeedDeclarationRule());
- pushFollow(FOLLOW_ruleSeedDeclaration_in_entryRuleSeedDeclaration1530);
- iv_ruleSeedDeclaration=ruleSeedDeclaration();
-
- state._fsp--;
-
- current =iv_ruleSeedDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleSeedDeclaration1540);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSeedDeclaration"
-
-
- // $ANTLR start "ruleSeedDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:768:1: ruleSeedDeclaration returns [EObject current=null] : (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) ) ;
- public final EObject ruleSeedDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_val_1_0=null;
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:771:28: ( (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:772:1: (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:772:1: (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:772:3: otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) )
- {
- otherlv_0=(Token)match(input,26,FOLLOW_26_in_ruleSeedDeclaration1577);
-
- newLeafNode(otherlv_0, grammarAccess.getSeedDeclarationAccess().getRandseedKeyword_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:776:1: ( (lv_val_1_0= RULE_INT ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:777:1: (lv_val_1_0= RULE_INT )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:777:1: (lv_val_1_0= RULE_INT )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:778:3: lv_val_1_0= RULE_INT
- {
- lv_val_1_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleSeedDeclaration1594);
-
- newLeafNode(lv_val_1_0, grammarAccess.getSeedDeclarationAccess().getValINTTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSeedDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "val",
- lv_val_1_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSeedDeclaration"
-
-
- // $ANTLR start "entryRuleSignalDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:802:1: entryRuleSignalDeclaration returns [EObject current=null] : iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ;
- public final EObject entryRuleSignalDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDeclaration = null;
-
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:803:2: (iv_ruleSignalDeclaration= ruleSignalDeclaration EOF )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:804:2: iv_ruleSignalDeclaration= ruleSignalDeclaration EOF
- {
- newCompositeNode(grammarAccess.getSignalDeclarationRule());
- pushFollow(FOLLOW_ruleSignalDeclaration_in_entryRuleSignalDeclaration1635);
- iv_ruleSignalDeclaration=ruleSignalDeclaration();
-
- state._fsp--;
-
- current =iv_ruleSignalDeclaration;
- match(input,EOF,FOLLOW_EOF_in_entryRuleSignalDeclaration1645);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSignalDeclaration"
-
-
- // $ANTLR start "ruleSignalDeclaration"
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:811:1: ruleSignalDeclaration returns [EObject current=null] : ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? ) ;
- public final EObject ruleSignalDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_port_0_0=null;
- Token otherlv_1=null;
- Token lv_signame_2_0=null;
- Token otherlv_3=null;
- Token lv_intVal_4_0=null;
- Token otherlv_5=null;
- Token lv_strVal_6_0=null;
-
- enterRule();
-
- try {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:814:28: ( ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:1: ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:1: ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:2: ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )?
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:2: ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )?
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0==RULE_ID) ) {
- int LA12_1 = input.LA(2);
-
- if ( (LA12_1==27) ) {
- alt12=1;
- }
- }
- switch (alt12) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:3: ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.'
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:3: ( (lv_port_0_0= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:816:1: (lv_port_0_0= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:816:1: (lv_port_0_0= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:817:3: lv_port_0_0= RULE_ID
- {
- lv_port_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSignalDeclaration1688);
-
- newLeafNode(lv_port_0_0, grammarAccess.getSignalDeclarationAccess().getPortIDTerminalRuleCall_0_0_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "port",
- lv_port_0_0,
- "ID");
-
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,27,FOLLOW_27_in_ruleSignalDeclaration1705);
-
- newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getFullStopKeyword_0_1());
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:837:3: ( (lv_signame_2_0= RULE_ID ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:838:1: (lv_signame_2_0= RULE_ID )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:838:1: (lv_signame_2_0= RULE_ID )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:839:3: lv_signame_2_0= RULE_ID
- {
- lv_signame_2_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSignalDeclaration1724);
-
- newLeafNode(lv_signame_2_0, grammarAccess.getSignalDeclarationAccess().getSignameIDTerminalRuleCall_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "signame",
- lv_signame_2_0,
- "ID");
-
-
- }
-
-
- }
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:2: ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )?
- int alt13=3;
- int LA13_0 = input.LA(1);
-
- if ( (LA13_0==28) ) {
- int LA13_1 = input.LA(2);
-
- if ( (LA13_1==RULE_STRING) ) {
- alt13=2;
- }
- else if ( (LA13_1==RULE_INT) ) {
- alt13=1;
- }
- }
- switch (alt13) {
- case 1 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:3: (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:3: (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:5: otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) )
- {
- otherlv_3=(Token)match(input,28,FOLLOW_28_in_ruleSignalDeclaration1743);
-
- newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getEqualsSignKeyword_2_0_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:859:1: ( (lv_intVal_4_0= RULE_INT ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:860:1: (lv_intVal_4_0= RULE_INT )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:860:1: (lv_intVal_4_0= RULE_INT )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:861:3: lv_intVal_4_0= RULE_INT
- {
- lv_intVal_4_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleSignalDeclaration1760);
-
- newLeafNode(lv_intVal_4_0, grammarAccess.getSignalDeclarationAccess().getIntValINTTerminalRuleCall_2_0_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "intVal",
- lv_intVal_4_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:878:6: (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:878:6: (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:878:8: otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) )
- {
- otherlv_5=(Token)match(input,28,FOLLOW_28_in_ruleSignalDeclaration1785);
-
- newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getEqualsSignKeyword_2_1_0());
-
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:882:1: ( (lv_strVal_6_0= RULE_STRING ) )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:883:1: (lv_strVal_6_0= RULE_STRING )
- {
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:883:1: (lv_strVal_6_0= RULE_STRING )
- // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:884:3: lv_strVal_6_0= RULE_STRING
- {
- lv_strVal_6_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSignalDeclaration1802);
-
- newLeafNode(lv_strVal_6_0, grammarAccess.getSignalDeclarationAccess().getStrValSTRINGTerminalRuleCall_2_1_1_0());
-
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalDeclarationRule());
- }
- setWithLastConsumed(
- current,
- "strVal",
- lv_strVal_6_0,
- "STRING");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSignalDeclaration"
-
- // Delegated rules
-
-
-
-
- public static final BitSet FOLLOW_ruleModel_in_entryRuleModel75 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleModel85 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleFsmDefinition_in_ruleModel131 = new BitSet(new long[]{0x0000000000004802L});
- public static final BitSet FOLLOW_ruleRandomTest_in_ruleModel158 = new BitSet(new long[]{0x0000000000004802L});
- public static final BitSet FOLLOW_ruleFsmDefinition_in_entryRuleFsmDefinition195 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleFsmDefinition205 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_11_in_ruleFsmDefinition242 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleFsmDefinition259 = new BitSet(new long[]{0x0000000000001000L});
- public static final BitSet FOLLOW_12_in_ruleFsmDefinition276 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition297 = new BitSet(new long[]{0x0000000001002000L});
- public static final BitSet FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition318 = new BitSet(new long[]{0x0000000001002000L});
- public static final BitSet FOLLOW_13_in_ruleFsmDefinition331 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleRandomTest_in_entryRuleRandomTest367 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleRandomTest377 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_14_in_ruleRandomTest414 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleRandomTest431 = new BitSet(new long[]{0x0000000000008000L});
- public static final BitSet FOLLOW_15_in_ruleRandomTest448 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleRandomTest468 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_ruleLoopsDeclaration_in_ruleRandomTest489 = new BitSet(new long[]{0x0000000004002000L});
- public static final BitSet FOLLOW_ruleSeedDeclaration_in_ruleRandomTest510 = new BitSet(new long[]{0x0000000000002000L});
- public static final BitSet FOLLOW_13_in_ruleRandomTest523 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleGuardDeclaration_in_entryRuleGuardDeclaration559 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleGuardDeclaration569 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleSignalDeclaration_in_ruleGuardDeclaration614 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleTransitionDeclaration_in_entryRuleTransitionDeclaration649 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleTransitionDeclaration659 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_ruleTransitionDeclaration696 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleTransitionDeclaration713 = new BitSet(new long[]{0x0000000000020000L});
- public static final BitSet FOLLOW_17_in_ruleTransitionDeclaration730 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleTransitionDeclaration750 = new BitSet(new long[]{0x00000000001C2000L});
- public static final BitSet FOLLOW_18_in_ruleTransitionDeclaration763 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ruleSignalDeclaration_in_ruleTransitionDeclaration784 = new BitSet(new long[]{0x0000000000182000L});
- public static final BitSet FOLLOW_19_in_ruleTransitionDeclaration799 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ruleGuardDeclaration_in_ruleTransitionDeclaration820 = new BitSet(new long[]{0x0000000000102010L});
- public static final BitSet FOLLOW_20_in_ruleTransitionDeclaration836 = new BitSet(new long[]{0x0000000000C00000L});
- public static final BitSet FOLLOW_rulePreconditionDeclaration_in_ruleTransitionDeclaration858 = new BitSet(new long[]{0x0000000000C02000L});
- public static final BitSet FOLLOW_rulePostconditionDeclaration_in_ruleTransitionDeclaration885 = new BitSet(new long[]{0x0000000000C02000L});
- public static final BitSet FOLLOW_13_in_ruleTransitionDeclaration901 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleConditionDeclaration_in_entryRuleConditionDeclaration937 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleConditionDeclaration947 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_21_in_ruleConditionDeclaration984 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ruleSignalDeclaration_in_ruleConditionDeclaration1005 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_rulePreconditionDeclaration_in_entryRulePreconditionDeclaration1041 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRulePreconditionDeclaration1051 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_22_in_rulePreconditionDeclaration1088 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ruleSignalDeclaration_in_rulePreconditionDeclaration1109 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_rulePostconditionDeclaration_in_entryRulePostconditionDeclaration1145 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRulePostconditionDeclaration1155 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_23_in_rulePostconditionDeclaration1192 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_ruleSignalDeclaration_in_rulePostconditionDeclaration1213 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleStateDeclaration_in_entryRuleStateDeclaration1249 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleStateDeclaration1259 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_24_in_ruleStateDeclaration1296 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleStateDeclaration1313 = new BitSet(new long[]{0x0000000000110000L});
- public static final BitSet FOLLOW_20_in_ruleStateDeclaration1331 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_ruleConditionDeclaration_in_ruleStateDeclaration1352 = new BitSet(new long[]{0x0000000000310000L});
- public static final BitSet FOLLOW_ruleTransitionDeclaration_in_ruleStateDeclaration1376 = new BitSet(new long[]{0x0000000000112000L});
- public static final BitSet FOLLOW_13_in_ruleStateDeclaration1389 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleLoopsDeclaration_in_entryRuleLoopsDeclaration1425 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleLoopsDeclaration1435 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_25_in_ruleLoopsDeclaration1472 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleLoopsDeclaration1489 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleSeedDeclaration_in_entryRuleSeedDeclaration1530 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleSeedDeclaration1540 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_26_in_ruleSeedDeclaration1577 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleSeedDeclaration1594 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleSignalDeclaration_in_entryRuleSignalDeclaration1635 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleSignalDeclaration1645 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleSignalDeclaration1688 = new BitSet(new long[]{0x0000000008000000L});
- public static final BitSet FOLLOW_27_in_ruleSignalDeclaration1705 = new BitSet(new long[]{0x0000000000000010L});
- public static final BitSet FOLLOW_RULE_ID_in_ruleSignalDeclaration1724 = new BitSet(new long[]{0x0000000010000002L});
- public static final BitSet FOLLOW_28_in_ruleSignalDeclaration1743 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleSignalDeclaration1760 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_28_in_ruleSignalDeclaration1785 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_RULE_STRING_in_ruleSignalDeclaration1802 = new BitSet(new long[]{0x0000000000000002L});
-
+package org.eclipse.etrice.generator.parser.antlr.internal; + +import org.eclipse.xtext.*; +import org.eclipse.xtext.parser.*; +import org.eclipse.xtext.parser.impl.*; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; +import org.eclipse.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; +import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; +import org.eclipse.etrice.generator.services.FSMtestGrammarAccess; + + + +import org.antlr.runtime.*; +import java.util.Stack; +import java.util.List; +import java.util.ArrayList; + +@SuppressWarnings("all") +public class InternalFSMtestParser extends AbstractInternalAntlrParser { + public static final String[] tokenNames = new String[] { + "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'fsmdefinition'", "'initial'", "';'", "'randomtest'", "'fsm:'", "'transition'", "'to'", "'trigger:'", "'guards:'", "'constraints:'", "'condition'", "'precondition'", "'postcondition'", "'state'", "'loops:'", "'randseed:'", "'.'", "'='" + }; + public static final int RULE_ID=4; + public static final int T__28=28; + public static final int T__27=27; + public static final int T__26=26; + public static final int T__25=25; + public static final int T__24=24; + public static final int T__23=23; + public static final int T__22=22; + public static final int RULE_ANY_OTHER=10; + public static final int T__21=21; + public static final int T__20=20; + public static final int RULE_SL_COMMENT=8; + public static final int EOF=-1; + public static final int RULE_ML_COMMENT=7; + public static final int T__19=19; + public static final int RULE_STRING=6; + public static final int T__16=16; + public static final int T__15=15; + public static final int T__18=18; + public static final int T__17=17; + public static final int T__12=12; + public static final int T__11=11; + public static final int T__14=14; + public static final int T__13=13; + public static final int RULE_INT=5; + public static final int RULE_WS=9; + + // delegates + // delegators + + + public InternalFSMtestParser(TokenStream input) { + this(input, new RecognizerSharedState()); + } + public InternalFSMtestParser(TokenStream input, RecognizerSharedState state) { + super(input, state); + + } + + + public String[] getTokenNames() { return InternalFSMtestParser.tokenNames; } + public String getGrammarFileName() { return "../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g"; } + + + + private FSMtestGrammarAccess grammarAccess; + + public InternalFSMtestParser(TokenStream input, FSMtestGrammarAccess grammarAccess) { + this(input); + this.grammarAccess = grammarAccess; + registerRules(grammarAccess.getGrammar()); + } + + @Override + protected String getFirstRuleName() { + return "Model"; + } + + @Override + protected FSMtestGrammarAccess getGrammarAccess() { + return grammarAccess; + } + + + + // $ANTLR start "entryRuleModel" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:67:1: entryRuleModel returns [EObject current=null] : iv_ruleModel= ruleModel EOF ; + public final EObject entryRuleModel() throws RecognitionException { + EObject current = null; + + EObject iv_ruleModel = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:68:2: (iv_ruleModel= ruleModel EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:69:2: iv_ruleModel= ruleModel EOF + { + newCompositeNode(grammarAccess.getModelRule()); + pushFollow(FOLLOW_ruleModel_in_entryRuleModel75); + iv_ruleModel=ruleModel(); + + state._fsp--; + + current =iv_ruleModel; + match(input,EOF,FOLLOW_EOF_in_entryRuleModel85); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleModel" + + + // $ANTLR start "ruleModel" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:76:1: ruleModel returns [EObject current=null] : ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )* ; + public final EObject ruleModel() throws RecognitionException { + EObject current = null; + + EObject lv_FsmDefinitions_0_0 = null; + + EObject lv_RandomTests_1_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:79:28: ( ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )* ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:1: ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )* + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:1: ( ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) | ( (lv_RandomTests_1_0= ruleRandomTest ) ) )* + loop1: + do { + int alt1=3; + int LA1_0 = input.LA(1); + + if ( (LA1_0==11) ) { + alt1=1; + } + else if ( (LA1_0==14) ) { + alt1=2; + } + + + switch (alt1) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:2: ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:80:2: ( (lv_FsmDefinitions_0_0= ruleFsmDefinition ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:81:1: (lv_FsmDefinitions_0_0= ruleFsmDefinition ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:81:1: (lv_FsmDefinitions_0_0= ruleFsmDefinition ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:82:3: lv_FsmDefinitions_0_0= ruleFsmDefinition + { + + newCompositeNode(grammarAccess.getModelAccess().getFsmDefinitionsFsmDefinitionParserRuleCall_0_0()); + + pushFollow(FOLLOW_ruleFsmDefinition_in_ruleModel131); + lv_FsmDefinitions_0_0=ruleFsmDefinition(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getModelRule()); + } + add( + current, + "FsmDefinitions", + lv_FsmDefinitions_0_0, + "FsmDefinition"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:99:6: ( (lv_RandomTests_1_0= ruleRandomTest ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:99:6: ( (lv_RandomTests_1_0= ruleRandomTest ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:100:1: (lv_RandomTests_1_0= ruleRandomTest ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:100:1: (lv_RandomTests_1_0= ruleRandomTest ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:101:3: lv_RandomTests_1_0= ruleRandomTest + { + + newCompositeNode(grammarAccess.getModelAccess().getRandomTestsRandomTestParserRuleCall_1_0()); + + pushFollow(FOLLOW_ruleRandomTest_in_ruleModel158); + lv_RandomTests_1_0=ruleRandomTest(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getModelRule()); + } + add( + current, + "RandomTests", + lv_RandomTests_1_0, + "RandomTest"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + + default : + break loop1; + } + } while (true); + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleModel" + + + // $ANTLR start "entryRuleFsmDefinition" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:125:1: entryRuleFsmDefinition returns [EObject current=null] : iv_ruleFsmDefinition= ruleFsmDefinition EOF ; + public final EObject entryRuleFsmDefinition() throws RecognitionException { + EObject current = null; + + EObject iv_ruleFsmDefinition = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:126:2: (iv_ruleFsmDefinition= ruleFsmDefinition EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:127:2: iv_ruleFsmDefinition= ruleFsmDefinition EOF + { + newCompositeNode(grammarAccess.getFsmDefinitionRule()); + pushFollow(FOLLOW_ruleFsmDefinition_in_entryRuleFsmDefinition195); + iv_ruleFsmDefinition=ruleFsmDefinition(); + + state._fsp--; + + current =iv_ruleFsmDefinition; + match(input,EOF,FOLLOW_EOF_in_entryRuleFsmDefinition205); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleFsmDefinition" + + + // $ANTLR start "ruleFsmDefinition" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:134:1: ruleFsmDefinition returns [EObject current=null] : (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' ) ; + public final EObject ruleFsmDefinition() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + Token lv_name_1_0=null; + Token otherlv_2=null; + Token otherlv_5=null; + EObject lv_states_3_0 = null; + + EObject lv_states_4_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:137:28: ( (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:138:1: (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:138:1: (otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:138:3: otherlv_0= 'fsmdefinition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'initial' ( (lv_states_3_0= ruleStateDeclaration ) ) ( (lv_states_4_0= ruleStateDeclaration ) )* otherlv_5= ';' + { + otherlv_0=(Token)match(input,11,FOLLOW_11_in_ruleFsmDefinition242); + + newLeafNode(otherlv_0, grammarAccess.getFsmDefinitionAccess().getFsmdefinitionKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:142:1: ( (lv_name_1_0= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:143:1: (lv_name_1_0= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:143:1: (lv_name_1_0= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:144:3: lv_name_1_0= RULE_ID + { + lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleFsmDefinition259); + + newLeafNode(lv_name_1_0, grammarAccess.getFsmDefinitionAccess().getNameIDTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getFsmDefinitionRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_1_0, + "ID"); + + + } + + + } + + otherlv_2=(Token)match(input,12,FOLLOW_12_in_ruleFsmDefinition276); + + newLeafNode(otherlv_2, grammarAccess.getFsmDefinitionAccess().getInitialKeyword_2()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:164:1: ( (lv_states_3_0= ruleStateDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:165:1: (lv_states_3_0= ruleStateDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:165:1: (lv_states_3_0= ruleStateDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:166:3: lv_states_3_0= ruleStateDeclaration + { + + newCompositeNode(grammarAccess.getFsmDefinitionAccess().getStatesStateDeclarationParserRuleCall_3_0()); + + pushFollow(FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition297); + lv_states_3_0=ruleStateDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getFsmDefinitionRule()); + } + add( + current, + "states", + lv_states_3_0, + "StateDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:182:2: ( (lv_states_4_0= ruleStateDeclaration ) )* + loop2: + do { + int alt2=2; + int LA2_0 = input.LA(1); + + if ( (LA2_0==24) ) { + alt2=1; + } + + + switch (alt2) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:183:1: (lv_states_4_0= ruleStateDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:183:1: (lv_states_4_0= ruleStateDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:184:3: lv_states_4_0= ruleStateDeclaration + { + + newCompositeNode(grammarAccess.getFsmDefinitionAccess().getStatesStateDeclarationParserRuleCall_4_0()); + + pushFollow(FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition318); + lv_states_4_0=ruleStateDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getFsmDefinitionRule()); + } + add( + current, + "states", + lv_states_4_0, + "StateDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + default : + break loop2; + } + } while (true); + + otherlv_5=(Token)match(input,13,FOLLOW_13_in_ruleFsmDefinition331); + + newLeafNode(otherlv_5, grammarAccess.getFsmDefinitionAccess().getSemicolonKeyword_5()); + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleFsmDefinition" + + + // $ANTLR start "entryRuleRandomTest" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:212:1: entryRuleRandomTest returns [EObject current=null] : iv_ruleRandomTest= ruleRandomTest EOF ; + public final EObject entryRuleRandomTest() throws RecognitionException { + EObject current = null; + + EObject iv_ruleRandomTest = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:213:2: (iv_ruleRandomTest= ruleRandomTest EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:214:2: iv_ruleRandomTest= ruleRandomTest EOF + { + newCompositeNode(grammarAccess.getRandomTestRule()); + pushFollow(FOLLOW_ruleRandomTest_in_entryRuleRandomTest367); + iv_ruleRandomTest=ruleRandomTest(); + + state._fsp--; + + current =iv_ruleRandomTest; + match(input,EOF,FOLLOW_EOF_in_entryRuleRandomTest377); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleRandomTest" + + + // $ANTLR start "ruleRandomTest" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:221:1: ruleRandomTest returns [EObject current=null] : (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' ) ; + public final EObject ruleRandomTest() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + Token lv_name_1_0=null; + Token otherlv_2=null; + Token otherlv_3=null; + Token otherlv_6=null; + EObject lv_loopsDeclaration_4_0 = null; + + EObject lv_seedDeclaration_5_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:224:28: ( (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:225:1: (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:225:1: (otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:225:3: otherlv_0= 'randomtest' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'fsm:' ( (otherlv_3= RULE_ID ) ) ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? otherlv_6= ';' + { + otherlv_0=(Token)match(input,14,FOLLOW_14_in_ruleRandomTest414); + + newLeafNode(otherlv_0, grammarAccess.getRandomTestAccess().getRandomtestKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:229:1: ( (lv_name_1_0= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:230:1: (lv_name_1_0= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:230:1: (lv_name_1_0= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:231:3: lv_name_1_0= RULE_ID + { + lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRandomTest431); + + newLeafNode(lv_name_1_0, grammarAccess.getRandomTestAccess().getNameIDTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getRandomTestRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_1_0, + "ID"); + + + } + + + } + + otherlv_2=(Token)match(input,15,FOLLOW_15_in_ruleRandomTest448); + + newLeafNode(otherlv_2, grammarAccess.getRandomTestAccess().getFsmKeyword_2()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:251:1: ( (otherlv_3= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:252:1: (otherlv_3= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:252:1: (otherlv_3= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:253:3: otherlv_3= RULE_ID + { + + if (current==null) { + current = createModelElement(grammarAccess.getRandomTestRule()); + } + + otherlv_3=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRandomTest468); + + newLeafNode(otherlv_3, grammarAccess.getRandomTestAccess().getFsmFsmDefinitionCrossReference_3_0()); + + + } + + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:264:2: ( (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:265:1: (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:265:1: (lv_loopsDeclaration_4_0= ruleLoopsDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:266:3: lv_loopsDeclaration_4_0= ruleLoopsDeclaration + { + + newCompositeNode(grammarAccess.getRandomTestAccess().getLoopsDeclarationLoopsDeclarationParserRuleCall_4_0()); + + pushFollow(FOLLOW_ruleLoopsDeclaration_in_ruleRandomTest489); + lv_loopsDeclaration_4_0=ruleLoopsDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getRandomTestRule()); + } + set( + current, + "loopsDeclaration", + lv_loopsDeclaration_4_0, + "LoopsDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:282:2: ( (lv_seedDeclaration_5_0= ruleSeedDeclaration ) )? + int alt3=2; + int LA3_0 = input.LA(1); + + if ( (LA3_0==26) ) { + alt3=1; + } + switch (alt3) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:283:1: (lv_seedDeclaration_5_0= ruleSeedDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:283:1: (lv_seedDeclaration_5_0= ruleSeedDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:284:3: lv_seedDeclaration_5_0= ruleSeedDeclaration + { + + newCompositeNode(grammarAccess.getRandomTestAccess().getSeedDeclarationSeedDeclarationParserRuleCall_5_0()); + + pushFollow(FOLLOW_ruleSeedDeclaration_in_ruleRandomTest510); + lv_seedDeclaration_5_0=ruleSeedDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getRandomTestRule()); + } + set( + current, + "seedDeclaration", + lv_seedDeclaration_5_0, + "SeedDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + otherlv_6=(Token)match(input,13,FOLLOW_13_in_ruleRandomTest523); + + newLeafNode(otherlv_6, grammarAccess.getRandomTestAccess().getSemicolonKeyword_6()); + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleRandomTest" + + + // $ANTLR start "entryRuleGuardDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:312:1: entryRuleGuardDeclaration returns [EObject current=null] : iv_ruleGuardDeclaration= ruleGuardDeclaration EOF ; + public final EObject entryRuleGuardDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleGuardDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:313:2: (iv_ruleGuardDeclaration= ruleGuardDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:314:2: iv_ruleGuardDeclaration= ruleGuardDeclaration EOF + { + newCompositeNode(grammarAccess.getGuardDeclarationRule()); + pushFollow(FOLLOW_ruleGuardDeclaration_in_entryRuleGuardDeclaration559); + iv_ruleGuardDeclaration=ruleGuardDeclaration(); + + state._fsp--; + + current =iv_ruleGuardDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleGuardDeclaration569); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleGuardDeclaration" + + + // $ANTLR start "ruleGuardDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:321:1: ruleGuardDeclaration returns [EObject current=null] : ( (lv_signal_0_0= ruleSignalDeclaration ) ) ; + public final EObject ruleGuardDeclaration() throws RecognitionException { + EObject current = null; + + EObject lv_signal_0_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:324:28: ( ( (lv_signal_0_0= ruleSignalDeclaration ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:325:1: ( (lv_signal_0_0= ruleSignalDeclaration ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:325:1: ( (lv_signal_0_0= ruleSignalDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:326:1: (lv_signal_0_0= ruleSignalDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:326:1: (lv_signal_0_0= ruleSignalDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:327:3: lv_signal_0_0= ruleSignalDeclaration + { + + newCompositeNode(grammarAccess.getGuardDeclarationAccess().getSignalSignalDeclarationParserRuleCall_0()); + + pushFollow(FOLLOW_ruleSignalDeclaration_in_ruleGuardDeclaration614); + lv_signal_0_0=ruleSignalDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getGuardDeclarationRule()); + } + set( + current, + "signal", + lv_signal_0_0, + "SignalDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleGuardDeclaration" + + + // $ANTLR start "entryRuleTransitionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:351:1: entryRuleTransitionDeclaration returns [EObject current=null] : iv_ruleTransitionDeclaration= ruleTransitionDeclaration EOF ; + public final EObject entryRuleTransitionDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleTransitionDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:352:2: (iv_ruleTransitionDeclaration= ruleTransitionDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:353:2: iv_ruleTransitionDeclaration= ruleTransitionDeclaration EOF + { + newCompositeNode(grammarAccess.getTransitionDeclarationRule()); + pushFollow(FOLLOW_ruleTransitionDeclaration_in_entryRuleTransitionDeclaration649); + iv_ruleTransitionDeclaration=ruleTransitionDeclaration(); + + state._fsp--; + + current =iv_ruleTransitionDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleTransitionDeclaration659); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleTransitionDeclaration" + + + // $ANTLR start "ruleTransitionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:360:1: ruleTransitionDeclaration returns [EObject current=null] : (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' ) ; + public final EObject ruleTransitionDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + Token lv_name_1_0=null; + Token otherlv_2=null; + Token otherlv_3=null; + Token otherlv_4=null; + Token otherlv_6=null; + Token otherlv_8=null; + Token otherlv_11=null; + EObject lv_trigger_5_0 = null; + + EObject lv_triggers_7_0 = null; + + EObject lv_precondition_9_0 = null; + + EObject lv_postcondition_10_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:363:28: ( (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:364:1: (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:364:1: (otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:364:3: otherlv_0= 'transition' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'to' ( (otherlv_3= RULE_ID ) ) (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? otherlv_11= ';' + { + otherlv_0=(Token)match(input,16,FOLLOW_16_in_ruleTransitionDeclaration696); + + newLeafNode(otherlv_0, grammarAccess.getTransitionDeclarationAccess().getTransitionKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:368:1: ( (lv_name_1_0= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:369:1: (lv_name_1_0= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:369:1: (lv_name_1_0= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:370:3: lv_name_1_0= RULE_ID + { + lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTransitionDeclaration713); + + newLeafNode(lv_name_1_0, grammarAccess.getTransitionDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getTransitionDeclarationRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_1_0, + "ID"); + + + } + + + } + + otherlv_2=(Token)match(input,17,FOLLOW_17_in_ruleTransitionDeclaration730); + + newLeafNode(otherlv_2, grammarAccess.getTransitionDeclarationAccess().getToKeyword_2()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:390:1: ( (otherlv_3= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:391:1: (otherlv_3= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:391:1: (otherlv_3= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:392:3: otherlv_3= RULE_ID + { + + if (current==null) { + current = createModelElement(grammarAccess.getTransitionDeclarationRule()); + } + + otherlv_3=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTransitionDeclaration750); + + newLeafNode(otherlv_3, grammarAccess.getTransitionDeclarationAccess().getDestinationStateDeclarationCrossReference_3_0()); + + + } + + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:403:2: (otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) )? + int alt4=2; + int LA4_0 = input.LA(1); + + if ( (LA4_0==18) ) { + alt4=1; + } + switch (alt4) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:403:4: otherlv_4= 'trigger:' ( (lv_trigger_5_0= ruleSignalDeclaration ) ) + { + otherlv_4=(Token)match(input,18,FOLLOW_18_in_ruleTransitionDeclaration763); + + newLeafNode(otherlv_4, grammarAccess.getTransitionDeclarationAccess().getTriggerKeyword_4_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:407:1: ( (lv_trigger_5_0= ruleSignalDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:408:1: (lv_trigger_5_0= ruleSignalDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:408:1: (lv_trigger_5_0= ruleSignalDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:409:3: lv_trigger_5_0= ruleSignalDeclaration + { + + newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getTriggerSignalDeclarationParserRuleCall_4_1_0()); + + pushFollow(FOLLOW_ruleSignalDeclaration_in_ruleTransitionDeclaration784); + lv_trigger_5_0=ruleSignalDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule()); + } + set( + current, + "trigger", + lv_trigger_5_0, + "SignalDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:425:4: (otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ )? + int alt6=2; + int LA6_0 = input.LA(1); + + if ( (LA6_0==19) ) { + alt6=1; + } + switch (alt6) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:425:6: otherlv_6= 'guards:' ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ + { + otherlv_6=(Token)match(input,19,FOLLOW_19_in_ruleTransitionDeclaration799); + + newLeafNode(otherlv_6, grammarAccess.getTransitionDeclarationAccess().getGuardsKeyword_5_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:429:1: ( (lv_triggers_7_0= ruleGuardDeclaration ) )+ + int cnt5=0; + loop5: + do { + int alt5=2; + int LA5_0 = input.LA(1); + + if ( (LA5_0==RULE_ID) ) { + alt5=1; + } + + + switch (alt5) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:430:1: (lv_triggers_7_0= ruleGuardDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:430:1: (lv_triggers_7_0= ruleGuardDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:431:3: lv_triggers_7_0= ruleGuardDeclaration + { + + newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getTriggersGuardDeclarationParserRuleCall_5_1_0()); + + pushFollow(FOLLOW_ruleGuardDeclaration_in_ruleTransitionDeclaration820); + lv_triggers_7_0=ruleGuardDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule()); + } + add( + current, + "triggers", + lv_triggers_7_0, + "GuardDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + default : + if ( cnt5 >= 1 ) break loop5; + EarlyExitException eee = + new EarlyExitException(5, input); + throw eee; + } + cnt5++; + } while (true); + + + } + break; + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:447:5: (otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ )? + int alt8=2; + int LA8_0 = input.LA(1); + + if ( (LA8_0==20) ) { + alt8=1; + } + switch (alt8) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:447:7: otherlv_8= 'constraints:' ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ + { + otherlv_8=(Token)match(input,20,FOLLOW_20_in_ruleTransitionDeclaration836); + + newLeafNode(otherlv_8, grammarAccess.getTransitionDeclarationAccess().getConstraintsKeyword_6_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:451:1: ( ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) | ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) )+ + int cnt7=0; + loop7: + do { + int alt7=3; + int LA7_0 = input.LA(1); + + if ( (LA7_0==22) ) { + alt7=1; + } + else if ( (LA7_0==23) ) { + alt7=2; + } + + + switch (alt7) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:451:2: ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:451:2: ( (lv_precondition_9_0= rulePreconditionDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:452:1: (lv_precondition_9_0= rulePreconditionDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:452:1: (lv_precondition_9_0= rulePreconditionDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:453:3: lv_precondition_9_0= rulePreconditionDeclaration + { + + newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getPreconditionPreconditionDeclarationParserRuleCall_6_1_0_0()); + + pushFollow(FOLLOW_rulePreconditionDeclaration_in_ruleTransitionDeclaration858); + lv_precondition_9_0=rulePreconditionDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule()); + } + add( + current, + "precondition", + lv_precondition_9_0, + "PreconditionDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:470:6: ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:470:6: ( (lv_postcondition_10_0= rulePostconditionDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:471:1: (lv_postcondition_10_0= rulePostconditionDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:471:1: (lv_postcondition_10_0= rulePostconditionDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:472:3: lv_postcondition_10_0= rulePostconditionDeclaration + { + + newCompositeNode(grammarAccess.getTransitionDeclarationAccess().getPostconditionPostconditionDeclarationParserRuleCall_6_1_1_0()); + + pushFollow(FOLLOW_rulePostconditionDeclaration_in_ruleTransitionDeclaration885); + lv_postcondition_10_0=rulePostconditionDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getTransitionDeclarationRule()); + } + add( + current, + "postcondition", + lv_postcondition_10_0, + "PostconditionDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + + default : + if ( cnt7 >= 1 ) break loop7; + EarlyExitException eee = + new EarlyExitException(7, input); + throw eee; + } + cnt7++; + } while (true); + + + } + break; + + } + + otherlv_11=(Token)match(input,13,FOLLOW_13_in_ruleTransitionDeclaration901); + + newLeafNode(otherlv_11, grammarAccess.getTransitionDeclarationAccess().getSemicolonKeyword_7()); + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleTransitionDeclaration" + + + // $ANTLR start "entryRuleConditionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:500:1: entryRuleConditionDeclaration returns [EObject current=null] : iv_ruleConditionDeclaration= ruleConditionDeclaration EOF ; + public final EObject entryRuleConditionDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleConditionDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:501:2: (iv_ruleConditionDeclaration= ruleConditionDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:502:2: iv_ruleConditionDeclaration= ruleConditionDeclaration EOF + { + newCompositeNode(grammarAccess.getConditionDeclarationRule()); + pushFollow(FOLLOW_ruleConditionDeclaration_in_entryRuleConditionDeclaration937); + iv_ruleConditionDeclaration=ruleConditionDeclaration(); + + state._fsp--; + + current =iv_ruleConditionDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleConditionDeclaration947); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleConditionDeclaration" + + + // $ANTLR start "ruleConditionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:509:1: ruleConditionDeclaration returns [EObject current=null] : (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ; + public final EObject ruleConditionDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + EObject lv_signal_1_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:512:28: ( (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:513:1: (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:513:1: (otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:513:3: otherlv_0= 'condition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) + { + otherlv_0=(Token)match(input,21,FOLLOW_21_in_ruleConditionDeclaration984); + + newLeafNode(otherlv_0, grammarAccess.getConditionDeclarationAccess().getConditionKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:517:1: ( (lv_signal_1_0= ruleSignalDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:518:1: (lv_signal_1_0= ruleSignalDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:518:1: (lv_signal_1_0= ruleSignalDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:519:3: lv_signal_1_0= ruleSignalDeclaration + { + + newCompositeNode(grammarAccess.getConditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0()); + + pushFollow(FOLLOW_ruleSignalDeclaration_in_ruleConditionDeclaration1005); + lv_signal_1_0=ruleSignalDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getConditionDeclarationRule()); + } + set( + current, + "signal", + lv_signal_1_0, + "SignalDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleConditionDeclaration" + + + // $ANTLR start "entryRulePreconditionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:543:1: entryRulePreconditionDeclaration returns [EObject current=null] : iv_rulePreconditionDeclaration= rulePreconditionDeclaration EOF ; + public final EObject entryRulePreconditionDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_rulePreconditionDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:544:2: (iv_rulePreconditionDeclaration= rulePreconditionDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:545:2: iv_rulePreconditionDeclaration= rulePreconditionDeclaration EOF + { + newCompositeNode(grammarAccess.getPreconditionDeclarationRule()); + pushFollow(FOLLOW_rulePreconditionDeclaration_in_entryRulePreconditionDeclaration1041); + iv_rulePreconditionDeclaration=rulePreconditionDeclaration(); + + state._fsp--; + + current =iv_rulePreconditionDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRulePreconditionDeclaration1051); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRulePreconditionDeclaration" + + + // $ANTLR start "rulePreconditionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:552:1: rulePreconditionDeclaration returns [EObject current=null] : (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ; + public final EObject rulePreconditionDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + EObject lv_signal_1_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:555:28: ( (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:556:1: (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:556:1: (otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:556:3: otherlv_0= 'precondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) + { + otherlv_0=(Token)match(input,22,FOLLOW_22_in_rulePreconditionDeclaration1088); + + newLeafNode(otherlv_0, grammarAccess.getPreconditionDeclarationAccess().getPreconditionKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:560:1: ( (lv_signal_1_0= ruleSignalDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:561:1: (lv_signal_1_0= ruleSignalDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:561:1: (lv_signal_1_0= ruleSignalDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:562:3: lv_signal_1_0= ruleSignalDeclaration + { + + newCompositeNode(grammarAccess.getPreconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0()); + + pushFollow(FOLLOW_ruleSignalDeclaration_in_rulePreconditionDeclaration1109); + lv_signal_1_0=ruleSignalDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getPreconditionDeclarationRule()); + } + set( + current, + "signal", + lv_signal_1_0, + "SignalDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "rulePreconditionDeclaration" + + + // $ANTLR start "entryRulePostconditionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:586:1: entryRulePostconditionDeclaration returns [EObject current=null] : iv_rulePostconditionDeclaration= rulePostconditionDeclaration EOF ; + public final EObject entryRulePostconditionDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_rulePostconditionDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:587:2: (iv_rulePostconditionDeclaration= rulePostconditionDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:588:2: iv_rulePostconditionDeclaration= rulePostconditionDeclaration EOF + { + newCompositeNode(grammarAccess.getPostconditionDeclarationRule()); + pushFollow(FOLLOW_rulePostconditionDeclaration_in_entryRulePostconditionDeclaration1145); + iv_rulePostconditionDeclaration=rulePostconditionDeclaration(); + + state._fsp--; + + current =iv_rulePostconditionDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRulePostconditionDeclaration1155); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRulePostconditionDeclaration" + + + // $ANTLR start "rulePostconditionDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:595:1: rulePostconditionDeclaration returns [EObject current=null] : (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ; + public final EObject rulePostconditionDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + EObject lv_signal_1_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:598:28: ( (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:599:1: (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:599:1: (otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:599:3: otherlv_0= 'postcondition' ( (lv_signal_1_0= ruleSignalDeclaration ) ) + { + otherlv_0=(Token)match(input,23,FOLLOW_23_in_rulePostconditionDeclaration1192); + + newLeafNode(otherlv_0, grammarAccess.getPostconditionDeclarationAccess().getPostconditionKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:603:1: ( (lv_signal_1_0= ruleSignalDeclaration ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:604:1: (lv_signal_1_0= ruleSignalDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:604:1: (lv_signal_1_0= ruleSignalDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:605:3: lv_signal_1_0= ruleSignalDeclaration + { + + newCompositeNode(grammarAccess.getPostconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0()); + + pushFollow(FOLLOW_ruleSignalDeclaration_in_rulePostconditionDeclaration1213); + lv_signal_1_0=ruleSignalDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getPostconditionDeclarationRule()); + } + set( + current, + "signal", + lv_signal_1_0, + "SignalDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "rulePostconditionDeclaration" + + + // $ANTLR start "entryRuleStateDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:629:1: entryRuleStateDeclaration returns [EObject current=null] : iv_ruleStateDeclaration= ruleStateDeclaration EOF ; + public final EObject entryRuleStateDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleStateDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:630:2: (iv_ruleStateDeclaration= ruleStateDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:631:2: iv_ruleStateDeclaration= ruleStateDeclaration EOF + { + newCompositeNode(grammarAccess.getStateDeclarationRule()); + pushFollow(FOLLOW_ruleStateDeclaration_in_entryRuleStateDeclaration1249); + iv_ruleStateDeclaration=ruleStateDeclaration(); + + state._fsp--; + + current =iv_ruleStateDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleStateDeclaration1259); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleStateDeclaration" + + + // $ANTLR start "ruleStateDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:638:1: ruleStateDeclaration returns [EObject current=null] : (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' ) ; + public final EObject ruleStateDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + Token lv_name_1_0=null; + Token otherlv_2=null; + Token otherlv_5=null; + EObject lv_condition_3_0 = null; + + EObject lv_transitions_4_0 = null; + + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:641:28: ( (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:642:1: (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:642:1: (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:642:3: otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ otherlv_5= ';' + { + otherlv_0=(Token)match(input,24,FOLLOW_24_in_ruleStateDeclaration1296); + + newLeafNode(otherlv_0, grammarAccess.getStateDeclarationAccess().getStateKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:646:1: ( (lv_name_1_0= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:647:1: (lv_name_1_0= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:647:1: (lv_name_1_0= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:648:3: lv_name_1_0= RULE_ID + { + lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleStateDeclaration1313); + + newLeafNode(lv_name_1_0, grammarAccess.getStateDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getStateDeclarationRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_1_0, + "ID"); + + + } + + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:664:2: (otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ )? + int alt10=2; + int LA10_0 = input.LA(1); + + if ( (LA10_0==20) ) { + alt10=1; + } + switch (alt10) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:664:4: otherlv_2= 'constraints:' ( (lv_condition_3_0= ruleConditionDeclaration ) )+ + { + otherlv_2=(Token)match(input,20,FOLLOW_20_in_ruleStateDeclaration1331); + + newLeafNode(otherlv_2, grammarAccess.getStateDeclarationAccess().getConstraintsKeyword_2_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:668:1: ( (lv_condition_3_0= ruleConditionDeclaration ) )+ + int cnt9=0; + loop9: + do { + int alt9=2; + int LA9_0 = input.LA(1); + + if ( (LA9_0==21) ) { + alt9=1; + } + + + switch (alt9) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:669:1: (lv_condition_3_0= ruleConditionDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:669:1: (lv_condition_3_0= ruleConditionDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:670:3: lv_condition_3_0= ruleConditionDeclaration + { + + newCompositeNode(grammarAccess.getStateDeclarationAccess().getConditionConditionDeclarationParserRuleCall_2_1_0()); + + pushFollow(FOLLOW_ruleConditionDeclaration_in_ruleStateDeclaration1352); + lv_condition_3_0=ruleConditionDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getStateDeclarationRule()); + } + add( + current, + "condition", + lv_condition_3_0, + "ConditionDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + default : + if ( cnt9 >= 1 ) break loop9; + EarlyExitException eee = + new EarlyExitException(9, input); + throw eee; + } + cnt9++; + } while (true); + + + } + break; + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:686:5: ( (lv_transitions_4_0= ruleTransitionDeclaration ) )+ + int cnt11=0; + loop11: + do { + int alt11=2; + int LA11_0 = input.LA(1); + + if ( (LA11_0==16) ) { + alt11=1; + } + + + switch (alt11) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:687:1: (lv_transitions_4_0= ruleTransitionDeclaration ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:687:1: (lv_transitions_4_0= ruleTransitionDeclaration ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:688:3: lv_transitions_4_0= ruleTransitionDeclaration + { + + newCompositeNode(grammarAccess.getStateDeclarationAccess().getTransitionsTransitionDeclarationParserRuleCall_3_0()); + + pushFollow(FOLLOW_ruleTransitionDeclaration_in_ruleStateDeclaration1376); + lv_transitions_4_0=ruleTransitionDeclaration(); + + state._fsp--; + + + if (current==null) { + current = createModelElementForParent(grammarAccess.getStateDeclarationRule()); + } + add( + current, + "transitions", + lv_transitions_4_0, + "TransitionDeclaration"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + default : + if ( cnt11 >= 1 ) break loop11; + EarlyExitException eee = + new EarlyExitException(11, input); + throw eee; + } + cnt11++; + } while (true); + + otherlv_5=(Token)match(input,13,FOLLOW_13_in_ruleStateDeclaration1389); + + newLeafNode(otherlv_5, grammarAccess.getStateDeclarationAccess().getSemicolonKeyword_4()); + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleStateDeclaration" + + + // $ANTLR start "entryRuleLoopsDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:716:1: entryRuleLoopsDeclaration returns [EObject current=null] : iv_ruleLoopsDeclaration= ruleLoopsDeclaration EOF ; + public final EObject entryRuleLoopsDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleLoopsDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:717:2: (iv_ruleLoopsDeclaration= ruleLoopsDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:718:2: iv_ruleLoopsDeclaration= ruleLoopsDeclaration EOF + { + newCompositeNode(grammarAccess.getLoopsDeclarationRule()); + pushFollow(FOLLOW_ruleLoopsDeclaration_in_entryRuleLoopsDeclaration1425); + iv_ruleLoopsDeclaration=ruleLoopsDeclaration(); + + state._fsp--; + + current =iv_ruleLoopsDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleLoopsDeclaration1435); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleLoopsDeclaration" + + + // $ANTLR start "ruleLoopsDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:725:1: ruleLoopsDeclaration returns [EObject current=null] : (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) ) ; + public final EObject ruleLoopsDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + Token lv_val_1_0=null; + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:728:28: ( (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:729:1: (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:729:1: (otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:729:3: otherlv_0= 'loops:' ( (lv_val_1_0= RULE_INT ) ) + { + otherlv_0=(Token)match(input,25,FOLLOW_25_in_ruleLoopsDeclaration1472); + + newLeafNode(otherlv_0, grammarAccess.getLoopsDeclarationAccess().getLoopsKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:733:1: ( (lv_val_1_0= RULE_INT ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:734:1: (lv_val_1_0= RULE_INT ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:734:1: (lv_val_1_0= RULE_INT ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:735:3: lv_val_1_0= RULE_INT + { + lv_val_1_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleLoopsDeclaration1489); + + newLeafNode(lv_val_1_0, grammarAccess.getLoopsDeclarationAccess().getValINTTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getLoopsDeclarationRule()); + } + setWithLastConsumed( + current, + "val", + lv_val_1_0, + "INT"); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleLoopsDeclaration" + + + // $ANTLR start "entryRuleSeedDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:759:1: entryRuleSeedDeclaration returns [EObject current=null] : iv_ruleSeedDeclaration= ruleSeedDeclaration EOF ; + public final EObject entryRuleSeedDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleSeedDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:760:2: (iv_ruleSeedDeclaration= ruleSeedDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:761:2: iv_ruleSeedDeclaration= ruleSeedDeclaration EOF + { + newCompositeNode(grammarAccess.getSeedDeclarationRule()); + pushFollow(FOLLOW_ruleSeedDeclaration_in_entryRuleSeedDeclaration1530); + iv_ruleSeedDeclaration=ruleSeedDeclaration(); + + state._fsp--; + + current =iv_ruleSeedDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleSeedDeclaration1540); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleSeedDeclaration" + + + // $ANTLR start "ruleSeedDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:768:1: ruleSeedDeclaration returns [EObject current=null] : (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) ) ; + public final EObject ruleSeedDeclaration() throws RecognitionException { + EObject current = null; + + Token otherlv_0=null; + Token lv_val_1_0=null; + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:771:28: ( (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:772:1: (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:772:1: (otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:772:3: otherlv_0= 'randseed:' ( (lv_val_1_0= RULE_INT ) ) + { + otherlv_0=(Token)match(input,26,FOLLOW_26_in_ruleSeedDeclaration1577); + + newLeafNode(otherlv_0, grammarAccess.getSeedDeclarationAccess().getRandseedKeyword_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:776:1: ( (lv_val_1_0= RULE_INT ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:777:1: (lv_val_1_0= RULE_INT ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:777:1: (lv_val_1_0= RULE_INT ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:778:3: lv_val_1_0= RULE_INT + { + lv_val_1_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleSeedDeclaration1594); + + newLeafNode(lv_val_1_0, grammarAccess.getSeedDeclarationAccess().getValINTTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getSeedDeclarationRule()); + } + setWithLastConsumed( + current, + "val", + lv_val_1_0, + "INT"); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleSeedDeclaration" + + + // $ANTLR start "entryRuleSignalDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:802:1: entryRuleSignalDeclaration returns [EObject current=null] : iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ; + public final EObject entryRuleSignalDeclaration() throws RecognitionException { + EObject current = null; + + EObject iv_ruleSignalDeclaration = null; + + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:803:2: (iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:804:2: iv_ruleSignalDeclaration= ruleSignalDeclaration EOF + { + newCompositeNode(grammarAccess.getSignalDeclarationRule()); + pushFollow(FOLLOW_ruleSignalDeclaration_in_entryRuleSignalDeclaration1635); + iv_ruleSignalDeclaration=ruleSignalDeclaration(); + + state._fsp--; + + current =iv_ruleSignalDeclaration; + match(input,EOF,FOLLOW_EOF_in_entryRuleSignalDeclaration1645); + + } + + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "entryRuleSignalDeclaration" + + + // $ANTLR start "ruleSignalDeclaration" + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:811:1: ruleSignalDeclaration returns [EObject current=null] : ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? ) ; + public final EObject ruleSignalDeclaration() throws RecognitionException { + EObject current = null; + + Token lv_port_0_0=null; + Token otherlv_1=null; + Token lv_signame_2_0=null; + Token otherlv_3=null; + Token lv_intVal_4_0=null; + Token otherlv_5=null; + Token lv_strVal_6_0=null; + + enterRule(); + + try { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:814:28: ( ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:1: ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:1: ( ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:2: ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? ( (lv_signame_2_0= RULE_ID ) ) ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:2: ( ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' )? + int alt12=2; + int LA12_0 = input.LA(1); + + if ( (LA12_0==RULE_ID) ) { + int LA12_1 = input.LA(2); + + if ( (LA12_1==27) ) { + alt12=1; + } + } + switch (alt12) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:3: ( (lv_port_0_0= RULE_ID ) ) otherlv_1= '.' + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:815:3: ( (lv_port_0_0= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:816:1: (lv_port_0_0= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:816:1: (lv_port_0_0= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:817:3: lv_port_0_0= RULE_ID + { + lv_port_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSignalDeclaration1688); + + newLeafNode(lv_port_0_0, grammarAccess.getSignalDeclarationAccess().getPortIDTerminalRuleCall_0_0_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getSignalDeclarationRule()); + } + setWithLastConsumed( + current, + "port", + lv_port_0_0, + "ID"); + + + } + + + } + + otherlv_1=(Token)match(input,27,FOLLOW_27_in_ruleSignalDeclaration1705); + + newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getFullStopKeyword_0_1()); + + + } + break; + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:837:3: ( (lv_signame_2_0= RULE_ID ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:838:1: (lv_signame_2_0= RULE_ID ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:838:1: (lv_signame_2_0= RULE_ID ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:839:3: lv_signame_2_0= RULE_ID + { + lv_signame_2_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSignalDeclaration1724); + + newLeafNode(lv_signame_2_0, grammarAccess.getSignalDeclarationAccess().getSignameIDTerminalRuleCall_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getSignalDeclarationRule()); + } + setWithLastConsumed( + current, + "signame", + lv_signame_2_0, + "ID"); + + + } + + + } + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:2: ( (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) | (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) )? + int alt13=3; + int LA13_0 = input.LA(1); + + if ( (LA13_0==28) ) { + int LA13_1 = input.LA(2); + + if ( (LA13_1==RULE_STRING) ) { + alt13=2; + } + else if ( (LA13_1==RULE_INT) ) { + alt13=1; + } + } + switch (alt13) { + case 1 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:3: (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:3: (otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:855:5: otherlv_3= '=' ( (lv_intVal_4_0= RULE_INT ) ) + { + otherlv_3=(Token)match(input,28,FOLLOW_28_in_ruleSignalDeclaration1743); + + newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getEqualsSignKeyword_2_0_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:859:1: ( (lv_intVal_4_0= RULE_INT ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:860:1: (lv_intVal_4_0= RULE_INT ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:860:1: (lv_intVal_4_0= RULE_INT ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:861:3: lv_intVal_4_0= RULE_INT + { + lv_intVal_4_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleSignalDeclaration1760); + + newLeafNode(lv_intVal_4_0, grammarAccess.getSignalDeclarationAccess().getIntValINTTerminalRuleCall_2_0_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getSignalDeclarationRule()); + } + setWithLastConsumed( + current, + "intVal", + lv_intVal_4_0, + "INT"); + + + } + + + } + + + } + + + } + break; + case 2 : + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:878:6: (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:878:6: (otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:878:8: otherlv_5= '=' ( (lv_strVal_6_0= RULE_STRING ) ) + { + otherlv_5=(Token)match(input,28,FOLLOW_28_in_ruleSignalDeclaration1785); + + newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getEqualsSignKeyword_2_1_0()); + + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:882:1: ( (lv_strVal_6_0= RULE_STRING ) ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:883:1: (lv_strVal_6_0= RULE_STRING ) + { + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:883:1: (lv_strVal_6_0= RULE_STRING ) + // ../org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/parser/antlr/internal/InternalFSMtest.g:884:3: lv_strVal_6_0= RULE_STRING + { + lv_strVal_6_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSignalDeclaration1802); + + newLeafNode(lv_strVal_6_0, grammarAccess.getSignalDeclarationAccess().getStrValSTRINGTerminalRuleCall_2_1_1_0()); + + + if (current==null) { + current = createModelElement(grammarAccess.getSignalDeclarationRule()); + } + setWithLastConsumed( + current, + "strVal", + lv_strVal_6_0, + "STRING"); + + + } + + + } + + + } + + + } + break; + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } + finally { + } + return current; + } + // $ANTLR end "ruleSignalDeclaration" + + // Delegated rules + + + + + public static final BitSet FOLLOW_ruleModel_in_entryRuleModel75 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleModel85 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleFsmDefinition_in_ruleModel131 = new BitSet(new long[]{0x0000000000004802L}); + public static final BitSet FOLLOW_ruleRandomTest_in_ruleModel158 = new BitSet(new long[]{0x0000000000004802L}); + public static final BitSet FOLLOW_ruleFsmDefinition_in_entryRuleFsmDefinition195 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleFsmDefinition205 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_11_in_ruleFsmDefinition242 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleFsmDefinition259 = new BitSet(new long[]{0x0000000000001000L}); + public static final BitSet FOLLOW_12_in_ruleFsmDefinition276 = new BitSet(new long[]{0x0000000001000000L}); + public static final BitSet FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition297 = new BitSet(new long[]{0x0000000001002000L}); + public static final BitSet FOLLOW_ruleStateDeclaration_in_ruleFsmDefinition318 = new BitSet(new long[]{0x0000000001002000L}); + public static final BitSet FOLLOW_13_in_ruleFsmDefinition331 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleRandomTest_in_entryRuleRandomTest367 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleRandomTest377 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_14_in_ruleRandomTest414 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleRandomTest431 = new BitSet(new long[]{0x0000000000008000L}); + public static final BitSet FOLLOW_15_in_ruleRandomTest448 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleRandomTest468 = new BitSet(new long[]{0x0000000002000000L}); + public static final BitSet FOLLOW_ruleLoopsDeclaration_in_ruleRandomTest489 = new BitSet(new long[]{0x0000000004002000L}); + public static final BitSet FOLLOW_ruleSeedDeclaration_in_ruleRandomTest510 = new BitSet(new long[]{0x0000000000002000L}); + public static final BitSet FOLLOW_13_in_ruleRandomTest523 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleGuardDeclaration_in_entryRuleGuardDeclaration559 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleGuardDeclaration569 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleSignalDeclaration_in_ruleGuardDeclaration614 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleTransitionDeclaration_in_entryRuleTransitionDeclaration649 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleTransitionDeclaration659 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_16_in_ruleTransitionDeclaration696 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleTransitionDeclaration713 = new BitSet(new long[]{0x0000000000020000L}); + public static final BitSet FOLLOW_17_in_ruleTransitionDeclaration730 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleTransitionDeclaration750 = new BitSet(new long[]{0x00000000001C2000L}); + public static final BitSet FOLLOW_18_in_ruleTransitionDeclaration763 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_ruleSignalDeclaration_in_ruleTransitionDeclaration784 = new BitSet(new long[]{0x0000000000182000L}); + public static final BitSet FOLLOW_19_in_ruleTransitionDeclaration799 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_ruleGuardDeclaration_in_ruleTransitionDeclaration820 = new BitSet(new long[]{0x0000000000102010L}); + public static final BitSet FOLLOW_20_in_ruleTransitionDeclaration836 = new BitSet(new long[]{0x0000000000C00000L}); + public static final BitSet FOLLOW_rulePreconditionDeclaration_in_ruleTransitionDeclaration858 = new BitSet(new long[]{0x0000000000C02000L}); + public static final BitSet FOLLOW_rulePostconditionDeclaration_in_ruleTransitionDeclaration885 = new BitSet(new long[]{0x0000000000C02000L}); + public static final BitSet FOLLOW_13_in_ruleTransitionDeclaration901 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleConditionDeclaration_in_entryRuleConditionDeclaration937 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleConditionDeclaration947 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_21_in_ruleConditionDeclaration984 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_ruleSignalDeclaration_in_ruleConditionDeclaration1005 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rulePreconditionDeclaration_in_entryRulePreconditionDeclaration1041 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRulePreconditionDeclaration1051 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_22_in_rulePreconditionDeclaration1088 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_ruleSignalDeclaration_in_rulePreconditionDeclaration1109 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rulePostconditionDeclaration_in_entryRulePostconditionDeclaration1145 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRulePostconditionDeclaration1155 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_23_in_rulePostconditionDeclaration1192 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_ruleSignalDeclaration_in_rulePostconditionDeclaration1213 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleStateDeclaration_in_entryRuleStateDeclaration1249 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleStateDeclaration1259 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_24_in_ruleStateDeclaration1296 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleStateDeclaration1313 = new BitSet(new long[]{0x0000000000110000L}); + public static final BitSet FOLLOW_20_in_ruleStateDeclaration1331 = new BitSet(new long[]{0x0000000000200000L}); + public static final BitSet FOLLOW_ruleConditionDeclaration_in_ruleStateDeclaration1352 = new BitSet(new long[]{0x0000000000310000L}); + public static final BitSet FOLLOW_ruleTransitionDeclaration_in_ruleStateDeclaration1376 = new BitSet(new long[]{0x0000000000112000L}); + public static final BitSet FOLLOW_13_in_ruleStateDeclaration1389 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleLoopsDeclaration_in_entryRuleLoopsDeclaration1425 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleLoopsDeclaration1435 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_25_in_ruleLoopsDeclaration1472 = new BitSet(new long[]{0x0000000000000020L}); + public static final BitSet FOLLOW_RULE_INT_in_ruleLoopsDeclaration1489 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleSeedDeclaration_in_entryRuleSeedDeclaration1530 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleSeedDeclaration1540 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_26_in_ruleSeedDeclaration1577 = new BitSet(new long[]{0x0000000000000020L}); + public static final BitSet FOLLOW_RULE_INT_in_ruleSeedDeclaration1594 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleSignalDeclaration_in_entryRuleSignalDeclaration1635 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleSignalDeclaration1645 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleSignalDeclaration1688 = new BitSet(new long[]{0x0000000008000000L}); + public static final BitSet FOLLOW_27_in_ruleSignalDeclaration1705 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_RULE_ID_in_ruleSignalDeclaration1724 = new BitSet(new long[]{0x0000000010000002L}); + public static final BitSet FOLLOW_28_in_ruleSignalDeclaration1743 = new BitSet(new long[]{0x0000000000000020L}); + public static final BitSet FOLLOW_RULE_INT_in_ruleSignalDeclaration1760 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_28_in_ruleSignalDeclaration1785 = new BitSet(new long[]{0x0000000000000040L}); + public static final BitSet FOLLOW_RULE_STRING_in_ruleSignalDeclaration1802 = new BitSet(new long[]{0x0000000000000002L}); + }
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSemanticSequencer.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSemanticSequencer.java index 5075e668c..ddd2d9d33 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSemanticSequencer.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSemanticSequencer.java @@ -1,269 +1,269 @@ -package org.eclipse.etrice.generator.serializer;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.FsmDefinition;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.GuardDeclaration;
-import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration;
-import org.eclipse.etrice.generator.fsmtest.Model;
-import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration;
-import org.eclipse.etrice.generator.fsmtest.RandomTest;
-import org.eclipse.etrice.generator.fsmtest.SeedDeclaration;
-import org.eclipse.etrice.generator.fsmtest.SignalDeclaration;
-import org.eclipse.etrice.generator.fsmtest.StateDeclaration;
-import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration;
-import org.eclipse.etrice.generator.services.FSMtestGrammarAccess;
-import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
-import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
-import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-@SuppressWarnings("all")
-public class FSMtestSemanticSequencer extends AbstractDelegatingSemanticSequencer {
-
- @Inject
- private FSMtestGrammarAccess grammarAccess;
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == FsmtestPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case FsmtestPackage.CONDITION_DECLARATION:
- if(context == grammarAccess.getConditionDeclarationRule()) {
- sequence_ConditionDeclaration(context, (ConditionDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.FSM_DEFINITION:
- if(context == grammarAccess.getFsmDefinitionRule()) {
- sequence_FsmDefinition(context, (FsmDefinition) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.GUARD_DECLARATION:
- if(context == grammarAccess.getGuardDeclarationRule()) {
- sequence_GuardDeclaration(context, (GuardDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.LOOPS_DECLARATION:
- if(context == grammarAccess.getLoopsDeclarationRule()) {
- sequence_LoopsDeclaration(context, (LoopsDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.MODEL:
- if(context == grammarAccess.getModelRule()) {
- sequence_Model(context, (Model) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.POSTCONDITION_DECLARATION:
- if(context == grammarAccess.getPostconditionDeclarationRule()) {
- sequence_PostconditionDeclaration(context, (PostconditionDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.PRECONDITION_DECLARATION:
- if(context == grammarAccess.getPreconditionDeclarationRule()) {
- sequence_PreconditionDeclaration(context, (PreconditionDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.RANDOM_TEST:
- if(context == grammarAccess.getRandomTestRule()) {
- sequence_RandomTest(context, (RandomTest) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.SEED_DECLARATION:
- if(context == grammarAccess.getSeedDeclarationRule()) {
- sequence_SeedDeclaration(context, (SeedDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.SIGNAL_DECLARATION:
- if(context == grammarAccess.getSignalDeclarationRule()) {
- sequence_SignalDeclaration(context, (SignalDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.STATE_DECLARATION:
- if(context == grammarAccess.getStateDeclarationRule()) {
- sequence_StateDeclaration(context, (StateDeclaration) semanticObject);
- return;
- }
- else break;
- case FsmtestPackage.TRANSITION_DECLARATION:
- if(context == grammarAccess.getTransitionDeclarationRule()) {
- sequence_TransitionDeclaration(context, (TransitionDeclaration) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * signal=SignalDeclaration
- */
- protected void sequence_ConditionDeclaration(EObject context, ConditionDeclaration semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.CONDITION_DECLARATION__SIGNAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.CONDITION_DECLARATION__SIGNAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getConditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0(), semanticObject.getSignal());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (name=ID states+=StateDeclaration states+=StateDeclaration*)
- */
- protected void sequence_FsmDefinition(EObject context, FsmDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * signal=SignalDeclaration
- */
- protected void sequence_GuardDeclaration(EObject context, GuardDeclaration semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.GUARD_DECLARATION__SIGNAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.GUARD_DECLARATION__SIGNAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getGuardDeclarationAccess().getSignalSignalDeclarationParserRuleCall_0(), semanticObject.getSignal());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * val=INT
- */
- protected void sequence_LoopsDeclaration(EObject context, LoopsDeclaration semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.LOOPS_DECLARATION__VAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.LOOPS_DECLARATION__VAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getLoopsDeclarationAccess().getValINTTerminalRuleCall_1_0(), semanticObject.getVal());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (FsmDefinitions+=FsmDefinition | RandomTests+=RandomTest)*
- */
- protected void sequence_Model(EObject context, Model semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * signal=SignalDeclaration
- */
- protected void sequence_PostconditionDeclaration(EObject context, PostconditionDeclaration semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.POSTCONDITION_DECLARATION__SIGNAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.POSTCONDITION_DECLARATION__SIGNAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getPostconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0(), semanticObject.getSignal());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * signal=SignalDeclaration
- */
- protected void sequence_PreconditionDeclaration(EObject context, PreconditionDeclaration semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.PRECONDITION_DECLARATION__SIGNAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.PRECONDITION_DECLARATION__SIGNAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getPreconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0(), semanticObject.getSignal());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (name=ID fsm=[FsmDefinition|ID] loopsDeclaration=LoopsDeclaration seedDeclaration=SeedDeclaration?)
- */
- protected void sequence_RandomTest(EObject context, RandomTest semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * val=INT
- */
- protected void sequence_SeedDeclaration(EObject context, SeedDeclaration semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.SEED_DECLARATION__VAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.SEED_DECLARATION__VAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSeedDeclarationAccess().getValINTTerminalRuleCall_1_0(), semanticObject.getVal());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (port=ID? signame=ID (intVal=INT | strVal=STRING)?)
- */
- protected void sequence_SignalDeclaration(EObject context, SignalDeclaration semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (name=ID condition+=ConditionDeclaration* transitions+=TransitionDeclaration+)
- */
- protected void sequence_StateDeclaration(EObject context, StateDeclaration semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * name=ID
- * destination=[StateDeclaration|ID]
- * trigger=SignalDeclaration?
- * triggers+=GuardDeclaration*
- * (precondition+=PreconditionDeclaration | postcondition+=PostconditionDeclaration)*
- * )
- */
- protected void sequence_TransitionDeclaration(EObject context, TransitionDeclaration semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-}
+package org.eclipse.etrice.generator.serializer; + +import com.google.inject.Inject; +import com.google.inject.Provider; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.etrice.generator.fsmtest.ConditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.FsmDefinition; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.GuardDeclaration; +import org.eclipse.etrice.generator.fsmtest.LoopsDeclaration; +import org.eclipse.etrice.generator.fsmtest.Model; +import org.eclipse.etrice.generator.fsmtest.PostconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.PreconditionDeclaration; +import org.eclipse.etrice.generator.fsmtest.RandomTest; +import org.eclipse.etrice.generator.fsmtest.SeedDeclaration; +import org.eclipse.etrice.generator.fsmtest.SignalDeclaration; +import org.eclipse.etrice.generator.fsmtest.StateDeclaration; +import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration; +import org.eclipse.etrice.generator.services.FSMtestGrammarAccess; +import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor; +import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; +import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider; +import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor; +import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; +import org.eclipse.xtext.serializer.sequencer.GenericSequencer; +import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; +import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; +import org.eclipse.xtext.serializer.sequencer.ITransientValueService; +import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; + +@SuppressWarnings("all") +public class FSMtestSemanticSequencer extends AbstractDelegatingSemanticSequencer { + + @Inject + private FSMtestGrammarAccess grammarAccess; + + public void createSequence(EObject context, EObject semanticObject) { + if(semanticObject.eClass().getEPackage() == FsmtestPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) { + case FsmtestPackage.CONDITION_DECLARATION: + if(context == grammarAccess.getConditionDeclarationRule()) { + sequence_ConditionDeclaration(context, (ConditionDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.FSM_DEFINITION: + if(context == grammarAccess.getFsmDefinitionRule()) { + sequence_FsmDefinition(context, (FsmDefinition) semanticObject); + return; + } + else break; + case FsmtestPackage.GUARD_DECLARATION: + if(context == grammarAccess.getGuardDeclarationRule()) { + sequence_GuardDeclaration(context, (GuardDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.LOOPS_DECLARATION: + if(context == grammarAccess.getLoopsDeclarationRule()) { + sequence_LoopsDeclaration(context, (LoopsDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.MODEL: + if(context == grammarAccess.getModelRule()) { + sequence_Model(context, (Model) semanticObject); + return; + } + else break; + case FsmtestPackage.POSTCONDITION_DECLARATION: + if(context == grammarAccess.getPostconditionDeclarationRule()) { + sequence_PostconditionDeclaration(context, (PostconditionDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.PRECONDITION_DECLARATION: + if(context == grammarAccess.getPreconditionDeclarationRule()) { + sequence_PreconditionDeclaration(context, (PreconditionDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.RANDOM_TEST: + if(context == grammarAccess.getRandomTestRule()) { + sequence_RandomTest(context, (RandomTest) semanticObject); + return; + } + else break; + case FsmtestPackage.SEED_DECLARATION: + if(context == grammarAccess.getSeedDeclarationRule()) { + sequence_SeedDeclaration(context, (SeedDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.SIGNAL_DECLARATION: + if(context == grammarAccess.getSignalDeclarationRule()) { + sequence_SignalDeclaration(context, (SignalDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.STATE_DECLARATION: + if(context == grammarAccess.getStateDeclarationRule()) { + sequence_StateDeclaration(context, (StateDeclaration) semanticObject); + return; + } + else break; + case FsmtestPackage.TRANSITION_DECLARATION: + if(context == grammarAccess.getTransitionDeclarationRule()) { + sequence_TransitionDeclaration(context, (TransitionDeclaration) semanticObject); + return; + } + else break; + } + if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); + } + + /** + * Constraint: + * signal=SignalDeclaration + */ + protected void sequence_ConditionDeclaration(EObject context, ConditionDeclaration semanticObject) { + if(errorAcceptor != null) { + if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.CONDITION_DECLARATION__SIGNAL) == ValueTransient.YES) + errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.CONDITION_DECLARATION__SIGNAL)); + } + INodesForEObjectProvider nodes = createNodeProvider(semanticObject); + SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + feeder.accept(grammarAccess.getConditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0(), semanticObject.getSignal()); + feeder.finish(); + } + + + /** + * Constraint: + * (name=ID states+=StateDeclaration states+=StateDeclaration*) + */ + protected void sequence_FsmDefinition(EObject context, FsmDefinition semanticObject) { + genericSequencer.createSequence(context, semanticObject); + } + + + /** + * Constraint: + * signal=SignalDeclaration + */ + protected void sequence_GuardDeclaration(EObject context, GuardDeclaration semanticObject) { + if(errorAcceptor != null) { + if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.GUARD_DECLARATION__SIGNAL) == ValueTransient.YES) + errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.GUARD_DECLARATION__SIGNAL)); + } + INodesForEObjectProvider nodes = createNodeProvider(semanticObject); + SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + feeder.accept(grammarAccess.getGuardDeclarationAccess().getSignalSignalDeclarationParserRuleCall_0(), semanticObject.getSignal()); + feeder.finish(); + } + + + /** + * Constraint: + * val=INT + */ + protected void sequence_LoopsDeclaration(EObject context, LoopsDeclaration semanticObject) { + if(errorAcceptor != null) { + if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.LOOPS_DECLARATION__VAL) == ValueTransient.YES) + errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.LOOPS_DECLARATION__VAL)); + } + INodesForEObjectProvider nodes = createNodeProvider(semanticObject); + SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + feeder.accept(grammarAccess.getLoopsDeclarationAccess().getValINTTerminalRuleCall_1_0(), semanticObject.getVal()); + feeder.finish(); + } + + + /** + * Constraint: + * (FsmDefinitions+=FsmDefinition | RandomTests+=RandomTest)* + */ + protected void sequence_Model(EObject context, Model semanticObject) { + genericSequencer.createSequence(context, semanticObject); + } + + + /** + * Constraint: + * signal=SignalDeclaration + */ + protected void sequence_PostconditionDeclaration(EObject context, PostconditionDeclaration semanticObject) { + if(errorAcceptor != null) { + if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.POSTCONDITION_DECLARATION__SIGNAL) == ValueTransient.YES) + errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.POSTCONDITION_DECLARATION__SIGNAL)); + } + INodesForEObjectProvider nodes = createNodeProvider(semanticObject); + SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + feeder.accept(grammarAccess.getPostconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0(), semanticObject.getSignal()); + feeder.finish(); + } + + + /** + * Constraint: + * signal=SignalDeclaration + */ + protected void sequence_PreconditionDeclaration(EObject context, PreconditionDeclaration semanticObject) { + if(errorAcceptor != null) { + if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.PRECONDITION_DECLARATION__SIGNAL) == ValueTransient.YES) + errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.PRECONDITION_DECLARATION__SIGNAL)); + } + INodesForEObjectProvider nodes = createNodeProvider(semanticObject); + SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + feeder.accept(grammarAccess.getPreconditionDeclarationAccess().getSignalSignalDeclarationParserRuleCall_1_0(), semanticObject.getSignal()); + feeder.finish(); + } + + + /** + * Constraint: + * (name=ID fsm=[FsmDefinition|ID] loopsDeclaration=LoopsDeclaration seedDeclaration=SeedDeclaration?) + */ + protected void sequence_RandomTest(EObject context, RandomTest semanticObject) { + genericSequencer.createSequence(context, semanticObject); + } + + + /** + * Constraint: + * val=INT + */ + protected void sequence_SeedDeclaration(EObject context, SeedDeclaration semanticObject) { + if(errorAcceptor != null) { + if(transientValues.isValueTransient(semanticObject, FsmtestPackage.Literals.SEED_DECLARATION__VAL) == ValueTransient.YES) + errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FsmtestPackage.Literals.SEED_DECLARATION__VAL)); + } + INodesForEObjectProvider nodes = createNodeProvider(semanticObject); + SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + feeder.accept(grammarAccess.getSeedDeclarationAccess().getValINTTerminalRuleCall_1_0(), semanticObject.getVal()); + feeder.finish(); + } + + + /** + * Constraint: + * (port=ID? signame=ID (intVal=INT | strVal=STRING)?) + */ + protected void sequence_SignalDeclaration(EObject context, SignalDeclaration semanticObject) { + genericSequencer.createSequence(context, semanticObject); + } + + + /** + * Constraint: + * (name=ID condition+=ConditionDeclaration* transitions+=TransitionDeclaration+) + */ + protected void sequence_StateDeclaration(EObject context, StateDeclaration semanticObject) { + genericSequencer.createSequence(context, semanticObject); + } + + + /** + * Constraint: + * ( + * name=ID + * destination=[StateDeclaration|ID] + * trigger=SignalDeclaration? + * triggers+=GuardDeclaration* + * (precondition+=PreconditionDeclaration | postcondition+=PostconditionDeclaration)* + * ) + */ + protected void sequence_TransitionDeclaration(EObject context, TransitionDeclaration semanticObject) { + genericSequencer.createSequence(context, semanticObject); + } +} diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSyntacticSequencer.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSyntacticSequencer.java index bc7254bcd..955189b5e 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSyntacticSequencer.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/serializer/FSMtestSyntacticSequencer.java @@ -1,40 +1,40 @@ -package org.eclipse.etrice.generator.serializer;
-
-import com.google.inject.Inject;
-import java.util.List;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.etrice.generator.services.FSMtestGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-@SuppressWarnings("all")
-public class FSMtestSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected FSMtestGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (FSMtestGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
+package org.eclipse.etrice.generator.serializer; + +import com.google.inject.Inject; +import java.util.List; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.etrice.generator.services.FSMtestGrammarAccess; +import org.eclipse.xtext.IGrammarAccess; +import org.eclipse.xtext.RuleCall; +import org.eclipse.xtext.nodemodel.INode; +import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; +import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; +import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; + +@SuppressWarnings("all") +public class FSMtestSyntacticSequencer extends AbstractSyntacticSequencer { + + protected FSMtestGrammarAccess grammarAccess; + + @Inject + protected void init(IGrammarAccess access) { + grammarAccess = (FSMtestGrammarAccess) access; + } + + @Override + protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { + return ""; + } + + + @Override + protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { + if (transition.getAmbiguousSyntaxes().isEmpty()) return; + List<INode> transitionNodes = collectNodes(fromNode, toNode); + for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { + List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); + acceptNodes(getLastNavigableState(), syntaxNodes); + } + } + +} diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtest.xtext b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtest.xtext index 3950f9f70..624c2e64a 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtest.xtext +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtest.xtext @@ -1,93 +1,93 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-grammar org.eclipse.etrice.generator.FSMtest with org.eclipse.xtext.common.Terminals
-
-generate fsmtest "http://www.eclipse.org/etrice/generator/FSMtest"
-
-Model:
- (
- FsmDefinitions+=FsmDefinition |
- RandomTests+=RandomTest
- )*;
-
-FsmDefinition:
- 'fsmdefinition' name=ID
- 'initial' states+=StateDeclaration
- (states+=StateDeclaration)*
- ';'
-;
-
-RandomTest:
- 'randomtest' name=ID
- 'fsm:' fsm=[FsmDefinition|ID]
- loopsDeclaration = LoopsDeclaration
- (seedDeclaration = SeedDeclaration)?
- ';'
-;
-
-GuardDeclaration:
- signal=SignalDeclaration
-;
-
-TransitionDeclaration:
- 'transition' name=ID 'to' destination=[StateDeclaration|ID]
- (
- 'trigger:' trigger=SignalDeclaration
- )?
- (
- 'guards:'
- (triggers+=GuardDeclaration)+
- )?
- (
- 'constraints:'
- (
- precondition+=PreconditionDeclaration |
- postcondition+=PostconditionDeclaration
- )+
- )?
- ';'
-;
-
-ConditionDeclaration:
- 'condition' signal=SignalDeclaration
-;
-
-PreconditionDeclaration:
- 'precondition' signal=SignalDeclaration
-;
-
-PostconditionDeclaration:
- 'postcondition' signal=SignalDeclaration
-;
-
-StateDeclaration:
- 'state' name=ID
- (
- 'constraints:'
- (condition+=ConditionDeclaration)+
- )?
- (transitions+=TransitionDeclaration)+
- ';'
-;
-
-LoopsDeclaration:
- 'loops:' val=INT
-;
-
-SeedDeclaration:
- 'randseed:' val=INT
-;
-
-SignalDeclaration:
- (port=ID '.')? signame=ID (('=' intVal=INT) | ('=' strVal=STRING))?
-;
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +grammar org.eclipse.etrice.generator.FSMtest with org.eclipse.xtext.common.Terminals + +generate fsmtest "http://www.eclipse.org/etrice/generator/FSMtest" + +Model: + ( + FsmDefinitions+=FsmDefinition | + RandomTests+=RandomTest + )*; + +FsmDefinition: + 'fsmdefinition' name=ID + 'initial' states+=StateDeclaration + (states+=StateDeclaration)* + ';' +; + +RandomTest: + 'randomtest' name=ID + 'fsm:' fsm=[FsmDefinition|ID] + loopsDeclaration = LoopsDeclaration + (seedDeclaration = SeedDeclaration)? + ';' +; + +GuardDeclaration: + signal=SignalDeclaration +; + +TransitionDeclaration: + 'transition' name=ID 'to' destination=[StateDeclaration|ID] + ( + 'trigger:' trigger=SignalDeclaration + )? + ( + 'guards:' + (triggers+=GuardDeclaration)+ + )? + ( + 'constraints:' + ( + precondition+=PreconditionDeclaration | + postcondition+=PostconditionDeclaration + )+ + )? + ';' +; + +ConditionDeclaration: + 'condition' signal=SignalDeclaration +; + +PreconditionDeclaration: + 'precondition' signal=SignalDeclaration +; + +PostconditionDeclaration: + 'postcondition' signal=SignalDeclaration +; + +StateDeclaration: + 'state' name=ID + ( + 'constraints:' + (condition+=ConditionDeclaration)+ + )? + (transitions+=TransitionDeclaration)+ + ';' +; + +LoopsDeclaration: + 'loops:' val=INT +; + +SeedDeclaration: + 'randseed:' val=INT +; + +SignalDeclaration: + (port=ID '.')? signame=ID (('=' intVal=INT) | ('=' strVal=STRING))? +; diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestRuntimeModule.java b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestRuntimeModule.java index 68f0b3d13..d4ffc28c8 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestRuntimeModule.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestRuntimeModule.java @@ -1,20 +1,20 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.generator;
-
-/**
- * Use this class to register components to be used at runtime / without the Equinox extension registry.
- */
-public class FSMtestRuntimeModule extends org.eclipse.etrice.generator.AbstractFSMtestRuntimeModule {
-
-}
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +package org.eclipse.etrice.generator; + +/** + * Use this class to register components to be used at runtime / without the Equinox extension registry. + */ +public class FSMtestRuntimeModule extends org.eclipse.etrice.generator.AbstractFSMtestRuntimeModule { + +} diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestStandaloneSetup.java b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestStandaloneSetup.java index 3862047da..52b178089 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestStandaloneSetup.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/FSMtestStandaloneSetup.java @@ -1,25 +1,25 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.generator;
-
-/**
- * Initialization support for running Xtext languages
- * without equinox extension registry
- */
-public class FSMtestStandaloneSetup extends FSMtestStandaloneSetupGenerated{
-
- public static void doSetup() {
- new FSMtestStandaloneSetup().createInjectorAndDoEMFRegistration();
- }
-}
-
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +package org.eclipse.etrice.generator; + +/** + * Initialization support for running Xtext languages + * without equinox extension registry + */ +public class FSMtestStandaloneSetup extends FSMtestStandaloneSetupGenerated{ + + public static void doSetup() { + new FSMtestStandaloneSetup().createInjectorAndDoEMFRegistration(); + } +} + diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/GenerateFSMtest.mwe2 b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/GenerateFSMtest.mwe2 index c678cdc82..6ef6b8887 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/GenerateFSMtest.mwe2 +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/GenerateFSMtest.mwe2 @@ -1,151 +1,151 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-module org.eclipse.etrice.generator.GenerateFSMtest
-
-import org.eclipse.emf.mwe.utils.*
-import org.eclipse.xtext.generator.*
-import org.eclipse.xtext.ui.generator.*
-
-var grammarURI = "classpath:/org/eclipse/etrice/generator/FSMtest.xtext"
-var file.extensions = "fsmtest"
-var projectName = "org.eclipse.etrice.generator.fsmtest"
-var runtimeProject = "../${projectName}"
-
-Workflow {
- bean = StandaloneSetup {
- scanClassPath = true
- platformUri = "${runtimeProject}/.."
- // The following two lines can be removed, if Xbase is not used.
- registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
- registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
- }
-
- component = DirectoryCleaner {
- directory = "${runtimeProject}/src-gen"
- }
-
- component = DirectoryCleaner {
- directory = "${runtimeProject}.ui/src-gen"
- }
-
- component = Generator {
- pathRtProject = runtimeProject
- pathUiProject = "${runtimeProject}.ui"
- pathTestProject = "../../tests/${projectName}.tests"
- projectNameRt = projectName
- projectNameUi = "${projectName}.ui"
- language = {
- uri = grammarURI
- fileExtensions = file.extensions
-
- // Java API to access grammar elements (required by several other fragments)
- fragment = grammarAccess.GrammarAccessFragment {}
-
- // generates Java API for the generated EPackages
- fragment = ecore.EcoreGeneratorFragment {
- // referencedGenModels = "
- // platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel,
- // platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel
- // "
- }
-
- // Serializer 2.0
- fragment = serializer.SerializerFragment {
- generateStub = false
- }
-
- // the serialization component (1.0)
- // fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
-
- // a custom ResourceFactory for use with EMF
- fragment = resourceFactory.ResourceFactoryFragment {
- fileExtensions = file.extensions
- }
-
- // The antlr parser generator fragment.
- fragment = parser.antlr.XtextAntlrGeneratorFragment {
- // options = {
- // backtrack = true
- // }
- }
-
- // java-based API for validation
- fragment = validation.JavaValidatorFragment {
- // composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
- // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
- }
-
- // scoping and exporting API
- // fragment = scoping.ImportURIScopingFragment {}
- // fragment = exporting.SimpleNamesFragment {}
-
- // scoping and exporting API
- fragment = scoping.ImportNamespacesScopingFragment {}
- fragment = exporting.QualifiedNamesFragment {}
- //fragment = builder.BuilderIntegrationFragment {}
-
- // generator API
- fragment = generator.GeneratorFragment {
- generateMwe = false
- generateJavaMain = false
- }
-
- // formatter API
- fragment = formatting.FormatterFragment {}
-
- // labeling API
- fragment = labeling.LabelProviderFragment {}
-
- // outline API
- fragment = outline.OutlineTreeProviderFragment {}
- fragment = outline.QuickOutlineFragment {}
-
- // quickfix API
- fragment = quickfix.QuickfixProviderFragment {}
-
- // content assist API
- fragment = contentAssist.JavaBasedContentAssistFragment {}
-
- // generates a more lightweight Antlr parser and lexer tailored for content assist
- fragment = parser.antlr.XtextAntlrUiGeneratorFragment {}
-
- // generates junit test support classes into Generator#pathTestProject
- fragment = junit.Junit4Fragment {}
-
- // project wizard (optional)
- // fragment = projectWizard.SimpleProjectWizardFragment {
- // generatorProjectName = "${projectName}"
- // modelFileExtension = file.extensions
- // }
-
- // rename refactoring
- fragment = refactoring.RefactorElementNameFragment {}
-
- // provides the necessary bindings for java types integration
- fragment = types.TypesGeneratorFragment {}
-
- // generates the required bindings only if the grammar inherits from Xbase
- fragment = xbase.XbaseGeneratorFragment {}
-
- // provides a preference page for template proposals
- fragment = templates.CodetemplatesGeneratorFragment {}
-
- // provides a compare view
- fragment = compare.CompareFragment {
- fileExtensions = file.extensions
- }
-
- }
- }
-}
-
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +module org.eclipse.etrice.generator.GenerateFSMtest + +import org.eclipse.emf.mwe.utils.* +import org.eclipse.xtext.generator.* +import org.eclipse.xtext.ui.generator.* + +var grammarURI = "classpath:/org/eclipse/etrice/generator/FSMtest.xtext" +var file.extensions = "fsmtest" +var projectName = "org.eclipse.etrice.generator.fsmtest" +var runtimeProject = "../${projectName}" + +Workflow { + bean = StandaloneSetup { + scanClassPath = true + platformUri = "${runtimeProject}/.." + // The following two lines can be removed, if Xbase is not used. + registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage" + registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel" + } + + component = DirectoryCleaner { + directory = "${runtimeProject}/src-gen" + } + + component = DirectoryCleaner { + directory = "${runtimeProject}.ui/src-gen" + } + + component = Generator { + pathRtProject = runtimeProject + pathUiProject = "${runtimeProject}.ui" + pathTestProject = "../../tests/${projectName}.tests" + projectNameRt = projectName + projectNameUi = "${projectName}.ui" + language = { + uri = grammarURI + fileExtensions = file.extensions + + // Java API to access grammar elements (required by several other fragments) + fragment = grammarAccess.GrammarAccessFragment {} + + // generates Java API for the generated EPackages + fragment = ecore.EcoreGeneratorFragment { + // referencedGenModels = " + // platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel, + // platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel + // " + } + + // Serializer 2.0 + fragment = serializer.SerializerFragment { + generateStub = false + } + + // the serialization component (1.0) + // fragment = parseTreeConstructor.ParseTreeConstructorFragment {} + + // a custom ResourceFactory for use with EMF + fragment = resourceFactory.ResourceFactoryFragment { + fileExtensions = file.extensions + } + + // The antlr parser generator fragment. + fragment = parser.antlr.XtextAntlrGeneratorFragment { + // options = { + // backtrack = true + // } + } + + // java-based API for validation + fragment = validation.JavaValidatorFragment { + // composedCheck = "org.eclipse.xtext.validation.ImportUriValidator" + // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" + } + + // scoping and exporting API + // fragment = scoping.ImportURIScopingFragment {} + // fragment = exporting.SimpleNamesFragment {} + + // scoping and exporting API + fragment = scoping.ImportNamespacesScopingFragment {} + fragment = exporting.QualifiedNamesFragment {} + //fragment = builder.BuilderIntegrationFragment {} + + // generator API + fragment = generator.GeneratorFragment { + generateMwe = false + generateJavaMain = false + } + + // formatter API + fragment = formatting.FormatterFragment {} + + // labeling API + fragment = labeling.LabelProviderFragment {} + + // outline API + fragment = outline.OutlineTreeProviderFragment {} + fragment = outline.QuickOutlineFragment {} + + // quickfix API + fragment = quickfix.QuickfixProviderFragment {} + + // content assist API + fragment = contentAssist.JavaBasedContentAssistFragment {} + + // generates a more lightweight Antlr parser and lexer tailored for content assist + fragment = parser.antlr.XtextAntlrUiGeneratorFragment {} + + // generates junit test support classes into Generator#pathTestProject + fragment = junit.Junit4Fragment {} + + // project wizard (optional) + // fragment = projectWizard.SimpleProjectWizardFragment { + // generatorProjectName = "${projectName}" + // modelFileExtension = file.extensions + // } + + // rename refactoring + fragment = refactoring.RefactorElementNameFragment {} + + // provides the necessary bindings for java types integration + fragment = types.TypesGeneratorFragment {} + + // generates the required bindings only if the grammar inherits from Xbase + fragment = xbase.XbaseGeneratorFragment {} + + // provides a preference page for template proposals + fragment = templates.CodetemplatesGeneratorFragment {} + + // provides a compare view + fragment = compare.CompareFragment { + fileExtensions = file.extensions + } + + } + } +} + diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/formatting/FSMtestFormatter.java b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/formatting/FSMtestFormatter.java index ba336900d..1a8d54d4a 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/formatting/FSMtestFormatter.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/formatting/FSMtestFormatter.java @@ -1,80 +1,80 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.generator.formatting;
-
-import org.eclipse.etrice.generator.services.FSMtestGrammarAccess;
-import org.eclipse.xtext.Keyword;
-import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter;
-import org.eclipse.xtext.formatting.impl.FormattingConfig;
-
-/**
- * This class contains custom formatting description.
- *
- * see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#formatting
- * on how and when to use it
- *
- * Also see {@link org.eclipse.xtext.xtext.XtextFormattingTokenSerializer} as an example
- */
-public class FSMtestFormatter extends AbstractDeclarativeFormatter {
-
- @Override
- protected void configureFormatting(FormattingConfig c) {
- FSMtestGrammarAccess grammarAccess = (FSMtestGrammarAccess) getGrammarAccess();
- c.setLinewrap(0, 1, 2).before(grammarAccess.getSL_COMMENTRule());
- c.setLinewrap(0, 1, 2).before(grammarAccess.getML_COMMENTRule());
- c.setLinewrap(0, 1, 1).after(grammarAccess.getML_COMMENTRule());
-
- for (Keyword k: grammarAccess.findKeywords(";")) {
- c.setIndentationDecrement().before(k);
- c.setLinewrap().before(k);
- }
-
- for (Keyword k: grammarAccess.findKeywords("initial","state","constraints:", "condition", "transition",
- "trigger:", "guards:", "fsm:", "loops:", "randseed:", "precondition", "postcondition", "randomtest")) {
- c.setLinewrap().before(k);
- }
-
- for (Keyword k: grammarAccess.findKeywords("randomtest", "fsmdefinition")) {
- c.setIndentationIncrement().after(k);
- c.setLinewrap(2).before(k);
- }
-
- for (Keyword k: grammarAccess.findKeywords("state", "transition")) {
- c.setIndentationIncrement().after(k);
- }
-
- for (Keyword k: grammarAccess.findKeywords(".")) {
- c.setNoSpace().around(k);
- }
-
- for (Keyword k: grammarAccess.findKeywords("initial")) {
- c.setNoLinewrap().after(k);
- }
-
- c.setIndentationIncrement().before(grammarAccess.getPostconditionDeclarationRule());
- c.setIndentationDecrement().after(grammarAccess.getPostconditionDeclarationRule());
- c.setLinewrap().before(grammarAccess.getPostconditionDeclarationRule());
-
- c.setIndentationIncrement().before(grammarAccess.getPreconditionDeclarationRule());
- c.setIndentationDecrement().after(grammarAccess.getPreconditionDeclarationRule());
- c.setLinewrap().before(grammarAccess.getPreconditionDeclarationRule());
-
- c.setIndentationIncrement().before(grammarAccess.getConditionDeclarationRule());
- c.setIndentationDecrement().after(grammarAccess.getConditionDeclarationRule());
- c.setLinewrap().before(grammarAccess.getConditionDeclarationRule());
-
- c.setIndentationIncrement().before(grammarAccess.getGuardDeclarationRule());
- c.setIndentationDecrement().after(grammarAccess.getGuardDeclarationRule());
- c.setLinewrap().before(grammarAccess.getGuardDeclarationRule());
- }
-}
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +package org.eclipse.etrice.generator.formatting; + +import org.eclipse.etrice.generator.services.FSMtestGrammarAccess; +import org.eclipse.xtext.Keyword; +import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter; +import org.eclipse.xtext.formatting.impl.FormattingConfig; + +/** + * This class contains custom formatting description. + * + * see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#formatting + * on how and when to use it + * + * Also see {@link org.eclipse.xtext.xtext.XtextFormattingTokenSerializer} as an example + */ +public class FSMtestFormatter extends AbstractDeclarativeFormatter { + + @Override + protected void configureFormatting(FormattingConfig c) { + FSMtestGrammarAccess grammarAccess = (FSMtestGrammarAccess) getGrammarAccess(); + c.setLinewrap(0, 1, 2).before(grammarAccess.getSL_COMMENTRule()); + c.setLinewrap(0, 1, 2).before(grammarAccess.getML_COMMENTRule()); + c.setLinewrap(0, 1, 1).after(grammarAccess.getML_COMMENTRule()); + + for (Keyword k: grammarAccess.findKeywords(";")) { + c.setIndentationDecrement().before(k); + c.setLinewrap().before(k); + } + + for (Keyword k: grammarAccess.findKeywords("initial","state","constraints:", "condition", "transition", + "trigger:", "guards:", "fsm:", "loops:", "randseed:", "precondition", "postcondition", "randomtest")) { + c.setLinewrap().before(k); + } + + for (Keyword k: grammarAccess.findKeywords("randomtest", "fsmdefinition")) { + c.setIndentationIncrement().after(k); + c.setLinewrap(2).before(k); + } + + for (Keyword k: grammarAccess.findKeywords("state", "transition")) { + c.setIndentationIncrement().after(k); + } + + for (Keyword k: grammarAccess.findKeywords(".")) { + c.setNoSpace().around(k); + } + + for (Keyword k: grammarAccess.findKeywords("initial")) { + c.setNoLinewrap().after(k); + } + + c.setIndentationIncrement().before(grammarAccess.getPostconditionDeclarationRule()); + c.setIndentationDecrement().after(grammarAccess.getPostconditionDeclarationRule()); + c.setLinewrap().before(grammarAccess.getPostconditionDeclarationRule()); + + c.setIndentationIncrement().before(grammarAccess.getPreconditionDeclarationRule()); + c.setIndentationDecrement().after(grammarAccess.getPreconditionDeclarationRule()); + c.setLinewrap().before(grammarAccess.getPreconditionDeclarationRule()); + + c.setIndentationIncrement().before(grammarAccess.getConditionDeclarationRule()); + c.setIndentationDecrement().after(grammarAccess.getConditionDeclarationRule()); + c.setLinewrap().before(grammarAccess.getConditionDeclarationRule()); + + c.setIndentationIncrement().before(grammarAccess.getGuardDeclarationRule()); + c.setIndentationDecrement().after(grammarAccess.getGuardDeclarationRule()); + c.setLinewrap().before(grammarAccess.getGuardDeclarationRule()); + } +} diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/scoping/FSMtestScopeProvider.java b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/scoping/FSMtestScopeProvider.java index 87607588e..7f0a0bd85 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/scoping/FSMtestScopeProvider.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/scoping/FSMtestScopeProvider.java @@ -1,26 +1,26 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.generator.scoping;
-
-import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;
-
-/**
- * This class contains custom scoping description.
- *
- * see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#scoping
- * on how and when to use it
- *
- */
-public class FSMtestScopeProvider extends AbstractDeclarativeScopeProvider {
-
-}
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +package org.eclipse.etrice.generator.scoping; + +import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; + +/** + * This class contains custom scoping description. + * + * see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#scoping + * on how and when to use it + * + */ +public class FSMtestScopeProvider extends AbstractDeclarativeScopeProvider { + +} diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/validation/FSMtestJavaValidator.java b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/validation/FSMtestJavaValidator.java index bfac1d20a..d678c04d3 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/validation/FSMtestJavaValidator.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/src/org/eclipse/etrice/generator/validation/FSMtestJavaValidator.java @@ -1,62 +1,62 @@ -/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.generator.validation;
-
-import org.eclipse.etrice.generator.fsmtest.FsmDefinition;
-import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
-import org.eclipse.etrice.generator.fsmtest.StateDeclaration;
-import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration;
-import org.eclipse.xtext.validation.Check;
-
-
-public class FSMtestJavaValidator extends AbstractFSMtestJavaValidator {
-
-
- @Check
- public void CheckStateDeclaration(StateDeclaration s) {
- FsmDefinition f = (FsmDefinition) s.eContainer();
- for (StateDeclaration s1:f.getStates()) {
- if (s1 != s && s1.getName().equals(s.getName()))
- error("State names must be unique", FsmtestPackage.Literals.STATE_DECLARATION__NAME);
- }
- if (f.getStates().size()>1) {
- boolean found = false;
- for (TransitionDeclaration t1:s.getTransitions()) {
- if (t1.getDestination() != s)
- found = true;
- }
- if (!found)
- error("you cannot leave this state", FsmtestPackage.Literals.STATE_DECLARATION__NAME);
- }
- for (StateDeclaration s1:f.getStates()) {
- for (TransitionDeclaration t1:s1.getTransitions()) {
- if (t1.getDestination() == s && s1!=s)
- return;
- }
- }
- if (f.getStates().indexOf(s) != 0)
- error("State cannot be reached", FsmtestPackage.Literals.STATE_DECLARATION__NAME);
- }
-
- @Check
- public void CheckTransitionDeclaration(TransitionDeclaration t) {
- FsmDefinition f = (FsmDefinition) t.eContainer().eContainer();
- for (StateDeclaration s1:f.getStates()) {
- for (TransitionDeclaration t1:s1.getTransitions()) {
- if (t1 != t && t1.getName().equals(t.getName()))
- error("Transition names must be unique", FsmtestPackage.Literals.TRANSITION_DECLARATION__NAME);
- }
- }
- }
-
-}
+/******************************************************************************* + * Copyright (c) 2012 protos software gmbh (http://www.protos.de). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * CONTRIBUTORS: + * Henrik Rentz-Reichert (initial contribution) + * + *******************************************************************************/ + +package org.eclipse.etrice.generator.validation; + +import org.eclipse.etrice.generator.fsmtest.FsmDefinition; +import org.eclipse.etrice.generator.fsmtest.FsmtestPackage; +import org.eclipse.etrice.generator.fsmtest.StateDeclaration; +import org.eclipse.etrice.generator.fsmtest.TransitionDeclaration; +import org.eclipse.xtext.validation.Check; + + +public class FSMtestJavaValidator extends AbstractFSMtestJavaValidator { + + + @Check + public void CheckStateDeclaration(StateDeclaration s) { + FsmDefinition f = (FsmDefinition) s.eContainer(); + for (StateDeclaration s1:f.getStates()) { + if (s1 != s && s1.getName().equals(s.getName())) + error("State names must be unique", FsmtestPackage.Literals.STATE_DECLARATION__NAME); + } + if (f.getStates().size()>1) { + boolean found = false; + for (TransitionDeclaration t1:s.getTransitions()) { + if (t1.getDestination() != s) + found = true; + } + if (!found) + error("you cannot leave this state", FsmtestPackage.Literals.STATE_DECLARATION__NAME); + } + for (StateDeclaration s1:f.getStates()) { + for (TransitionDeclaration t1:s1.getTransitions()) { + if (t1.getDestination() == s && s1!=s) + return; + } + } + if (f.getStates().indexOf(s) != 0) + error("State cannot be reached", FsmtestPackage.Literals.STATE_DECLARATION__NAME); + } + + @Check + public void CheckTransitionDeclaration(TransitionDeclaration t) { + FsmDefinition f = (FsmDefinition) t.eContainer().eContainer(); + for (StateDeclaration s1:f.getStates()) { + for (TransitionDeclaration t1:s1.getTransitions()) { + if (t1 != t && t1.getName().equals(t.getName())) + error("Transition names must be unique", FsmtestPackage.Literals.TRANSITION_DECLARATION__NAME); + } + } + } + +} diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/xtend-gen/org/eclipse/etrice/generator/generator/FSMtestGenerator.java b/plugins/org.eclipse.etrice.generator.fsmtest/xtend-gen/org/eclipse/etrice/generator/generator/FSMtestGenerator.java index 4630a0a3b..f82975186 100644 --- a/plugins/org.eclipse.etrice.generator.fsmtest/xtend-gen/org/eclipse/etrice/generator/generator/FSMtestGenerator.java +++ b/plugins/org.eclipse.etrice.generator.fsmtest/xtend-gen/org/eclipse/etrice/generator/generator/FSMtestGenerator.java @@ -1,14 +1,14 @@ -/**
- * generated by Xtext
- */
-package org.eclipse.etrice.generator.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class FSMtestGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
+/** + * generated by Xtext + */ +package org.eclipse.etrice.generator.generator; + +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.xtext.generator.IFileSystemAccess; +import org.eclipse.xtext.generator.IGenerator; + +@SuppressWarnings("all") +public class FSMtestGenerator implements IGenerator { + public void doGenerate(final Resource resource, final IFileSystemAccess fsa) { + } +} |