Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room2
-rw-r--r--examples/org.eclipse.etrice.tutorials/model/Blinky/diagrams/Blinky.SubSystem_Blinky.structure16
-rw-r--r--examples/org.eclipse.etrice.tutorials/model/PedLightsController/PedLightsController.room4
-rw-r--r--examples/org.eclipse.etrice.tutorials/model/PedLightsController/diagrams/PedLightsController.SubSys_PedLights.structure16
-rw-r--r--examples/org.eclipse.etrice.tutorials/model/SendingData/SendingData.room2
-rw-r--r--examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room2
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/Blinky/Blinky.java136
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyControlProtocoll.java16
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyController.java66
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyTop.java15
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/Blinky/SubSystem_Blinky.java50
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/HelloWorldTop.java20
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/SubSystem_HelloWorld.java2
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/Controller.java152
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/GuiAdapter.java79
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedControlProtocol.java16
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedLightsTop.java15
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/SubSys_PedLights.java42
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPingActor.java245
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPongActor1.java204
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongProtocol.java186
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongTop.java71
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPong.java155
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPongRunner.java36
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/SendingData/DemoData.java14
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPing.java86
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPong.java63
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/SendingData/PingPongProtocol.java16
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingDataTop.java15
-rw-r--r--examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingData_SubSystem.java14
-rw-r--r--features/org.eclipse.etrice.feature/feature.xml45
-rw-r--r--plugins/org.eclipse.etrice.core.config.tests/src-gen/org/eclipse/etrice/core/ConfigInjectorProvider.java90
-rw-r--r--plugins/org.eclipse.etrice.core.config.ui/META-INF/MANIFEST.MF10
-rw-r--r--plugins/org.eclipse.etrice.core.config.ui/plugin.xml_gen646
-rw-r--r--plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java58
-rw-r--r--plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java190
-rw-r--r--plugins/org.eclipse.etrice.core.config/META-INF/MANIFEST.MF11
-rw-r--r--plugins/org.eclipse.etrice.core.config/plugin.xml_gen34
-rw-r--r--plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java324
-rw-r--r--plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/ConfigStandaloneSetupGenerated.java86
-rw-r--r--plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java3322
-rw-r--r--plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2296
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/model/etricegen.ecore9
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ETriceGenPackage.java36
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ExpandedRefinedState.java49
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ETriceGenPackageImpl.java24
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedActorClassImpl.java79
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedRefinedStateImpl.java187
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenAdapterFactory.java1
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenSwitch.java1
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractRoomProposalProvider.java18
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/RoomParser.java6
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g343
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.tokens30
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomLexer.java560
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomParser.java21667
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore9
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.genmodel6
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.xmi169
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parseTreeConstruction/RoomParsetreeConstructor.java405
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g134
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.tokens40
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoomLexer.java628
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoomParser.java3011
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/RefinedTransition.java105
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/RoomFactory.java9
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/RoomPackage.java183
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/StateGraph.java17
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/impl/RefinedTransitionImpl.java332
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/impl/RoomFactoryImpl.java12
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/impl/RoomPackageImpl.java70
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/impl/StateGraphImpl.java39
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/util/RoomAdapterFactory.java20
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/room/util/RoomSwitch.java23
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/services/RoomGrammarAccess.java121
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext15
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/naming/RoomFragmentProvider.java31
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/room/util/RoomHelpers.java171
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/scoping/RoomScopeProvider.java31
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java21
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/ValidationUtil.java12
-rw-r--r--plugins/org.eclipse.etrice.etunit.converter/src/org/eclipse/etrice/etunit/converter/EtUnitReportConverter.java7
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend30
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/CLanguageGenerator.java16
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/CTranslationProvider.java30
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend20
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend44
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/StateMachineGen.xtend18
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/SubSystemClassGen.xtend7
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ActorClassGen.java84
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/DataClassGen.java44
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/DataClassGen.smap49
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.java155
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.smap243
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/StateMachineGen.java126
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/SubSystemClassGen.java14
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/SubSystemRunnerGen.smap23
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/META-INF/MANIFEST.MF4
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java1053
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/InstanceDiagramGen.java173
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/MainGen.smap17
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ActorClassGen.xtend31
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend18
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/JavaTranslationProvider.java12
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.xtend20
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/StateMachineGen.xtend5
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/SubSystemClassGen.xtend14
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ActorClassGen.java107
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ActorClassGen.smap131
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/DataClassGen.java30
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.java56
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/ProtocolClassGen.smap160
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/StateMachineGen.java107
-rw-r--r--plugins/org.eclipse.etrice.generator.java/xtend-gen/org/eclipse/etrice/generator/java/gen/SubSystemClassGen.java71
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/DefaultTranslationProvider.java7
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/DetailCodeTranslator.java28
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/ITranslationProvider.java86
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/GenericStateMachineGenerator.xtend55
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend50
-rw-r--r--plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/GenericStateMachineGenerator.java158
-rw-r--r--plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/ProcedureHelpers.java136
-rw-r--r--plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/RoomExtensions.java18
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/META-INF/MANIFEST.MF4
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/DiagramAccess.java8
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/MemberSelectionDialog.java9
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/StatePropertyDialog.java4
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/TransitionPropertyDialog.java100
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/ChoicePointSupport.java5
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/DefaultPositionProvider.java65
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/DiagramUpdateFeature.java20
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/IPositionProvider.java36
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/InitialPointSupport.java2
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateSupport.java5
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/SupportUtil.java40
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java9
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TransitionSupport.java172
-rw-r--r--plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/commands/UpdateCommand.java16
-rw-r--r--plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/dialogs/AbstractPropertyDialog.java16
-rw-r--r--plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/editor/RoomDiagramEditor.java15
-rw-r--r--plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.modellib.c.zipbin6909 -> 15470 bytes
-rw-r--r--plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.modellib.java.zipbin41194 -> 41231 bytes
-rw-r--r--plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.runtime.c.zipbin117259 -> 27611 bytes
-rw-r--r--plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.runtime.java.zipbin27511 -> 27511 bytes
-rw-r--r--plugins/org.eclipse.etrice.ui.runtime/contents/org.eclipse.etrice.tutorials.zipbin90637 -> 99797 bytes
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java8
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/models/ALogService.room228
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/models/TcpService.room644
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/models/TimingService.room588
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/logging/ALogService.java10
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/logging/Log.java10
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/tcp/ATcpClient.java12
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/tcp/ATcpServer.java22
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/timing/ATimingService.java8
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/timing/PTimeout.java9
-rw-r--r--runtime/org.eclipse.etrice.modellib.java/src-gen/room/basic/service/timing/PTimer.java9
-rw-r--r--tests/org.eclipse.etrice.core.config.tests/src-gen/org/eclipse/etrice/core/ConfigInjectorProvider.java90
-rw-r--r--tests/org.eclipse.etrice.core.genmodel.tests/src/org/eclipse/etrice/core/genmodel/TestCodeInheritance.java12
-rw-r--r--tests/org.eclipse.etrice.core.room.tests/META-INF/MANIFEST.MF2
-rw-r--r--tests/org.eclipse.etrice.generator.tests/META-INF/MANIFEST.MF2
-rw-r--r--tests/org.eclipse.etrice.generator.tests/src/org/eclipse/etrice/generator/base/TestDetailCodeTranslator.java67
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPUser.java6
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/PortProtocol.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/Testee_ac.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerUser.java6
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPingActor.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPingActor.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPing.java6
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tester.java2
-rw-r--r--tests/org.eclipse.etrice.ui.behavior.tests/META-INF/MANIFEST.MF2
-rw-r--r--tests/org.eclipse.etrice.ui.structure.tests/META-INF/MANIFEST.MF2
-rw-r--r--tests/org.eclipse.etrice.ui.tests.base/META-INF/MANIFEST.MF2
171 files changed, 22828 insertions, 18402 deletions
diff --git a/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room b/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room
index da3384e84..8025fd879 100644
--- a/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room
+++ b/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room
@@ -1,6 +1,6 @@
RoomModel Blinky {
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib/models/TimingService.room"
+ import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/models/TimingService.room"
LogicalSystem System_Blinky {
SubSystemRef subsystem: SubSystem_Blinky
diff --git a/examples/org.eclipse.etrice.tutorials/model/Blinky/diagrams/Blinky.SubSystem_Blinky.structure b/examples/org.eclipse.etrice.tutorials/model/Blinky/diagrams/Blinky.SubSystem_Blinky.structure
index 1bbc9eb81..2ee15cbf9 100644
--- a/examples/org.eclipse.etrice.tutorials/model/Blinky/diagrams/Blinky.SubSystem_Blinky.structure
+++ b/examples/org.eclipse.etrice.tutorials/model/Blinky/diagrams/Blinky.SubSystem_Blinky.structure
@@ -46,29 +46,29 @@
<children xsi:type="pi:ContainerShape" visible="true" active="true">
<properties key="obj-type" value="port"/>
<properties key="item-kind" value=""/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="40" height="40" x="56">
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="20" height="20" x="10" y="10"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="53">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
</graphicsAlgorithm>
<link>
- <businessObjects href="../../../../org.eclipse.etrice.modellib/models/TimingService.room#SPPRef:ATimingService$timer"/>
+ <businessObjects href="file:/C:/Users/hrentz/Documents/protos/Entwicklung/Projekte/protos/eTrice/tasks/bugs/2012-01-18/ws/eTrice-rt/org.eclipse.etrice.modellib.java/models/TimingService.room#SPPRef:ATimingService$timer"/>
</link>
<anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.1/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
<children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="40" height="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timer"/>
+ <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timer"/>
</children>
</children>
<children xsi:type="pi:ContainerShape" visible="true" active="true">
<properties key="obj-type" value="port"/>
<properties key="item-kind" value=""/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="40" height="40" x="123">
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="20" height="20" x="10" y="10"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="106">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
</graphicsAlgorithm>
<link>
- <businessObjects href="../../../../org.eclipse.etrice.modellib/models/TimingService.room#SPPRef:ATimingService$timeout"/>
+ <businessObjects href="file:/C:/Users/hrentz/Documents/protos/Entwicklung/Projekte/protos/eTrice/tasks/bugs/2012-01-18/ws/eTrice-rt/org.eclipse.etrice.modellib.java/models/TimingService.room#SPPRef:ATimingService$timeout"/>
</link>
<anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.0/@children.1/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
<children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="40" height="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timeout"/>
+ <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timeout"/>
</children>
</children>
</children>
diff --git a/examples/org.eclipse.etrice.tutorials/model/PedLightsController/PedLightsController.room b/examples/org.eclipse.etrice.tutorials/model/PedLightsController/PedLightsController.room
index 37cf6c1e9..257737664 100644
--- a/examples/org.eclipse.etrice.tutorials/model/PedLightsController/PedLightsController.room
+++ b/examples/org.eclipse.etrice.tutorials/model/PedLightsController/PedLightsController.room
@@ -1,7 +1,7 @@
RoomModel PedLightsController {
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib/models/TimingService.room"
- import room.basic.types.java.* from "../../../org.eclipse.etrice.modellib/models/JavaTypes.room"
+ import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/models/TimingService.room"
+ import room.basic.types.java.* from "../../../org.eclipse.etrice.modellib.java/models/JavaTypes.room"
LogicalSystem LogSys_PedLights {
SubSystemRef application: SubSys_PedLights
diff --git a/examples/org.eclipse.etrice.tutorials/model/PedLightsController/diagrams/PedLightsController.SubSys_PedLights.structure b/examples/org.eclipse.etrice.tutorials/model/PedLightsController/diagrams/PedLightsController.SubSys_PedLights.structure
index 439e83e11..981060844 100644
--- a/examples/org.eclipse.etrice.tutorials/model/PedLightsController/diagrams/PedLightsController.SubSys_PedLights.structure
+++ b/examples/org.eclipse.etrice.tutorials/model/PedLightsController/diagrams/PedLightsController.SubSys_PedLights.structure
@@ -46,29 +46,29 @@
<children xsi:type="pi:ContainerShape" visible="true" active="true">
<properties key="obj-type" value="port"/>
<properties key="item-kind" value=""/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="40" height="40" x="56">
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="20" height="20" x="10" y="10"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="53">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
</graphicsAlgorithm>
<link>
- <businessObjects href="../../../../org.eclipse.etrice.modellib/models/TimingService.room#SPPRef:ATimingService$timer"/>
+ <businessObjects href="file:/C:/Users/hrentz/Documents/protos/Entwicklung/Projekte/protos/eTrice/tasks/bugs/2012-01-18/ws/eTrice-rt/org.eclipse.etrice.modellib.java/models/TimingService.room#SPPRef:ATimingService$timer"/>
</link>
<anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.1/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
<children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="40" height="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timer"/>
+ <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timer"/>
</children>
</children>
<children xsi:type="pi:ContainerShape" visible="true" active="true">
<properties key="obj-type" value="port"/>
<properties key="item-kind" value=""/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="40" height="40" x="123">
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="20" height="20" x="10" y="10"/>
+ <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="106">
+ <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
</graphicsAlgorithm>
<link>
- <businessObjects href="../../../../org.eclipse.etrice.modellib/models/TimingService.room#SPPRef:ATimingService$timeout"/>
+ <businessObjects href="file:/C:/Users/hrentz/Documents/protos/Entwicklung/Projekte/protos/eTrice/tasks/bugs/2012-01-18/ws/eTrice-rt/org.eclipse.etrice.modellib.java/models/TimingService.room#SPPRef:ATimingService$timeout"/>
</link>
<anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.0/@children.1/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
<children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="40" height="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timeout"/>
+ <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timeout"/>
</children>
</children>
</children>
diff --git a/examples/org.eclipse.etrice.tutorials/model/SendingData/SendingData.room b/examples/org.eclipse.etrice.tutorials/model/SendingData/SendingData.room
index fc2bcc25f..47a64e198 100644
--- a/examples/org.eclipse.etrice.tutorials/model/SendingData/SendingData.room
+++ b/examples/org.eclipse.etrice.tutorials/model/SendingData/SendingData.room
@@ -1,6 +1,6 @@
RoomModel SendingData {
- import room.basic.types.java.* from "../../../org.eclipse.etrice.modellib/models/JavaTypes.room"
+ import room.basic.types.java.* from "../../../org.eclipse.etrice.modellib.java/models/JavaTypes.room"
LogicalSystem SendingData_LogSystem {
SubSystemRef SendingDataAppl: SendingData_SubSystem
diff --git a/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room b/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room
index ec42cc43e..4d7e6465d 100644
--- a/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room
+++ b/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room
@@ -1,6 +1,6 @@
RoomModel PingPong {
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib/models/TimingService.room"
+ import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/models/TimingService.room"
LogicalSystem System_PingPong {
SubSystemRef subsystem: SubSystem_PingPong
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/Blinky.java b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/Blinky.java
index 8e8b32723..c0f69ae0f 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/Blinky.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/Blinky.java
@@ -13,31 +13,33 @@ import room.basic.service.timing.*;
import Blinky.BlinkyControlProtocoll.*;
import room.basic.service.timing.PTimeout.*;
-//--------------------- begin user code
- import org.eclipse.etrice.tutorials.PedLightGUI.*;
-//--------------------- end user code
+/*--------------------- begin user code ---------------------*/
+import org.eclipse.etrice.tutorials.PedLightGUI.*;
+/*--------------------- end user code ---------------------*/
public class Blinky extends ActorClassBase {
- //--------------------- begin user code
- private PedestrianLightWndNoTcp light = new PedestrianLightWndNoTcp();
- private TrafficLight3 carLights;
- private TrafficLight2 pedLights;
- //--------------------- end user code
+ /*--------------------- begin user code ---------------------*/
+ private PedestrianLightWndNoTcp light = new PedestrianLightWndNoTcp();
+ private TrafficLight3 carLights;
+ private TrafficLight2 pedLights;
+ /*--------------------- end user code ---------------------*/
//--------------------- ports
protected BlinkyControlProtocollPort ControlPort = null;
+
//--------------------- saps
protected PTimeoutConjPort timer = null;
+
//--------------------- services
//--------------------- interface item IDs
public static final int IFITEM_ControlPort = 1;
public static final int IFITEM_timer = 2;
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
public void destroyUser() {
light.closeWindow();
}
@@ -51,11 +53,21 @@ public class Blinky extends ActorClassBase {
// own ports
ControlPort = new BlinkyControlProtocollPort(this, "ControlPort", IFITEM_ControlPort, 0, port_addr[IFITEM_ControlPort][0], peer_addr[IFITEM_ControlPort][0]);
+
// own saps
timer = new PTimeoutConjPort(this, "timer", IFITEM_timer, 0, port_addr[IFITEM_timer][0], peer_addr[IFITEM_timer][0]);
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public BlinkyControlProtocollPort getControlPort (){
+ return this.ControlPort;
+ }
+ public PTimeoutConjPort getTimer (){
+ return this.timer;
+ }
//--------------------- lifecycle functions
public void init(){
@@ -71,34 +83,34 @@ public class Blinky extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
- public static final int STATE_off = 2;
- public static final int STATE_blinking_on = 3;
- public static final int STATE_blinking_off = 4;
- public static final int STATE_blinking = 5;
+ public static final int STATE_blinking = 2;
+ public static final int STATE_off = 3;
+ public static final int STATE_blinking_on = 4;
+ public static final int STATE_blinking_off = 5;
/* transition chains */
public static final int CHAIN_TRANS_INITIAL_TO__off = 1;
- public static final int CHAIN_TRANS_blinking_TO_off_BY_stopControlPort = 2;
- public static final int CHAIN_TRANS_off_TO_blinking_tp0_BY_startControlPort = 3;
+ public static final int CHAIN_TRANS_tr0_FROM_off_TO_blinking_tp0_BY_startControlPort = 2;
+ public static final int CHAIN_TRANS_tr1_FROM_blinking_TO_off_BY_stopControlPort = 3;
public static final int CHAIN_blinking_TRANS_INITIAL_TO__on = 4;
- public static final int CHAIN_blinking_TRANS_off_TO_on_BY_timeoutTicktimer = 5;
- public static final int CHAIN_blinking_TRANS_on_TO_off_BY_timeoutTicktimer = 6;
+ public static final int CHAIN_blinking_TRANS_tr1_FROM_on_TO_off_BY_timeoutTicktimer = 5;
+ public static final int CHAIN_blinking_TRANS_tr2_FROM_off_TO_on_BY_timeoutTicktimer = 6;
/* triggers */
+ public static final int POLLING = 0;
public static final int TRIG_ControlPort__start = IFITEM_ControlPort + EVT_SHIFT*BlinkyControlProtocoll.IN_start;
public static final int TRIG_ControlPort__stop = IFITEM_ControlPort + EVT_SHIFT*BlinkyControlProtocoll.IN_stop;
public static final int TRIG_timer__timeoutTick = IFITEM_timer + EVT_SHIFT*PTimeout.OUT_timeoutTick;
// state names
- protected static final String stateStrings[] = {"<no state>","<top>","off",
+ protected static final String stateStrings[] = {"<no state>","<top>","blinking",
+ "off",
"blinking_on",
- "blinking_off",
- "blinking"
+ "blinking_off"
};
// history
@@ -112,7 +124,7 @@ public class Blinky extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
protected void entry_blinking_on() {
timer.Start(1000);
carLights.setState(TrafficLight3.YELLOW);
@@ -122,14 +134,14 @@ public class Blinky extends ActorClassBase {
carLights.setState(TrafficLight3.OFF);
}
- //*** Action Codes
+ /* Action Codes */
protected void action_TRANS_INITIAL_TO__off() {
carLights = light.getCarLights();
pedLights = light.getPedLights();
carLights.setState(TrafficLight3.OFF);
pedLights.setState(TrafficLight2.OFF);
}
- protected void action_TRANS_blinking_TO_off_BY_stopControlPort(InterfaceItemBase ifitem) {
+ protected void action_TRANS_tr1_FROM_blinking_TO_off_BY_stopControlPort(InterfaceItemBase ifitem) {
timer.Kill();
carLights.setState(TrafficLight3.OFF);
}
@@ -178,20 +190,20 @@ public class Blinky extends ActorClassBase {
action_TRANS_INITIAL_TO__off();
return STATE_off;
}
- case CHAIN_TRANS_off_TO_blinking_tp0_BY_startControlPort:
+ case CHAIN_TRANS_tr0_FROM_off_TO_blinking_tp0_BY_startControlPort:
{
return STATE_blinking_on;
}
- case CHAIN_TRANS_blinking_TO_off_BY_stopControlPort:
+ case CHAIN_TRANS_tr1_FROM_blinking_TO_off_BY_stopControlPort:
{
- action_TRANS_blinking_TO_off_BY_stopControlPort(ifitem);
+ action_TRANS_tr1_FROM_blinking_TO_off_BY_stopControlPort(ifitem);
return STATE_off;
}
- case CHAIN_blinking_TRANS_on_TO_off_BY_timeoutTicktimer:
+ case CHAIN_blinking_TRANS_tr1_FROM_on_TO_off_BY_timeoutTicktimer:
{
return STATE_blinking_off;
}
- case CHAIN_blinking_TRANS_off_TO_on_BY_timeoutTicktimer:
+ case CHAIN_blinking_TRANS_tr2_FROM_off_TO_on_BY_timeoutTicktimer:
{
return STATE_blinking_on;
}
@@ -261,44 +273,44 @@ public class Blinky extends ActorClassBase {
switch (this.state) {
case STATE_off:
switch(trigger) {
- case TRIG_ControlPort__start:
- {
- chain = CHAIN_TRANS_off_TO_blinking_tp0_BY_startControlPort;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_ControlPort__start:
+ {
+ chain = CHAIN_TRANS_tr0_FROM_off_TO_blinking_tp0_BY_startControlPort;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_blinking_on:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_blinking_TRANS_on_TO_off_BY_timeoutTicktimer;
- catching_state = STATE_blinking;
- }
- break;
- case TRIG_ControlPort__stop:
- {
- chain = CHAIN_TRANS_blinking_TO_off_BY_stopControlPort;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_blinking_TRANS_tr1_FROM_on_TO_off_BY_timeoutTicktimer;
+ catching_state = STATE_blinking;
+ }
+ break;
+ case TRIG_ControlPort__stop:
+ {
+ chain = CHAIN_TRANS_tr1_FROM_blinking_TO_off_BY_stopControlPort;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_blinking_off:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_blinking_TRANS_off_TO_on_BY_timeoutTicktimer;
- catching_state = STATE_blinking;
- }
- break;
- case TRIG_ControlPort__stop:
- {
- chain = CHAIN_TRANS_blinking_TO_off_BY_stopControlPort;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_blinking_TRANS_tr2_FROM_off_TO_on_BY_timeoutTicktimer;
+ catching_state = STATE_blinking;
+ }
+ break;
+ case TRIG_ControlPort__stop:
+ {
+ chain = CHAIN_TRANS_tr1_FROM_blinking_TO_off_BY_stopControlPort;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyControlProtocoll.java b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyControlProtocoll.java
index 9b02e033b..501161f82 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyControlProtocoll.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyControlProtocoll.java
@@ -34,7 +34,7 @@ public class BlinkyControlProtocoll {
static public class BlinkyControlProtocollPort extends PortBase {
// constructors
public BlinkyControlProtocollPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public BlinkyControlProtocollPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
@@ -65,13 +65,13 @@ public class BlinkyControlProtocoll {
}
// replicated port class
- static public class BlinkyControlProtocollPortRepl {
+ static public class BlinkyControlProtocollReplPort {
private ArrayList<BlinkyControlProtocollPort> ports;
private int replication;
- public BlinkyControlProtocollPortRepl(IEventReceiver actor, String name, int localId, Address[] addr,
+ public BlinkyControlProtocollReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
Address[] peerAddress) {
- replication = addr.length;
+ replication = addr==null? 0:addr.length;
ports = new ArrayList<BlinkyControlProtocoll.BlinkyControlProtocollPort>(replication);
for (int i=0; i<replication; ++i) {
ports.add(new BlinkyControlProtocollPort(
@@ -99,7 +99,7 @@ public class BlinkyControlProtocoll {
static public class BlinkyControlProtocollConjPort extends PortBase {
// constructors
public BlinkyControlProtocollConjPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public BlinkyControlProtocollConjPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
@@ -144,13 +144,13 @@ public class BlinkyControlProtocoll {
}
// replicated port class
- static public class BlinkyControlProtocollConjPortRepl {
+ static public class BlinkyControlProtocollConjReplPort {
private ArrayList<BlinkyControlProtocollConjPort> ports;
private int replication;
- public BlinkyControlProtocollConjPortRepl(IEventReceiver actor, String name, int localId, Address[] addr,
+ public BlinkyControlProtocollConjReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
Address[] peerAddress) {
- replication = addr.length;
+ replication = addr==null? 0:addr.length;
ports = new ArrayList<BlinkyControlProtocoll.BlinkyControlProtocollConjPort>(replication);
for (int i=0; i<replication; ++i) {
ports.add(new BlinkyControlProtocollConjPort(
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyController.java b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyController.java
index 6feeda89b..1f4896acf 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyController.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyController.java
@@ -20,16 +20,18 @@ public class BlinkyController extends ActorClassBase {
//--------------------- ports
protected BlinkyControlProtocollConjPort ControlPort = null;
+
//--------------------- saps
protected PTimeoutConjPort timer = null;
+
//--------------------- services
//--------------------- interface item IDs
public static final int IFITEM_ControlPort = 1;
public static final int IFITEM_timer = 2;
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public BlinkyController(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -40,11 +42,21 @@ public class BlinkyController extends ActorClassBase {
// own ports
ControlPort = new BlinkyControlProtocollConjPort(this, "ControlPort", IFITEM_ControlPort, 0, port_addr[IFITEM_ControlPort][0], peer_addr[IFITEM_ControlPort][0]);
+
// own saps
timer = new PTimeoutConjPort(this, "timer", IFITEM_timer, 0, port_addr[IFITEM_timer][0], peer_addr[IFITEM_timer][0]);
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public BlinkyControlProtocollConjPort getControlPort (){
+ return this.ControlPort;
+ }
+ public PTimeoutConjPort getTimer (){
+ return this.timer;
+ }
//--------------------- lifecycle functions
public void init(){
@@ -60,8 +72,7 @@ public class BlinkyController extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
@@ -70,10 +81,11 @@ public class BlinkyController extends ActorClassBase {
/* transition chains */
public static final int CHAIN_TRANS_INITIAL_TO__on = 1;
- public static final int CHAIN_TRANS_off_TO_on_BY_timeoutTicktimer = 2;
- public static final int CHAIN_TRANS_on_TO_off_BY_timeoutTicktimer = 3;
+ public static final int CHAIN_TRANS_goOff_FROM_on_TO_off_BY_timeoutTicktimer = 2;
+ public static final int CHAIN_TRANS_goOn_FROM_off_TO_on_BY_timeoutTicktimer = 3;
/* triggers */
+ public static final int POLLING = 0;
public static final int TRIG_timer__timeoutTick = IFITEM_timer + EVT_SHIFT*PTimeout.OUT_timeoutTick;
// state names
@@ -92,18 +104,18 @@ public class BlinkyController extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
- //*** Action Codes
+ /* Action Codes */
protected void action_TRANS_INITIAL_TO__on() {
timer.Start(5000);
ControlPort.start();
}
- protected void action_TRANS_on_TO_off_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_goOff_FROM_on_TO_off_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
ControlPort.stop();
timer.Start(5000);
}
- protected void action_TRANS_off_TO_on_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_goOn_FROM_off_TO_on_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
ControlPort.start();
timer.Start(5000);
}
@@ -144,14 +156,14 @@ public class BlinkyController extends ActorClassBase {
action_TRANS_INITIAL_TO__on();
return STATE_on;
}
- case CHAIN_TRANS_on_TO_off_BY_timeoutTicktimer:
+ case CHAIN_TRANS_goOff_FROM_on_TO_off_BY_timeoutTicktimer:
{
- action_TRANS_on_TO_off_BY_timeoutTicktimer(ifitem);
+ action_TRANS_goOff_FROM_on_TO_off_BY_timeoutTicktimer(ifitem);
return STATE_off;
}
- case CHAIN_TRANS_off_TO_on_BY_timeoutTicktimer:
+ case CHAIN_TRANS_goOn_FROM_off_TO_on_BY_timeoutTicktimer:
{
- action_TRANS_off_TO_on_BY_timeoutTicktimer(ifitem);
+ action_TRANS_goOn_FROM_off_TO_on_BY_timeoutTicktimer(ifitem);
return STATE_on;
}
}
@@ -201,22 +213,22 @@ public class BlinkyController extends ActorClassBase {
switch (this.state) {
case STATE_on:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_on_TO_off_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_goOff_FROM_on_TO_off_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_off:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_off_TO_on_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_goOn_FROM_off_TO_on_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyTop.java b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyTop.java
index 79fe1a02c..8f82eb998 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyTop.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/BlinkyTop.java
@@ -16,13 +16,15 @@ public class BlinkyTop extends ActorClassBase {
//--------------------- ports
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public BlinkyTop(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -32,10 +34,14 @@ public class BlinkyTop extends ActorClassBase {
// initialize attributes
// own ports
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
//--------------------- lifecycle functions
public void init(){
@@ -51,8 +57,7 @@ public class BlinkyTop extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
//--------------------- no state machine
@Override
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/SubSystem_Blinky.java b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/SubSystem_Blinky.java
index 0d045dae7..906d60d8e 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/SubSystem_Blinky.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/Blinky/SubSystem_Blinky.java
@@ -34,10 +34,10 @@ public class SubSystem_Blinky extends SubSystemClassBase{
public void instantiateActors(){
// all addresses
// Addresses for the Subsystem Systemport
- Address addr_item_SystemPort_0 = new Address(0,0,111);
- Address addr_item_SystemPort_1 = new Address(0,0,112);
- Address addr_item_SystemPort_2 = new Address(0,0,113);
- Address addr_item_SystemPort_3 = new Address(0,0,114);
+ Address addr_item_SystemPort_0 = new Address(0,0,112);
+ Address addr_item_SystemPort_1 = new Address(0,0,113);
+ Address addr_item_SystemPort_2 = new Address(0,0,114);
+ Address addr_item_SystemPort_3 = new Address(0,0,115);
// actor instance /SubSystem_Blinky/application itself => Systemport Address
// TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
@@ -79,12 +79,12 @@ public class SubSystem_Blinky extends SubSystemClassBase{
"blinky",
// own interface item addresses
new Address[][] {{addr_item__SubSystem_Blinky_application_blinky},
- {
- addr_item__SubSystem_Blinky_application_blinky_ControlPort
- },
- {
- addr_item__SubSystem_Blinky_application_blinky_timer
- }
+ {
+ addr_item__SubSystem_Blinky_application_blinky_ControlPort
+ },
+ {
+ addr_item__SubSystem_Blinky_application_blinky_timer
+ }
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_1},
@@ -101,12 +101,12 @@ public class SubSystem_Blinky extends SubSystemClassBase{
"controller",
// own interface item addresses
new Address[][] {{addr_item__SubSystem_Blinky_application_controller},
- {
- addr_item__SubSystem_Blinky_application_controller_ControlPort
- },
- {
- addr_item__SubSystem_Blinky_application_controller_timer
- }
+ {
+ addr_item__SubSystem_Blinky_application_controller_ControlPort
+ },
+ {
+ addr_item__SubSystem_Blinky_application_controller_timer
+ }
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_2},
@@ -123,23 +123,23 @@ public class SubSystem_Blinky extends SubSystemClassBase{
"timingService",
// own interface item addresses
new Address[][] {{addr_item__SubSystem_Blinky_timingService},
- {
- },
- {
- addr_item__SubSystem_Blinky_timingService_timeout_0,
- addr_item__SubSystem_Blinky_timingService_timeout_1
- }
+ {
+ addr_item__SubSystem_Blinky_timingService_timeout_0,
+ addr_item__SubSystem_Blinky_timingService_timeout_1
+ },
+ null
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_3},
{
- },
- {
addr_item__SubSystem_Blinky_application_blinky_timer,
addr_item__SubSystem_Blinky_application_controller_timer
- }
+ },
+ null
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/HelloWorldTop.java b/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/HelloWorldTop.java
index 5e4f6bee6..3146d0b87 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/HelloWorldTop.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/HelloWorldTop.java
@@ -16,13 +16,15 @@ public class HelloWorldTop extends ActorClassBase {
//--------------------- ports
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public HelloWorldTop(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -32,10 +34,14 @@ public class HelloWorldTop extends ActorClassBase {
// initialize attributes
// own ports
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
//--------------------- lifecycle functions
public void init(){
@@ -51,8 +57,7 @@ public class HelloWorldTop extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
@@ -62,6 +67,7 @@ public class HelloWorldTop extends ActorClassBase {
public static final int CHAIN_TRANS_INITIAL_TO__state0 = 1;
/* triggers */
+ public static final int POLLING = 0;
// state names
protected static final String stateStrings[] = {"<no state>","<top>","state0"
@@ -78,9 +84,9 @@ public class HelloWorldTop extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
- //*** Action Codes
+ /* Action Codes */
protected void action_TRANS_INITIAL_TO__state0() {
System.out.println("HelloWorld !");
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/SubSystem_HelloWorld.java b/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/SubSystem_HelloWorld.java
index 590a822ea..d0e64c0fe 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/SubSystem_HelloWorld.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/HelloWorld/SubSystem_HelloWorld.java
@@ -52,6 +52,8 @@ public class SubSystem_HelloWorld extends SubSystemClassBase{
new Address[][] {{addr_item_SystemPort_0}
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/Controller.java b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/Controller.java
index 558634e59..d1da04f9e 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/Controller.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/Controller.java
@@ -13,9 +13,9 @@ import room.basic.service.timing.*;
import room.basic.service.timing.PTimeout.*;
import PedLightsController.PedControlProtocol.*;
-//--------------------- begin user code
- import org.eclipse.etrice.tutorials.PedLightGUI.*;
-//--------------------- end user code
+/*--------------------- begin user code ---------------------*/
+import org.eclipse.etrice.tutorials.PedLightGUI.*;
+/*--------------------- end user code ---------------------*/
public class Controller extends ActorClassBase {
@@ -23,16 +23,18 @@ public class Controller extends ActorClassBase {
//--------------------- ports
protected PedControlProtocolPort ControlPort = null;
+
//--------------------- saps
protected PTimeoutConjPort timer = null;
+
//--------------------- services
//--------------------- interface item IDs
public static final int IFITEM_ControlPort = 1;
public static final int IFITEM_timer = 2;
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public Controller(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -43,11 +45,21 @@ public class Controller extends ActorClassBase {
// own ports
ControlPort = new PedControlProtocolPort(this, "ControlPort", IFITEM_ControlPort, 0, port_addr[IFITEM_ControlPort][0], peer_addr[IFITEM_ControlPort][0]);
+
// own saps
timer = new PTimeoutConjPort(this, "timer", IFITEM_timer, 0, port_addr[IFITEM_timer][0], peer_addr[IFITEM_timer][0]);
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public PedControlProtocolPort getControlPort (){
+ return this.ControlPort;
+ }
+ public PTimeoutConjPort getTimer (){
+ return this.timer;
+ }
//--------------------- lifecycle functions
public void init(){
@@ -63,8 +75,7 @@ public class Controller extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
@@ -77,14 +88,15 @@ public class Controller extends ActorClassBase {
/* transition chains */
public static final int CHAIN_TRANS_INITIAL_TO__off = 1;
- public static final int CHAIN_TRANS_carsGreen2_TO_off_BY_timeoutTicktimer = 2;
- public static final int CHAIN_TRANS_carsGreen_TO_carsYellow_BY_timeoutTicktimer = 3;
- public static final int CHAIN_TRANS_carsRed_TO_carsYellowRed_BY_timeoutTicktimer = 4;
- public static final int CHAIN_TRANS_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer = 5;
- public static final int CHAIN_TRANS_carsYellow_TO_carsRed_BY_timeoutTicktimer = 6;
- public static final int CHAIN_TRANS_off_TO_carsGreen_BY_startControlPort = 7;
+ public static final int CHAIN_TRANS_tr0_FROM_off_TO_carsGreen_BY_startControlPort = 2;
+ public static final int CHAIN_TRANS_tr1_FROM_carsGreen_TO_carsYellow_BY_timeoutTicktimer = 3;
+ public static final int CHAIN_TRANS_tr2_FROM_carsYellow_TO_carsRed_BY_timeoutTicktimer = 4;
+ public static final int CHAIN_TRANS_tr3_FROM_carsRed_TO_carsYellowRed_BY_timeoutTicktimer = 5;
+ public static final int CHAIN_TRANS_tr4_FROM_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer = 6;
+ public static final int CHAIN_TRANS_tr5_FROM_carsGreen2_TO_off_BY_timeoutTicktimer = 7;
/* triggers */
+ public static final int POLLING = 0;
public static final int TRIG_ControlPort__start = IFITEM_ControlPort + EVT_SHIFT*PedControlProtocol.IN_start;
public static final int TRIG_timer__timeoutTick = IFITEM_timer + EVT_SHIFT*PTimeout.OUT_timeoutTick;
@@ -108,35 +120,35 @@ public class Controller extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
- //*** Action Codes
- protected void action_TRANS_off_TO_carsGreen_BY_startControlPort(InterfaceItemBase ifitem) {
+ /* Action Codes */
+ protected void action_TRANS_tr0_FROM_off_TO_carsGreen_BY_startControlPort(InterfaceItemBase ifitem) {
timer.Start(700);
ControlPort.setCarLights(TrafficLight3.GREEN);
ControlPort.setPedLights(TrafficLight2.RED);
}
- protected void action_TRANS_carsGreen_TO_carsYellow_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_tr1_FROM_carsGreen_TO_carsYellow_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
timer.Start(700);
ControlPort.setCarLights(TrafficLight3.YELLOW);
ControlPort.setPedLights(TrafficLight2.RED);
}
- protected void action_TRANS_carsYellow_TO_carsRed_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_tr2_FROM_carsYellow_TO_carsRed_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
timer.Start(1500);
ControlPort.setCarLights(TrafficLight3.RED);
ControlPort.setPedLights(TrafficLight2.GREEN);
}
- protected void action_TRANS_carsRed_TO_carsYellowRed_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_tr3_FROM_carsRed_TO_carsYellowRed_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
timer.Start(700);
ControlPort.setCarLights(TrafficLight3.YELLOW_RED);
ControlPort.setPedLights(TrafficLight2.RED);
}
- protected void action_TRANS_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_tr4_FROM_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
timer.Start(700);
ControlPort.setCarLights(TrafficLight3.GREEN);
ControlPort.setPedLights(TrafficLight2.RED);
}
- protected void action_TRANS_carsGreen2_TO_off_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ protected void action_TRANS_tr5_FROM_carsGreen2_TO_off_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
ControlPort.setCarLights(TrafficLight3.OFF);
ControlPort.setPedLights(TrafficLight2.OFF);
}
@@ -192,34 +204,34 @@ public class Controller extends ActorClassBase {
{
return STATE_off;
}
- case CHAIN_TRANS_off_TO_carsGreen_BY_startControlPort:
+ case CHAIN_TRANS_tr0_FROM_off_TO_carsGreen_BY_startControlPort:
{
- action_TRANS_off_TO_carsGreen_BY_startControlPort(ifitem);
+ action_TRANS_tr0_FROM_off_TO_carsGreen_BY_startControlPort(ifitem);
return STATE_carsGreen;
}
- case CHAIN_TRANS_carsGreen_TO_carsYellow_BY_timeoutTicktimer:
+ case CHAIN_TRANS_tr1_FROM_carsGreen_TO_carsYellow_BY_timeoutTicktimer:
{
- action_TRANS_carsGreen_TO_carsYellow_BY_timeoutTicktimer(ifitem);
+ action_TRANS_tr1_FROM_carsGreen_TO_carsYellow_BY_timeoutTicktimer(ifitem);
return STATE_carsYellow;
}
- case CHAIN_TRANS_carsYellow_TO_carsRed_BY_timeoutTicktimer:
+ case CHAIN_TRANS_tr2_FROM_carsYellow_TO_carsRed_BY_timeoutTicktimer:
{
- action_TRANS_carsYellow_TO_carsRed_BY_timeoutTicktimer(ifitem);
+ action_TRANS_tr2_FROM_carsYellow_TO_carsRed_BY_timeoutTicktimer(ifitem);
return STATE_carsRed;
}
- case CHAIN_TRANS_carsRed_TO_carsYellowRed_BY_timeoutTicktimer:
+ case CHAIN_TRANS_tr3_FROM_carsRed_TO_carsYellowRed_BY_timeoutTicktimer:
{
- action_TRANS_carsRed_TO_carsYellowRed_BY_timeoutTicktimer(ifitem);
+ action_TRANS_tr3_FROM_carsRed_TO_carsYellowRed_BY_timeoutTicktimer(ifitem);
return STATE_carsYellowRed;
}
- case CHAIN_TRANS_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer:
+ case CHAIN_TRANS_tr4_FROM_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer:
{
- action_TRANS_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer(ifitem);
+ action_TRANS_tr4_FROM_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer(ifitem);
return STATE_carsGreen2;
}
- case CHAIN_TRANS_carsGreen2_TO_off_BY_timeoutTicktimer:
+ case CHAIN_TRANS_tr5_FROM_carsGreen2_TO_off_BY_timeoutTicktimer:
{
- action_TRANS_carsGreen2_TO_off_BY_timeoutTicktimer(ifitem);
+ action_TRANS_tr5_FROM_carsGreen2_TO_off_BY_timeoutTicktimer(ifitem);
return STATE_off;
}
}
@@ -281,62 +293,62 @@ public class Controller extends ActorClassBase {
switch (this.state) {
case STATE_off:
switch(trigger) {
- case TRIG_ControlPort__start:
- {
- chain = CHAIN_TRANS_off_TO_carsGreen_BY_startControlPort;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_ControlPort__start:
+ {
+ chain = CHAIN_TRANS_tr0_FROM_off_TO_carsGreen_BY_startControlPort;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_carsGreen:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_carsGreen_TO_carsYellow_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_tr1_FROM_carsGreen_TO_carsYellow_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_carsYellow:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_carsYellow_TO_carsRed_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_tr2_FROM_carsYellow_TO_carsRed_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_carsRed:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_carsRed_TO_carsYellowRed_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_tr3_FROM_carsRed_TO_carsYellowRed_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_carsYellowRed:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_tr4_FROM_carsYellowRed_TO_carsGreen2_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_carsGreen2:
switch(trigger) {
- case TRIG_timer__timeoutTick:
- {
- chain = CHAIN_TRANS_carsGreen2_TO_off_BY_timeoutTicktimer;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_tr5_FROM_carsGreen2_TO_off_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/GuiAdapter.java b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/GuiAdapter.java
index dbff0f9fc..ee23b4545 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/GuiAdapter.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/GuiAdapter.java
@@ -11,29 +11,31 @@ import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
import PedLightsController.PedControlProtocol.*;
-//--------------------- begin user code
- import org.eclipse.etrice.tutorials.PedLightGUI.*;
-//--------------------- end user code
+/*--------------------- begin user code ---------------------*/
+import org.eclipse.etrice.tutorials.PedLightGUI.*;
+/*--------------------- end user code ---------------------*/
public class GuiAdapter extends ActorClassBase {
- //--------------------- begin user code
- private PedestrianLightWndNoTcp lights = new PedestrianLightWndNoTcp("Pedestrian Lights"," external port connection ");
- private TrafficLight3 carLights;
- private TrafficLight2 pedLights;
- //--------------------- end user code
+ /*--------------------- begin user code ---------------------*/
+ private PedestrianLightWndNoTcp lights = new PedestrianLightWndNoTcp("Pedestrian Lights"," external port connection ");
+ private TrafficLight3 carLights;
+ private TrafficLight2 pedLights;
+ /*--------------------- end user code ---------------------*/
//--------------------- ports
protected PedControlProtocolConjPort ControlPort = null;
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
public static final int IFITEM_ControlPort = 1;
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
public void destroyUser() {
lights.closeWindow();
}
@@ -47,10 +49,17 @@ public class GuiAdapter extends ActorClassBase {
// own ports
ControlPort = new PedControlProtocolConjPort(this, "ControlPort", IFITEM_ControlPort, 0, port_addr[IFITEM_ControlPort][0], peer_addr[IFITEM_ControlPort][0]);
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public PedControlProtocolConjPort getControlPort (){
+ return this.ControlPort;
+ }
//--------------------- lifecycle functions
public void init(){
@@ -66,8 +75,7 @@ public class GuiAdapter extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
@@ -75,10 +83,11 @@ public class GuiAdapter extends ActorClassBase {
/* transition chains */
public static final int CHAIN_TRANS_INITIAL_TO__running = 1;
- public static final int CHAIN_TRANS_running_TO_running_BY_setCarLightsControlPort_tr0 = 2;
- public static final int CHAIN_TRANS_running_TO_running_BY_setPedLightsControlPort_tr1 = 3;
+ public static final int CHAIN_TRANS_tr0_FROM_running_TO_running_BY_setCarLightsControlPort_tr0 = 2;
+ public static final int CHAIN_TRANS_tr1_FROM_running_TO_running_BY_setPedLightsControlPort_tr1 = 3;
/* triggers */
+ public static final int POLLING = 0;
public static final int TRIG_ControlPort__setCarLights = IFITEM_ControlPort + EVT_SHIFT*PedControlProtocol.OUT_setCarLights;
public static final int TRIG_ControlPort__setPedLights = IFITEM_ControlPort + EVT_SHIFT*PedControlProtocol.OUT_setPedLights;
@@ -97,9 +106,9 @@ public class GuiAdapter extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
- //*** Action Codes
+ /* Action Codes */
protected void action_TRANS_INITIAL_TO__running() {
carLights=lights.getCarLights();
pedLights=lights.getPedLights();
@@ -107,10 +116,10 @@ public class GuiAdapter extends ActorClassBase {
pedLights.setState(TrafficLight2.OFF);
lights.setPort(ControlPort);
}
- protected void action_TRANS_running_TO_running_BY_setCarLightsControlPort_tr0(InterfaceItemBase ifitem, int state) {
+ protected void action_TRANS_tr0_FROM_running_TO_running_BY_setCarLightsControlPort_tr0(InterfaceItemBase ifitem, int state) {
carLights.setState(state);
}
- protected void action_TRANS_running_TO_running_BY_setPedLightsControlPort_tr1(InterfaceItemBase ifitem, int state) {
+ protected void action_TRANS_tr1_FROM_running_TO_running_BY_setPedLightsControlPort_tr1(InterfaceItemBase ifitem, int state) {
pedLights.setState(state);
}
@@ -146,16 +155,16 @@ public class GuiAdapter extends ActorClassBase {
action_TRANS_INITIAL_TO__running();
return STATE_running;
}
- case CHAIN_TRANS_running_TO_running_BY_setCarLightsControlPort_tr0:
+ case CHAIN_TRANS_tr0_FROM_running_TO_running_BY_setCarLightsControlPort_tr0:
{
int state = (Integer) generic_data;
- action_TRANS_running_TO_running_BY_setCarLightsControlPort_tr0(ifitem, state);
+ action_TRANS_tr0_FROM_running_TO_running_BY_setCarLightsControlPort_tr0(ifitem, state);
return STATE_running;
}
- case CHAIN_TRANS_running_TO_running_BY_setPedLightsControlPort_tr1:
+ case CHAIN_TRANS_tr1_FROM_running_TO_running_BY_setPedLightsControlPort_tr1:
{
int state = (Integer) generic_data;
- action_TRANS_running_TO_running_BY_setPedLightsControlPort_tr1(ifitem, state);
+ action_TRANS_tr1_FROM_running_TO_running_BY_setPedLightsControlPort_tr1(ifitem, state);
return STATE_running;
}
}
@@ -202,18 +211,18 @@ public class GuiAdapter extends ActorClassBase {
switch (this.state) {
case STATE_running:
switch(trigger) {
- case TRIG_ControlPort__setCarLights:
- {
- chain = CHAIN_TRANS_running_TO_running_BY_setCarLightsControlPort_tr0;
- catching_state = STATE_TOP;
- }
- break;
- case TRIG_ControlPort__setPedLights:
- {
- chain = CHAIN_TRANS_running_TO_running_BY_setPedLightsControlPort_tr1;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_ControlPort__setCarLights:
+ {
+ chain = CHAIN_TRANS_tr0_FROM_running_TO_running_BY_setCarLightsControlPort_tr0;
+ catching_state = STATE_TOP;
+ }
+ break;
+ case TRIG_ControlPort__setPedLights:
+ {
+ chain = CHAIN_TRANS_tr1_FROM_running_TO_running_BY_setPedLightsControlPort_tr1;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedControlProtocol.java b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedControlProtocol.java
index 4602341e3..a8d9bc050 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedControlProtocol.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedControlProtocol.java
@@ -35,7 +35,7 @@ public class PedControlProtocol {
static public class PedControlProtocolPort extends PortBase {
// constructors
public PedControlProtocolPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public PedControlProtocolPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
@@ -80,13 +80,13 @@ public class PedControlProtocol {
}
// replicated port class
- static public class PedControlProtocolPortRepl {
+ static public class PedControlProtocolReplPort {
private ArrayList<PedControlProtocolPort> ports;
private int replication;
- public PedControlProtocolPortRepl(IEventReceiver actor, String name, int localId, Address[] addr,
+ public PedControlProtocolReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
Address[] peerAddress) {
- replication = addr.length;
+ replication = addr==null? 0:addr.length;
ports = new ArrayList<PedControlProtocol.PedControlProtocolPort>(replication);
for (int i=0; i<replication; ++i) {
ports.add(new PedControlProtocolPort(
@@ -124,7 +124,7 @@ public class PedControlProtocol {
static public class PedControlProtocolConjPort extends PortBase {
// constructors
public PedControlProtocolConjPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public PedControlProtocolConjPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
@@ -162,13 +162,13 @@ public class PedControlProtocol {
}
// replicated port class
- static public class PedControlProtocolConjPortRepl {
+ static public class PedControlProtocolConjReplPort {
private ArrayList<PedControlProtocolConjPort> ports;
private int replication;
- public PedControlProtocolConjPortRepl(IEventReceiver actor, String name, int localId, Address[] addr,
+ public PedControlProtocolConjReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
Address[] peerAddress) {
- replication = addr.length;
+ replication = addr==null? 0:addr.length;
ports = new ArrayList<PedControlProtocol.PedControlProtocolConjPort>(replication);
for (int i=0; i<replication; ++i) {
ports.add(new PedControlProtocolConjPort(
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedLightsTop.java b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedLightsTop.java
index 2544472bd..0481c978f 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedLightsTop.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/PedLightsTop.java
@@ -16,13 +16,15 @@ public class PedLightsTop extends ActorClassBase {
//--------------------- ports
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public PedLightsTop(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -32,10 +34,14 @@ public class PedLightsTop extends ActorClassBase {
// initialize attributes
// own ports
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
//--------------------- lifecycle functions
public void init(){
@@ -51,8 +57,7 @@ public class PedLightsTop extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
//--------------------- no state machine
@Override
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/SubSys_PedLights.java b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/SubSys_PedLights.java
index 60a1a947c..1f00a869b 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/SubSys_PedLights.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PedLightsController/SubSys_PedLights.java
@@ -34,10 +34,10 @@ public class SubSys_PedLights extends SubSystemClassBase{
public void instantiateActors(){
// all addresses
// Addresses for the Subsystem Systemport
- Address addr_item_SystemPort_0 = new Address(0,0,109);
- Address addr_item_SystemPort_1 = new Address(0,0,110);
- Address addr_item_SystemPort_2 = new Address(0,0,111);
- Address addr_item_SystemPort_3 = new Address(0,0,112);
+ Address addr_item_SystemPort_0 = new Address(0,0,110);
+ Address addr_item_SystemPort_1 = new Address(0,0,111);
+ Address addr_item_SystemPort_2 = new Address(0,0,112);
+ Address addr_item_SystemPort_3 = new Address(0,0,113);
// actor instance /SubSys_PedLights/PedLightsTopRef itself => Systemport Address
// TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
@@ -77,9 +77,9 @@ public class SubSys_PedLights extends SubSystemClassBase{
"adapter",
// own interface item addresses
new Address[][] {{addr_item__SubSys_PedLights_PedLightsTopRef_adapter},
- {
- addr_item__SubSys_PedLights_PedLightsTopRef_adapter_ControlPort
- }
+ {
+ addr_item__SubSys_PedLights_PedLightsTopRef_adapter_ControlPort
+ }
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_1},
@@ -93,12 +93,12 @@ public class SubSys_PedLights extends SubSystemClassBase{
"controller",
// own interface item addresses
new Address[][] {{addr_item__SubSys_PedLights_PedLightsTopRef_controller},
- {
- addr_item__SubSys_PedLights_PedLightsTopRef_controller_ControlPort
- },
- {
- addr_item__SubSys_PedLights_PedLightsTopRef_controller_timer
- }
+ {
+ addr_item__SubSys_PedLights_PedLightsTopRef_controller_ControlPort
+ },
+ {
+ addr_item__SubSys_PedLights_PedLightsTopRef_controller_timer
+ }
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_2},
@@ -115,21 +115,21 @@ public class SubSys_PedLights extends SubSystemClassBase{
"timingService",
// own interface item addresses
new Address[][] {{addr_item__SubSys_PedLights_timingService},
- {
- },
- {
- addr_item__SubSys_PedLights_timingService_timeout_0
- }
+ {
+ addr_item__SubSys_PedLights_timingService_timeout_0
+ },
+ null
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_3},
{
- },
- {
addr_item__SubSys_PedLights_PedLightsTopRef_controller_timer
- }
+ },
+ null
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPingActor.java b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPingActor.java
new file mode 100644
index 000000000..d7bb5bb67
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPingActor.java
@@ -0,0 +1,245 @@
+package PingPong;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.IMessageReceiver;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+import room.basic.service.timing.*;
+
+import room.basic.service.timing.PTimeout.*;
+import PingPong.PingPongProtocol.*;
+
+
+
+public class MrPingActor extends ActorClassBase {
+
+
+ //--------------------- ports
+ protected PingPongProtocolConjReplPort PingPongPort = null;
+
+ //--------------------- saps
+ protected PTimeoutConjPort timer = null;
+
+ //--------------------- services
+
+ //--------------------- interface item IDs
+ public static final int IFITEM_PingPongPort = 1;
+ public static final int IFITEM_timer = 2;
+
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
+
+ //--------------------- construction
+ public MrPingActor(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
+ super(parent, name, port_addr[0][0], peer_addr[0][0]);
+ setClassName("MrPingActor");
+
+ // initialize attributes
+
+ // own ports
+ PingPongPort = new PingPongProtocolConjReplPort(this, "PingPongPort", IFITEM_PingPongPort, port_addr[IFITEM_PingPongPort], peer_addr[IFITEM_PingPongPort]);
+
+ // own saps
+ timer = new PTimeoutConjPort(this, "timer", IFITEM_timer, 0, port_addr[IFITEM_timer][0], peer_addr[IFITEM_timer][0]);
+
+ // own service implementations
+ }
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public PingPongProtocolConjReplPort getPingPongPort (){
+ return this.PingPongPort;
+ }
+ public PTimeoutConjPort getTimer (){
+ return this.timer;
+ }
+
+ //--------------------- lifecycle functions
+ public void init(){
+ initUser();
+ }
+
+ public void start(){
+ startUser();
+ }
+
+ public void stop(){
+ stopUser();
+ }
+
+ public void destroy(){
+ }
+
+
+ /* state IDs */
+ public static final int STATE_waitForTimer = 2;
+ public static final int STATE_waitForPong = 3;
+
+ /* transition chains */
+ public static final int CHAIN_TRANS_INITIAL_TO__waitForTimer = 1;
+ public static final int CHAIN_TRANS_tr1_FROM_waitForTimer_TO_waitForPong_BY_timeoutTicktimer = 2;
+ public static final int CHAIN_TRANS_tr2_FROM_waitForPong_TO_waitForTimer_BY_pongPingPongPort = 3;
+
+ /* triggers */
+ public static final int POLLING = 0;
+ public static final int TRIG_PingPongPort__pong = IFITEM_PingPongPort + EVT_SHIFT*PingPongProtocol.OUT_pong;
+ public static final int TRIG_timer__timeoutTick = IFITEM_timer + EVT_SHIFT*PTimeout.OUT_timeoutTick;
+
+ // state names
+ protected static final String stateStrings[] = {"<no state>","<top>","waitForTimer",
+ "waitForPong"
+ };
+
+ // history
+ protected int history[] = {NO_STATE,NO_STATE,NO_STATE,NO_STATE};
+
+ private void setState(int new_state) {
+ DebuggingService.getInstance().addActorState(this,stateStrings[new_state]);
+ if (stateStrings[new_state]!="Idle") {
+ System.out.println(getInstancePath() + " -> " + stateStrings[new_state]);
+ }
+ this.state = new_state;
+ }
+
+ /* Entry and Exit Codes */
+
+ /* Action Codes */
+ protected void action_TRANS_INITIAL_TO__waitForTimer() {
+ timer.Start(1000);
+ }
+ protected void action_TRANS_tr1_FROM_waitForTimer_TO_waitForPong_BY_timeoutTicktimer(InterfaceItemBase ifitem) {
+ PingPongPort.ping();
+ }
+ protected void action_TRANS_tr2_FROM_waitForPong_TO_waitForTimer_BY_pongPingPongPort(InterfaceItemBase ifitem) {
+ timer.Start(1000);
+ }
+
+ /**
+ * calls exit codes while exiting from the current state to one of its
+ * parent states while remembering the history
+ * @param current - the current state
+ * @param to - the final parent state
+ * @param handler - entry and exit codes are called only if not handler (for handler TransitionPoints)
+ */
+ private void exitTo(int current, int to, boolean handler) {
+ while (current!=to) {
+ switch (current) {
+ case STATE_waitForTimer:
+ this.history[STATE_TOP] = STATE_waitForTimer;
+ current = STATE_TOP;
+ break;
+ case STATE_waitForPong:
+ this.history[STATE_TOP] = STATE_waitForPong;
+ current = STATE_TOP;
+ break;
+ }
+ }
+ }
+
+ /**
+ * calls action, entry and exit codes along a transition chain. The generic data are cast to typed data
+ * matching the trigger of this chain. The ID of the final state is returned
+ * @param chain - the chain ID
+ * @param generic_data - the generic data pointer
+ * @return the ID of the final state
+ */
+ private int executeTransitionChain(int chain, InterfaceItemBase ifitem, Object generic_data) {
+ switch (chain) {
+ case CHAIN_TRANS_INITIAL_TO__waitForTimer:
+ {
+ action_TRANS_INITIAL_TO__waitForTimer();
+ return STATE_waitForTimer;
+ }
+ case CHAIN_TRANS_tr1_FROM_waitForTimer_TO_waitForPong_BY_timeoutTicktimer:
+ {
+ action_TRANS_tr1_FROM_waitForTimer_TO_waitForPong_BY_timeoutTicktimer(ifitem);
+ return STATE_waitForPong;
+ }
+ case CHAIN_TRANS_tr2_FROM_waitForPong_TO_waitForTimer_BY_pongPingPongPort:
+ {
+ action_TRANS_tr2_FROM_waitForPong_TO_waitForTimer_BY_pongPingPongPort(ifitem);
+ return STATE_waitForTimer;
+ }
+ }
+ return NO_STATE;
+ }
+
+ /**
+ * calls entry codes while entering a state's history. The ID of the final leaf state is returned
+ * @param state - the state which is entered
+ * @param handler - entry code is executed if not handler
+ * @return - the ID of the final leaf state
+ */
+ private int enterHistory(int state, boolean handler, boolean skip_entry) {
+ while (true) {
+ switch (state) {
+ case STATE_waitForTimer:
+ // in leaf state: return state id
+ return STATE_waitForTimer;
+ case STATE_waitForPong:
+ // in leaf state: return state id
+ return STATE_waitForPong;
+ case STATE_TOP:
+ state = this.history[STATE_TOP];
+ break;
+ }
+ skip_entry = false;
+ }
+ //return NO_STATE; // required by CDT but detected as unreachable by JDT because of while (true)
+ }
+
+ public void executeInitTransition() {
+ int chain = CHAIN_TRANS_INITIAL_TO__waitForTimer;
+ int next = executeTransitionChain(chain, null, null);
+ next = enterHistory(next, false, false);
+ setState(next);
+ }
+
+ /* receiveEvent contains the main implementation of the FSM */
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object generic_data) {
+ int trigger = ifitem.getLocalId() + EVT_SHIFT*evt;
+ int chain = NOT_CAUGHT;
+ int catching_state = NO_STATE;
+ boolean is_handler = false;
+ boolean skip_entry = false;
+
+ if (!handleSystemEvent(ifitem, evt, generic_data)) {
+ switch (this.state) {
+ case STATE_waitForTimer:
+ switch(trigger) {
+ case TRIG_timer__timeoutTick:
+ {
+ chain = CHAIN_TRANS_tr1_FROM_waitForTimer_TO_waitForPong_BY_timeoutTicktimer;
+ catching_state = STATE_TOP;
+ }
+ break;
+ }
+ break;
+ case STATE_waitForPong:
+ switch(trigger) {
+ case TRIG_PingPongPort__pong:
+ {
+ chain = CHAIN_TRANS_tr2_FROM_waitForPong_TO_waitForTimer_BY_pongPingPongPort;
+ catching_state = STATE_TOP;
+ }
+ break;
+ }
+ break;
+ }
+ }
+ if (chain != NOT_CAUGHT) {
+ exitTo(this.state, catching_state, is_handler);
+ int next = executeTransitionChain(chain, ifitem, generic_data);
+ next = enterHistory(next, is_handler, skip_entry);
+ setState(next);
+ }
+ }
+
+ //******************************************
+ // END of generated code for FSM
+ //******************************************
+};
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPongActor1.java b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPongActor1.java
new file mode 100644
index 000000000..95e3b5e75
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/MrPongActor1.java
@@ -0,0 +1,204 @@
+package PingPong;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.IMessageReceiver;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+
+import PingPong.PingPongProtocol.*;
+
+
+
+public class MrPongActor1 extends ActorClassBase {
+
+
+ //--------------------- ports
+ protected PingPongProtocolPort PingPongPort = null;
+
+ //--------------------- saps
+
+ //--------------------- services
+
+ //--------------------- interface item IDs
+ public static final int IFITEM_PingPongPort = 1;
+
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
+
+ //--------------------- construction
+ public MrPongActor1(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
+ super(parent, name, port_addr[0][0], peer_addr[0][0]);
+ setClassName("MrPongActor1");
+
+ // initialize attributes
+
+ // own ports
+ PingPongPort = new PingPongProtocolPort(this, "PingPongPort", IFITEM_PingPongPort, 0, port_addr[IFITEM_PingPongPort][0], peer_addr[IFITEM_PingPongPort][0]);
+
+ // own saps
+
+ // own service implementations
+ }
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public PingPongProtocolPort getPingPongPort (){
+ return this.PingPongPort;
+ }
+
+ //--------------------- lifecycle functions
+ public void init(){
+ initUser();
+ }
+
+ public void start(){
+ startUser();
+ }
+
+ public void stop(){
+ stopUser();
+ }
+
+ public void destroy(){
+ }
+
+
+ /* state IDs */
+ public static final int STATE_waitForPing = 2;
+
+ /* transition chains */
+ public static final int CHAIN_TRANS_INITIAL_TO__waitForPing = 1;
+ public static final int CHAIN_TRANS_myTrigger_FROM_waitForPing_TO_waitForPing_BY_pingPingPongPort_myTrigger = 2;
+
+ /* triggers */
+ public static final int POLLING = 0;
+ public static final int TRIG_PingPongPort__ping = IFITEM_PingPongPort + EVT_SHIFT*PingPongProtocol.IN_ping;
+
+ // state names
+ protected static final String stateStrings[] = {"<no state>","<top>","waitForPing"
+ };
+
+ // history
+ protected int history[] = {NO_STATE,NO_STATE,NO_STATE};
+
+ private void setState(int new_state) {
+ DebuggingService.getInstance().addActorState(this,stateStrings[new_state]);
+ if (stateStrings[new_state]!="Idle") {
+ System.out.println(getInstancePath() + " -> " + stateStrings[new_state]);
+ }
+ this.state = new_state;
+ }
+
+ /* Entry and Exit Codes */
+
+ /* Action Codes */
+ protected void action_TRANS_myTrigger_FROM_waitForPing_TO_waitForPing_BY_pingPingPongPort_myTrigger(InterfaceItemBase ifitem) {
+ PingPongPort.pong();
+ }
+
+ /**
+ * calls exit codes while exiting from the current state to one of its
+ * parent states while remembering the history
+ * @param current - the current state
+ * @param to - the final parent state
+ * @param handler - entry and exit codes are called only if not handler (for handler TransitionPoints)
+ */
+ private void exitTo(int current, int to, boolean handler) {
+ while (current!=to) {
+ switch (current) {
+ case STATE_waitForPing:
+ this.history[STATE_TOP] = STATE_waitForPing;
+ current = STATE_TOP;
+ break;
+ }
+ }
+ }
+
+ /**
+ * calls action, entry and exit codes along a transition chain. The generic data are cast to typed data
+ * matching the trigger of this chain. The ID of the final state is returned
+ * @param chain - the chain ID
+ * @param generic_data - the generic data pointer
+ * @return the ID of the final state
+ */
+ private int executeTransitionChain(int chain, InterfaceItemBase ifitem, Object generic_data) {
+ switch (chain) {
+ case CHAIN_TRANS_INITIAL_TO__waitForPing:
+ {
+ return STATE_waitForPing;
+ }
+ case CHAIN_TRANS_myTrigger_FROM_waitForPing_TO_waitForPing_BY_pingPingPongPort_myTrigger:
+ {
+ action_TRANS_myTrigger_FROM_waitForPing_TO_waitForPing_BY_pingPingPongPort_myTrigger(ifitem);
+ return STATE_waitForPing;
+ }
+ }
+ return NO_STATE;
+ }
+
+ /**
+ * calls entry codes while entering a state's history. The ID of the final leaf state is returned
+ * @param state - the state which is entered
+ * @param handler - entry code is executed if not handler
+ * @return - the ID of the final leaf state
+ */
+ private int enterHistory(int state, boolean handler, boolean skip_entry) {
+ while (true) {
+ switch (state) {
+ case STATE_waitForPing:
+ // in leaf state: return state id
+ return STATE_waitForPing;
+ case STATE_TOP:
+ state = this.history[STATE_TOP];
+ break;
+ }
+ skip_entry = false;
+ }
+ //return NO_STATE; // required by CDT but detected as unreachable by JDT because of while (true)
+ }
+
+ public void executeInitTransition() {
+ int chain = CHAIN_TRANS_INITIAL_TO__waitForPing;
+ int next = executeTransitionChain(chain, null, null);
+ next = enterHistory(next, false, false);
+ setState(next);
+ }
+
+ /* receiveEvent contains the main implementation of the FSM */
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object generic_data) {
+ int trigger = ifitem.getLocalId() + EVT_SHIFT*evt;
+ int chain = NOT_CAUGHT;
+ int catching_state = NO_STATE;
+ boolean is_handler = false;
+ boolean skip_entry = false;
+
+ if (!handleSystemEvent(ifitem, evt, generic_data)) {
+ switch (this.state) {
+ case STATE_waitForPing:
+ switch(trigger) {
+ case TRIG_PingPongPort__ping:
+ {
+ chain = CHAIN_TRANS_myTrigger_FROM_waitForPing_TO_waitForPing_BY_pingPingPongPort_myTrigger;
+ catching_state = STATE_TOP;
+ }
+ break;
+ }
+ break;
+ }
+ }
+ if (chain != NOT_CAUGHT) {
+ exitTo(this.state, catching_state, is_handler);
+ int next = executeTransitionChain(chain, ifitem, generic_data);
+ next = enterHistory(next, is_handler, skip_entry);
+ setState(next);
+ }
+ }
+
+ //******************************************
+ // END of generated code for FSM
+ //******************************************
+};
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongProtocol.java b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongProtocol.java
new file mode 100644
index 000000000..b2be71926
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongProtocol.java
@@ -0,0 +1,186 @@
+package PingPong;
+
+import java.util.ArrayList;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.Message;
+import org.eclipse.etrice.runtime.java.modelbase.*;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+
+
+public class PingPongProtocol {
+ // message IDs
+ public static final int MSG_MIN = 0;
+ public static final int OUT_pong = 1;
+ public static final int IN_ping = 2;
+ public static final int MSG_MAX = 3;
+
+
+ private static String messageStrings[] = {"MIN", "pong", "ping","MAX"};
+
+ public String getMessageString(int msg_id) {
+ if (msg_id<MSG_MIN || msg_id>MSG_MAX+1){
+ // id out of range
+ return "Message ID out of range";
+ }
+ else{
+ return messageStrings[msg_id];
+ }
+ }
+
+
+ // port class
+ static public class PingPongProtocolPort extends PortBase {
+ // constructors
+ public PingPongProtocolPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
+ this(actor, name, localId, 0, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+ public PingPongProtocolPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
+ super(actor, name, localId, idx, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+
+ @Override
+ public void receive(Message m) {
+ if (!(m instanceof EventMessage))
+ return;
+ EventMessage msg = (EventMessage) m;
+ if (msg.getEvtId() <= 0 || msg.getEvtId() >= MSG_MAX)
+ System.out.println("unknown");
+ else {
+ if (messageStrings[msg.getEvtId()] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncIn(getPeerAddress(), getAddress(), messageStrings[msg.getEvtId()]);
+ }
+ if (msg instanceof EventWithDataMessage)
+ getActor().receiveEvent(this, msg.getEvtId(), ((EventWithDataMessage)msg).getData());
+ else
+ getActor().receiveEvent(this, msg.getEvtId(), null);
+ }
+ }
+
+
+ // sent messages
+ public void pong() {
+ if (messageStrings[ OUT_pong] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncOut(getAddress(), getPeerAddress(), messageStrings[OUT_pong]);
+ }
+ if (getPeerAddress()!=null)
+ getPeerMsgReceiver().receive(new EventMessage(getPeerAddress(), OUT_pong));
+ }
+ }
+
+ // replicated port class
+ static public class PingPongProtocolReplPort {
+ private ArrayList<PingPongProtocolPort> ports;
+ private int replication;
+
+ public PingPongProtocolReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
+ Address[] peerAddress) {
+ replication = addr==null? 0:addr.length;
+ ports = new ArrayList<PingPongProtocol.PingPongProtocolPort>(replication);
+ for (int i=0; i<replication; ++i) {
+ ports.add(new PingPongProtocolPort(
+ actor, name+i, localId, i, addr[i], peerAddress[i]));
+ }
+ }
+
+ public int getReplication() {
+ return replication;
+ }
+
+ public int getIndexOf(InterfaceItemBase ifitem){
+ return ifitem.getIdx();
+ }
+
+ public PingPongProtocolPort get(int i) {
+ return ports.get(i);
+ }
+
+ // outgoing messages
+ public void pong(){
+ for (int i=0; i<replication; ++i) {
+ ports.get(i).pong();
+ }
+ }
+ }
+
+
+ // port class
+ static public class PingPongProtocolConjPort extends PortBase {
+ // constructors
+ public PingPongProtocolConjPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
+ this(actor, name, localId, 0, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+ public PingPongProtocolConjPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
+ super(actor, name, localId, idx, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+
+ @Override
+ public void receive(Message m) {
+ if (!(m instanceof EventMessage))
+ return;
+ EventMessage msg = (EventMessage) m;
+ if (msg.getEvtId() <= 0 || msg.getEvtId() >= MSG_MAX)
+ System.out.println("unknown");
+ else {
+ if (messageStrings[msg.getEvtId()] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncIn(getPeerAddress(), getAddress(), messageStrings[msg.getEvtId()]);
+ }
+ if (msg instanceof EventWithDataMessage)
+ getActor().receiveEvent(this, msg.getEvtId(), ((EventWithDataMessage)msg).getData());
+ else
+ getActor().receiveEvent(this, msg.getEvtId(), null);
+ }
+ }
+
+
+ // sent messages
+ public void ping() {
+ if (messageStrings[ IN_ping] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncOut(getAddress(), getPeerAddress(), messageStrings[IN_ping]);
+ }
+ if (getPeerAddress()!=null)
+ getPeerMsgReceiver().receive(new EventMessage(getPeerAddress(), IN_ping));
+ }
+ }
+
+ // replicated port class
+ static public class PingPongProtocolConjReplPort {
+ private ArrayList<PingPongProtocolConjPort> ports;
+ private int replication;
+
+ public PingPongProtocolConjReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
+ Address[] peerAddress) {
+ replication = addr==null? 0:addr.length;
+ ports = new ArrayList<PingPongProtocol.PingPongProtocolConjPort>(replication);
+ for (int i=0; i<replication; ++i) {
+ ports.add(new PingPongProtocolConjPort(
+ actor, name+i, localId, i, addr[i], peerAddress[i]));
+ }
+ }
+
+ public int getReplication() {
+ return replication;
+ }
+
+ public int getIndexOf(InterfaceItemBase ifitem){
+ return ifitem.getIdx();
+ }
+
+ public PingPongProtocolConjPort get(int i) {
+ return ports.get(i);
+ }
+
+ // incoming messages
+ public void ping(){
+ for (int i=0; i<replication; ++i) {
+ ports.get(i).ping();
+ }
+ }
+ }
+
+}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongTop.java b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongTop.java
new file mode 100644
index 000000000..30373b71c
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/PingPongTop.java
@@ -0,0 +1,71 @@
+package PingPong;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.IMessageReceiver;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+
+
+
+
+public class PingPongTop extends ActorClassBase {
+
+
+ //--------------------- ports
+
+ //--------------------- saps
+
+ //--------------------- services
+
+ //--------------------- interface item IDs
+
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
+
+ //--------------------- construction
+ public PingPongTop(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
+ super(parent, name, port_addr[0][0], peer_addr[0][0]);
+ setClassName("PingPongTop");
+
+ // initialize attributes
+
+ // own ports
+
+ // own saps
+
+ // own service implementations
+ }
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+
+ //--------------------- lifecycle functions
+ public void init(){
+ initUser();
+ }
+
+ public void start(){
+ startUser();
+ }
+
+ public void stop(){
+ stopUser();
+ }
+
+ public void destroy(){
+ }
+
+ //--------------------- no state machine
+ @Override
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object data) {
+ handleSystemEvent(ifitem, evt, data);
+ }
+
+ @Override
+ public void executeInitTransition(){
+ }
+};
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPong.java b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPong.java
new file mode 100644
index 000000000..b0af8667b
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPong.java
@@ -0,0 +1,155 @@
+package PingPong;
+
+import org.eclipse.etrice.runtime.java.messaging.MessageService;
+import org.eclipse.etrice.runtime.java.messaging.RTServices;
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.RTSystemServicesProtocol.*;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+
+import room.basic.service.timing.*;
+
+
+
+public class SubSystem_PingPong extends SubSystemClassBase{
+
+
+ public SubSystem_PingPong(IRTObject parent, String name) {
+ super(parent, name);
+ }
+
+ @Override
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object data){
+ }
+
+ @Override
+ public void instantiateMessageServices(){
+
+ RTServices.getInstance().getMsgSvcCtrl().addMsgSvc(new MessageService(this, new Address(0, 0, 0),"MessageService_Main"));
+ RTServices.getInstance().getMsgSvcCtrl().addMsgSvc(new MessageService(this, new Address(0, 1, 0),"MessageService_mrPingThread", 5));
+ RTServices.getInstance().getMsgSvcCtrl().addMsgSvc(new MessageService(this, new Address(0, 2, 0),"MessageService_mrPong1Thread", 5));
+ }
+
+ @Override
+ public void instantiateActors(){
+ // all addresses
+ // Addresses for the Subsystem Systemport
+ Address addr_item_SystemPort_0 = new Address(0,0,111);
+ Address addr_item_SystemPort_1 = new Address(0,0,112);
+ Address addr_item_SystemPort_2 = new Address(0,0,113);
+ Address addr_item_SystemPort_3 = new Address(0,0,114);
+
+ // actor instance /SubSystem_PingPong/application itself => Systemport Address
+ // TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
+ Address addr_item__SubSystem_PingPong_application = new Address(0,0,101);
+ // interface items of /SubSystem_PingPong/application
+ // actor instance /SubSystem_PingPong/application/MrPing itself => Systemport Address
+ // TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
+ Address addr_item__SubSystem_PingPong_application_MrPing = new Address(0,1,102);
+ // interface items of /SubSystem_PingPong/application/MrPing
+ Address addr_item__SubSystem_PingPong_application_MrPing_PingPongPort_0 = new Address(0,0,103);
+ Address addr_item__SubSystem_PingPong_application_MrPing_timer = new Address(0,1,105);
+ // actor instance /SubSystem_PingPong/application/MrPong1 itself => Systemport Address
+ // TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
+ Address addr_item__SubSystem_PingPong_application_MrPong1 = new Address(0,2,106);
+ // interface items of /SubSystem_PingPong/application/MrPong1
+ Address addr_item__SubSystem_PingPong_application_MrPong1_PingPongPort = new Address(0,2,107);
+ // actor instance /SubSystem_PingPong/services itself => Systemport Address
+ // TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
+ Address addr_item__SubSystem_PingPong_services = new Address(0,0,108);
+ // interface items of /SubSystem_PingPong/services
+ Address addr_item__SubSystem_PingPong_services_timeout_0 = new Address(0,0,109);
+
+ // instantiate all actor instances
+ instances = new ActorClassBase[4];
+ instances[0] = new PingPongTop(
+ this,
+ "application",
+ // own interface item addresses
+ new Address[][] {{addr_item__SubSystem_PingPong_application}
+ },
+ // peer interface item addresses
+ new Address[][] {{addr_item_SystemPort_0}
+ }
+ );
+ instances[1] = new MrPingActor(
+ instances[0],
+ "MrPing",
+ // own interface item addresses
+ new Address[][] {{addr_item__SubSystem_PingPong_application_MrPing},
+ {
+ addr_item__SubSystem_PingPong_application_MrPing_PingPongPort_0
+ },
+ {
+ addr_item__SubSystem_PingPong_application_MrPing_timer
+ }
+ },
+ // peer interface item addresses
+ new Address[][] {{addr_item_SystemPort_1},
+ {
+ addr_item__SubSystem_PingPong_application_MrPong1_PingPongPort
+ },
+ {
+ addr_item__SubSystem_PingPong_services_timeout_0
+ }
+ }
+ );
+ instances[2] = new MrPongActor1(
+ instances[0],
+ "MrPong1",
+ // own interface item addresses
+ new Address[][] {{addr_item__SubSystem_PingPong_application_MrPong1},
+ {
+ addr_item__SubSystem_PingPong_application_MrPong1_PingPongPort
+ }
+ },
+ // peer interface item addresses
+ new Address[][] {{addr_item_SystemPort_2},
+ {
+ addr_item__SubSystem_PingPong_application_MrPing_PingPongPort_0
+ }
+ }
+ );
+ instances[3] = new ATimingService(
+ this,
+ "services",
+ // own interface item addresses
+ new Address[][] {{addr_item__SubSystem_PingPong_services},
+ {
+ addr_item__SubSystem_PingPong_services_timeout_0
+ },
+ null
+ },
+ // peer interface item addresses
+ new Address[][] {{addr_item_SystemPort_3},
+ {
+ addr_item__SubSystem_PingPong_application_MrPing_timer
+ },
+ null
+ }
+ );
+
+ // apply instance attribute configurations
+
+ // create the subsystem system port
+ RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
+ 0, //local ID
+ // own addresses
+ new Address[]{
+ addr_item_SystemPort_0,
+ addr_item_SystemPort_1,
+ addr_item_SystemPort_2,
+ addr_item_SystemPort_3
+ },
+ // peer addresses
+ new Address[]{
+ addr_item__SubSystem_PingPong_application,
+ addr_item__SubSystem_PingPong_application_MrPing,
+ addr_item__SubSystem_PingPong_application_MrPong1,
+ addr_item__SubSystem_PingPong_services
+ });
+
+ }
+};
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPongRunner.java b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPongRunner.java
new file mode 100644
index 000000000..d840fd674
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/PingPong/SubSystem_PingPongRunner.java
@@ -0,0 +1,36 @@
+/**
+ * @author generated by eTrice
+ *
+ * this class contains the main function running component SubSystem_PingPong
+ * it instantiates SubSystem_PingPong and starts and ends the lifecycle
+ */
+
+package PingPong;
+
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemRunnerBase;
+
+class SubSystem_PingPongRunner extends SubSystemRunnerBase {
+
+ static SubSystem_PingPong main_component = new SubSystem_PingPong(null, "SubSystem_PingPong");
+
+ /**
+ * main function
+ * creates component and starts and stops the lifecycle
+ */
+ public static void main(String[] args) {
+
+ System.out.println("*** T H E B E G I N ***");
+
+ main_component.init(); // lifecycle init
+ main_component.start(); // lifecycle start
+
+ // application runs until quit
+ waitForQuit();
+
+ // end the lifecycle
+ main_component.stop(); // lifecycle stop
+ main_component.destroy(); // lifecycle destroy
+
+ System.out.println("*** T H E E N D ***");
+ }
+};
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/DemoData.java b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/DemoData.java
index 840bdb67e..d656faac2 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/DemoData.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/DemoData.java
@@ -6,11 +6,11 @@ package SendingData;
public class DemoData {
- //--------------------- attributes
- protected int int32Val;
- protected byte[] int8Array;
- protected double float64Val;
- protected String stringVal;
+ /*--------------------- attributes ---------------------*/
+ int int32Val;
+ byte int8Array[];
+ double float64Val;
+ String stringVal;
//--------------------- attribute setters and getters
public void setInt32Val (int int32Val) {
@@ -38,7 +38,7 @@ public class DemoData {
return this.stringVal;
}
- //--------------------- operations
+ /*--------------------- operations ---------------------*/
// default constructor
public DemoData() {
@@ -65,7 +65,7 @@ public class DemoData {
public DemoData deepCopy() {
DemoData copy = new DemoData();
copy.int32Val = int32Val;
- for (int i=0;i<10;i++){
+ for (int i=0;i<int8Array.length;i++){
copy.int8Array[i] = int8Array[i];
}
copy.float64Val = float64Val;
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPing.java b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPing.java
index ae333d4f5..ed2f3f09b 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPing.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPing.java
@@ -18,14 +18,16 @@ public class MrPing extends ActorClassBase {
//--------------------- ports
protected PingPongProtocolConjPort PingPongPort = null;
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
public static final int IFITEM_PingPongPort = 1;
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
public void printData(DemoData d) {
System.out.printf("d.int32Val: %d\n",d.int32Val);
System.out.printf("d.float64Val: %f\n",d.float64Val);
@@ -44,10 +46,17 @@ public class MrPing extends ActorClassBase {
// own ports
PingPongPort = new PingPongProtocolConjPort(this, "PingPongPort", IFITEM_PingPongPort, 0, port_addr[IFITEM_PingPongPort][0], peer_addr[IFITEM_PingPongPort][0]);
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public PingPongProtocolConjPort getPingPongPort (){
+ return this.PingPongPort;
+ }
//--------------------- lifecycle functions
public void init(){
@@ -63,8 +72,7 @@ public class MrPing extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
@@ -73,11 +81,12 @@ public class MrPing extends ActorClassBase {
/* transition chains */
public static final int CHAIN_TRANS_INITIAL_TO__waitForPongSimple = 1;
- public static final int CHAIN_TRANS_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1 = 2;
- public static final int CHAIN_TRANS_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort = 3;
- public static final int CHAIN_TRANS_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2 = 4;
+ public static final int CHAIN_TRANS_next_FROM_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort = 2;
+ public static final int CHAIN_TRANS_wait1_FROM_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1 = 3;
+ public static final int CHAIN_TRANS_wait2_FROM_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2 = 4;
/* triggers */
+ public static final int POLLING = 0;
public static final int TRIG_PingPongPort__pong = IFITEM_PingPongPort + EVT_SHIFT*PingPongProtocol.OUT_pong;
public static final int TRIG_PingPongPort__pongSimple = IFITEM_PingPongPort + EVT_SHIFT*PingPongProtocol.OUT_pongSimple;
@@ -97,18 +106,18 @@ public class MrPing extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
- //*** Action Codes
- protected void action_TRANS_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2(InterfaceItemBase ifitem, DemoData data) {
+ /* Action Codes */
+ protected void action_TRANS_wait2_FROM_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2(InterfaceItemBase ifitem, DemoData data) {
printData(data);
}
- protected void action_TRANS_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1(InterfaceItemBase ifitem, int data) {
+ protected void action_TRANS_wait1_FROM_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1(InterfaceItemBase ifitem, int data) {
// keep in mind that MrPong increments
PingPongPort.pingSimple(data);
System.out.printf("data: %d\n",data);
}
- protected void action_TRANS_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort(InterfaceItemBase ifitem, int data) {
+ protected void action_TRANS_next_FROM_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort(InterfaceItemBase ifitem, int data) {
System.out.printf("data: %d\n",data);
DemoData d = new DemoData();
@@ -157,22 +166,22 @@ public class MrPing extends ActorClassBase {
*/
private int executeTransitionChain(int chain, InterfaceItemBase ifitem, Object generic_data) {
switch (chain) {
- case CHAIN_TRANS_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2:
+ case CHAIN_TRANS_wait2_FROM_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2:
{
DemoData data = (DemoData) generic_data;
- action_TRANS_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2(ifitem, data);
+ action_TRANS_wait2_FROM_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2(ifitem, data);
return STATE_waitForPong;
}
- case CHAIN_TRANS_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1:
+ case CHAIN_TRANS_wait1_FROM_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1:
{
int data = (Integer) generic_data;
- action_TRANS_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1(ifitem, data);
+ action_TRANS_wait1_FROM_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1(ifitem, data);
return STATE_waitForPongSimple;
}
- case CHAIN_TRANS_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort:
+ case CHAIN_TRANS_next_FROM_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort:
{
int data = (Integer) generic_data;
- action_TRANS_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort(ifitem, data);
+ action_TRANS_next_FROM_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort(ifitem, data);
return STATE_waitForPong;
}
case CHAIN_TRANS_INITIAL_TO__waitForPongSimple:
@@ -227,30 +236,29 @@ public class MrPing extends ActorClassBase {
switch (this.state) {
case STATE_waitForPong:
switch(trigger) {
- case TRIG_PingPongPort__pong:
- {
- chain = CHAIN_TRANS_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_PingPongPort__pong:
+ {
+ chain = CHAIN_TRANS_wait2_FROM_waitForPong_TO_waitForPong_BY_pongPingPongPort_wait2;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
case STATE_waitForPongSimple:
switch(trigger) {
- case TRIG_PingPongPort__pongSimple:
- { int data = (Integer) generic_data;
- if (data < 10
- )
- {
- chain = CHAIN_TRANS_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1;
- catching_state = STATE_TOP;
- } else
- {
- chain = CHAIN_TRANS_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort;
- catching_state = STATE_TOP;
- }
- }
- break;
+ case TRIG_PingPongPort__pongSimple:
+ { int data = (Integer) generic_data;
+ if (data < 10)
+ {
+ chain = CHAIN_TRANS_wait1_FROM_waitForPongSimple_TO_waitForPongSimple_BY_pongSimplePingPongPort_wait1;
+ catching_state = STATE_TOP;
+ } else
+ {
+ chain = CHAIN_TRANS_next_FROM_waitForPongSimple_TO_waitForPong_BY_pongSimplePingPongPort;
+ catching_state = STATE_TOP;
+ }
+ }
+ break;
}
break;
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPong.java b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPong.java
index 86372deb1..416f08c1c 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPong.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/MrPong.java
@@ -18,14 +18,16 @@ public class MrPong extends ActorClassBase {
//--------------------- ports
protected PingPongProtocolPort PingPongPort = null;
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
public static final int IFITEM_PingPongPort = 1;
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public MrPong(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -36,10 +38,17 @@ public class MrPong extends ActorClassBase {
// own ports
PingPongPort = new PingPongProtocolPort(this, "PingPongPort", IFITEM_PingPongPort, 0, port_addr[IFITEM_PingPongPort][0], peer_addr[IFITEM_PingPongPort][0]);
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
+ public PingPongProtocolPort getPingPongPort (){
+ return this.PingPongPort;
+ }
//--------------------- lifecycle functions
public void init(){
@@ -55,8 +64,7 @@ public class MrPong extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
/* state IDs */
@@ -64,10 +72,11 @@ public class MrPong extends ActorClassBase {
/* transition chains */
public static final int CHAIN_TRANS_INITIAL_TO__looping = 1;
- public static final int CHAIN_TRANS_looping_TO_looping_BY_pingPingPongPort_tr0 = 2;
- public static final int CHAIN_TRANS_looping_TO_looping_BY_pingSimplePingPongPort_tr1 = 3;
+ public static final int CHAIN_TRANS_tr0_FROM_looping_TO_looping_BY_pingPingPongPort_tr0 = 2;
+ public static final int CHAIN_TRANS_tr1_FROM_looping_TO_looping_BY_pingSimplePingPongPort_tr1 = 3;
/* triggers */
+ public static final int POLLING = 0;
public static final int TRIG_PingPongPort__ping = IFITEM_PingPongPort + EVT_SHIFT*PingPongProtocol.IN_ping;
public static final int TRIG_PingPongPort__pingSimple = IFITEM_PingPongPort + EVT_SHIFT*PingPongProtocol.IN_pingSimple;
@@ -86,13 +95,13 @@ public class MrPong extends ActorClassBase {
this.state = new_state;
}
- //*** Entry and Exit Codes
+ /* Entry and Exit Codes */
- //*** Action Codes
- protected void action_TRANS_looping_TO_looping_BY_pingPingPongPort_tr0(InterfaceItemBase ifitem, DemoData data) {
+ /* Action Codes */
+ protected void action_TRANS_tr0_FROM_looping_TO_looping_BY_pingPingPongPort_tr0(InterfaceItemBase ifitem, DemoData data) {
PingPongPort.pong(data);
}
- protected void action_TRANS_looping_TO_looping_BY_pingSimplePingPongPort_tr1(InterfaceItemBase ifitem, int data) {
+ protected void action_TRANS_tr1_FROM_looping_TO_looping_BY_pingSimplePingPongPort_tr1(InterfaceItemBase ifitem, int data) {
PingPongPort.pongSimple(data+1);
}
@@ -127,16 +136,16 @@ public class MrPong extends ActorClassBase {
{
return STATE_looping;
}
- case CHAIN_TRANS_looping_TO_looping_BY_pingPingPongPort_tr0:
+ case CHAIN_TRANS_tr0_FROM_looping_TO_looping_BY_pingPingPongPort_tr0:
{
DemoData data = (DemoData) generic_data;
- action_TRANS_looping_TO_looping_BY_pingPingPongPort_tr0(ifitem, data);
+ action_TRANS_tr0_FROM_looping_TO_looping_BY_pingPingPongPort_tr0(ifitem, data);
return STATE_looping;
}
- case CHAIN_TRANS_looping_TO_looping_BY_pingSimplePingPongPort_tr1:
+ case CHAIN_TRANS_tr1_FROM_looping_TO_looping_BY_pingSimplePingPongPort_tr1:
{
int data = (Integer) generic_data;
- action_TRANS_looping_TO_looping_BY_pingSimplePingPongPort_tr1(ifitem, data);
+ action_TRANS_tr1_FROM_looping_TO_looping_BY_pingSimplePingPongPort_tr1(ifitem, data);
return STATE_looping;
}
}
@@ -183,18 +192,18 @@ public class MrPong extends ActorClassBase {
switch (this.state) {
case STATE_looping:
switch(trigger) {
- case TRIG_PingPongPort__ping:
- {
- chain = CHAIN_TRANS_looping_TO_looping_BY_pingPingPongPort_tr0;
- catching_state = STATE_TOP;
- }
- break;
- case TRIG_PingPongPort__pingSimple:
- {
- chain = CHAIN_TRANS_looping_TO_looping_BY_pingSimplePingPongPort_tr1;
- catching_state = STATE_TOP;
- }
- break;
+ case TRIG_PingPongPort__ping:
+ {
+ chain = CHAIN_TRANS_tr0_FROM_looping_TO_looping_BY_pingPingPongPort_tr0;
+ catching_state = STATE_TOP;
+ }
+ break;
+ case TRIG_PingPongPort__pingSimple:
+ {
+ chain = CHAIN_TRANS_tr1_FROM_looping_TO_looping_BY_pingSimplePingPongPort_tr1;
+ catching_state = STATE_TOP;
+ }
+ break;
}
break;
}
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/PingPongProtocol.java b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/PingPongProtocol.java
index eaa0e80ae..0a252d148 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/PingPongProtocol.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/PingPongProtocol.java
@@ -36,7 +36,7 @@ public class PingPongProtocol {
static public class PingPongProtocolPort extends PortBase {
// constructors
public PingPongProtocolPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public PingPongProtocolPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
@@ -84,13 +84,13 @@ public class PingPongProtocol {
}
// replicated port class
- static public class PingPongProtocolPortRepl {
+ static public class PingPongProtocolReplPort {
private ArrayList<PingPongProtocolPort> ports;
private int replication;
- public PingPongProtocolPortRepl(IEventReceiver actor, String name, int localId, Address[] addr,
+ public PingPongProtocolReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
Address[] peerAddress) {
- replication = addr.length;
+ replication = addr==null? 0:addr.length;
ports = new ArrayList<PingPongProtocol.PingPongProtocolPort>(replication);
for (int i=0; i<replication; ++i) {
ports.add(new PingPongProtocolPort(
@@ -128,7 +128,7 @@ public class PingPongProtocol {
static public class PingPongProtocolConjPort extends PortBase {
// constructors
public PingPongProtocolConjPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
- super(actor, name, localId, 0, addr, peerAddress);
+ this(actor, name, localId, 0, addr, peerAddress);
DebuggingService.getInstance().addPortInstance(this);
}
public PingPongProtocolConjPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
@@ -176,13 +176,13 @@ public class PingPongProtocol {
}
// replicated port class
- static public class PingPongProtocolConjPortRepl {
+ static public class PingPongProtocolConjReplPort {
private ArrayList<PingPongProtocolConjPort> ports;
private int replication;
- public PingPongProtocolConjPortRepl(IEventReceiver actor, String name, int localId, Address[] addr,
+ public PingPongProtocolConjReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
Address[] peerAddress) {
- replication = addr.length;
+ replication = addr==null? 0:addr.length;
ports = new ArrayList<PingPongProtocol.PingPongProtocolConjPort>(replication);
for (int i=0; i<replication; ++i) {
ports.add(new PingPongProtocolConjPort(
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingDataTop.java b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingDataTop.java
index be016b167..2a59b21fd 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingDataTop.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingDataTop.java
@@ -16,13 +16,15 @@ public class SendingDataTop extends ActorClassBase {
//--------------------- ports
+
//--------------------- saps
+
//--------------------- services
//--------------------- interface item IDs
- //--------------------- attributes
- //--------------------- operations
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
//--------------------- construction
public SendingDataTop(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
@@ -32,10 +34,14 @@ public class SendingDataTop extends ActorClassBase {
// initialize attributes
// own ports
+
// own saps
+
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ //--------------------- port getters
//--------------------- lifecycle functions
public void init(){
@@ -51,8 +57,7 @@ public class SendingDataTop extends ActorClassBase {
}
public void destroy(){
- destroyUser();
- }
+ }
//--------------------- no state machine
@Override
diff --git a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingData_SubSystem.java b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingData_SubSystem.java
index 20b905bfc..69ecf97d5 100644
--- a/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingData_SubSystem.java
+++ b/examples/org.eclipse.etrice.tutorials/src-gen/SendingData/SendingData_SubSystem.java
@@ -69,9 +69,9 @@ public class SendingData_SubSystem extends SubSystemClassBase{
"ref0",
// own interface item addresses
new Address[][] {{addr_item__SendingData_SubSystem_SendigDataTopRef_ref0},
- {
- addr_item__SendingData_SubSystem_SendigDataTopRef_ref0_PingPongPort
- }
+ {
+ addr_item__SendingData_SubSystem_SendigDataTopRef_ref0_PingPongPort
+ }
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_1},
@@ -85,9 +85,9 @@ public class SendingData_SubSystem extends SubSystemClassBase{
"ref1",
// own interface item addresses
new Address[][] {{addr_item__SendingData_SubSystem_SendigDataTopRef_ref1},
- {
- addr_item__SendingData_SubSystem_SendigDataTopRef_ref1_PingPongPort
- }
+ {
+ addr_item__SendingData_SubSystem_SendigDataTopRef_ref1_PingPongPort
+ }
},
// peer interface item addresses
new Address[][] {{addr_item_SystemPort_2},
@@ -96,6 +96,8 @@ public class SendingData_SubSystem extends SubSystemClassBase{
}
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/features/org.eclipse.etrice.feature/feature.xml b/features/org.eclipse.etrice.feature/feature.xml
index 30e4445af..e94e947ee 100644
--- a/features/org.eclipse.etrice.feature/feature.xml
+++ b/features/org.eclipse.etrice.feature/feature.xml
@@ -37,42 +37,39 @@ http://www.eclipse.org/legal/epl-v10.html
</copyright>
<requires>
- <import plugin="org.eclipse.xtext" version="2.0.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.xtext.util" version="2.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.ecore" version="2.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.common" version="2.6.0" match="greaterOrEqual"/>
<import plugin="org.antlr.runtime" version="3.0.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.resources" version="3.7.100" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.runtime" version="3.7.0" match="greaterOrEqual"/>
<import plugin="org.apache.log4j"/>
<import plugin="org.eclipse.etrice.core.room" version="0.1.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.etrice.generator" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui" version="3.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui.editors" version="3.5.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui.ide" version="3.5.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.xtext.ui" version="2.0.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.xtext.ui.shared" version="2.0.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.xtext.builder" version="2.0.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jdt.core" version="3.6.2" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jdt.launching" version="3.5.200" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.emf.codegen" version="2.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.runtime" version="3.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.ecore.xmi" version="2.5.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.etrice.core.room.ui" version="0.1.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.etrice.generator" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.resources" version="3.6.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.ui" version="3.7.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.ui.ide" version="3.7.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.etrice.generator.doc" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.etrice.ui.common" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.graphiti" version="0.8.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.graphiti.ui" version="0.8.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.ui.ide" version="3.6.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.ui.forms" version="3.5.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.ui.views.properties.tabbed" version="3.5.100" match="greaterOrEqual"/>
- <import plugin="org.eclipse.jface.databinding" version="1.4.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.databinding" version="1.3.100" match="greaterOrEqual"/>
- <import plugin="org.eclipse.core.databinding.property" version="1.3.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.core.databinding.beans" version="1.2.100" match="greaterOrEqual"/>
<import plugin="org.eclipse.gef" version="3.6.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.transaction" version="1.4.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.etrice.ui.structure" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.etrice.ui.behavior" version="0.1.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.emf.edit" version="2.6.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.emf.edit.ui" version="2.6.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.jface" version="3.6.0" match="greaterOrEqual"/>
- <import plugin="org.eclipse.ui" version="3.6.1" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.databinding.beans" version="1.2.100" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jface.databinding" version="1.4.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.ui.ide" version="3.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.graphiti.ui" version="0.7.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.resources" version="3.7.100" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.runtime" version="3.7.0" match="greaterOrEqual"/>
@@ -89,11 +86,27 @@ http://www.eclipse.org/legal/epl-v10.html
<import plugin="org.eclipse.jdt.ui" version="3.7.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.core" version="3.7.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.variables" version="3.2.500" match="greaterOrEqual"/>
- <import plugin="org.eclipse.etrice.generator.doc" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.etrice.generator.java" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.etrice.generator.launch" version="0.1.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.debug.core"/>
<import plugin="org.eclipse.emf.common.ui" version="2.7.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.xtext" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.xtext.util" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.etrice.core.genmodel" version="0.2.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.xtext.ui" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.xtext.ui.shared" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.xtext.builder" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.compare"/>
+ <import plugin="org.eclipse.xtext.generator" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.xtext.xtend2.lib" version="2.1.1" match="equivalent"/>
+ <import plugin="org.eclipse.etrice.core.config" version="0.2.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.gef" version="3.7.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jface.databinding" version="1.5.0" match="greaterOrEqual"/>
+ <import plugin="org.apache.log4j" version="1.2.15" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.etrice.core.room.ui" version="0.2.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.etrice.generator" version="0.2.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.etrice.generator.doc" version="0.2.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.etrice.generator.c" version="0.1.0" match="greaterOrEqual"/>
</requires>
<plugin
diff --git a/plugins/org.eclipse.etrice.core.config.tests/src-gen/org/eclipse/etrice/core/ConfigInjectorProvider.java b/plugins/org.eclipse.etrice.core.config.tests/src-gen/org/eclipse/etrice/core/ConfigInjectorProvider.java
index 81ed8313a..87a596f46 100644
--- a/plugins/org.eclipse.etrice.core.config.tests/src-gen/org/eclipse/etrice/core/ConfigInjectorProvider.java
+++ b/plugins/org.eclipse.etrice.core.config.tests/src-gen/org/eclipse/etrice/core/ConfigInjectorProvider.java
@@ -1,45 +1,45 @@
-/*
-* generated by Xtext
-*/
-package org.eclipse.etrice.core;
-
-import org.eclipse.xtext.junit4.GlobalRegistries;
-import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento;
-import org.eclipse.xtext.junit4.IInjectorProvider;
-import org.eclipse.xtext.junit4.IRegistryConfigurator;
-
-import com.google.inject.Injector;
-
-public class ConfigInjectorProvider implements IInjectorProvider, IRegistryConfigurator {
-
- protected GlobalStateMemento stateBeforeInjectorCreation;
- protected GlobalStateMemento stateAfterInjectorCreation;
- protected Injector injector;
-
- static {
- GlobalRegistries.initializeDefaults();
- }
-
- public Injector getInjector()
- {
- if (injector == null) {
- stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
- this.injector = internalCreateInjector();
- stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
- }
- return injector;
- }
-
- protected Injector internalCreateInjector() {
- return new ConfigStandaloneSetup().createInjectorAndDoEMFRegistration();
- }
-
- public void restoreRegistry() {
- stateBeforeInjectorCreation.restoreGlobalState();
- }
-
- public void setupRegistry() {
- getInjector();
- stateAfterInjectorCreation.restoreGlobalState();
- }
-}
+/*
+* generated by Xtext
+*/
+package org.eclipse.etrice.core;
+
+import org.eclipse.xtext.junit4.GlobalRegistries;
+import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento;
+import org.eclipse.xtext.junit4.IInjectorProvider;
+import org.eclipse.xtext.junit4.IRegistryConfigurator;
+
+import com.google.inject.Injector;
+
+public class ConfigInjectorProvider implements IInjectorProvider, IRegistryConfigurator {
+
+ protected GlobalStateMemento stateBeforeInjectorCreation;
+ protected GlobalStateMemento stateAfterInjectorCreation;
+ protected Injector injector;
+
+ static {
+ GlobalRegistries.initializeDefaults();
+ }
+
+ public Injector getInjector()
+ {
+ if (injector == null) {
+ stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
+ this.injector = internalCreateInjector();
+ stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
+ }
+ return injector;
+ }
+
+ protected Injector internalCreateInjector() {
+ return new ConfigStandaloneSetup().createInjectorAndDoEMFRegistration();
+ }
+
+ public void restoreRegistry() {
+ stateBeforeInjectorCreation.restoreGlobalState();
+ }
+
+ public void setupRegistry() {
+ getInjector();
+ stateAfterInjectorCreation.restoreGlobalState();
+ }
+}
diff --git a/plugins/org.eclipse.etrice.core.config.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.etrice.core.config.ui/META-INF/MANIFEST.MF
index 916cb2630..70fae8bab 100644
--- a/plugins/org.eclipse.etrice.core.config.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.etrice.core.config.ui/META-INF/MANIFEST.MF
@@ -6,15 +6,15 @@ Bundle-Version: 0.2.0.qualifier
Bundle-SymbolicName: org.eclipse.etrice.core.config.ui; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.etrice.core.config;visibility:=reexport,
- org.eclipse.xtext.ui,
+ org.eclipse.xtext.ui;bundle-version="2.1.1",
org.eclipse.ui.editors;bundle-version="3.5.0",
org.eclipse.ui.ide;bundle-version="3.5.0",
- org.eclipse.xtext.ui.shared,
+ org.eclipse.xtext.ui.shared;bundle-version="2.1.1",
org.eclipse.ui,
- org.eclipse.xtext.builder,
+ org.eclipse.xtext.builder;bundle-version="2.1.1",
org.antlr.runtime,
- org.eclipse.xtext.common.types.ui,
- org.eclipse.xtext.ui.codetemplates.ui,
+ org.eclipse.xtext.common.types.ui;bundle-version="2.1.1",
+ org.eclipse.xtext.ui.codetemplates.ui;bundle-version="2.1.1",
org.eclipse.compare,
org.eclipse.etrice.core.room.ui;bundle-version="0.2.0"
Import-Package: org.apache.log4j,
diff --git a/plugins/org.eclipse.etrice.core.config.ui/plugin.xml_gen b/plugins/org.eclipse.etrice.core.config.ui/plugin.xml_gen
index b8d0938cc..dd4224394 100644
--- a/plugins/org.eclipse.etrice.core.config.ui/plugin.xml_gen
+++ b/plugins/org.eclipse.etrice.core.config.ui/plugin.xml_gen
@@ -1,323 +1,323 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-
-<plugin>
-
- <extension
- point="org.eclipse.ui.editors">
- <editor
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
- contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
- default="true"
- extensions="config"
- id="org.eclipse.etrice.core.Config"
- name="Config Editor">
- </editor>
- </extension>
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
- commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
- <activeWhen>
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </activeWhen>
- </handler>
- <handler
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
- commandId="org.eclipse.etrice.core.Config.validate">
- <activeWhen>
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </activeWhen>
- </handler>
- </extension>
- <extension point="org.eclipse.core.expressions.definitions">
- <definition id="org.eclipse.etrice.core.Config.Editor.opened">
- <and>
- <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
- <with variable="activeEditor">
- <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
- value="org.eclipse.etrice.core.Config"
- forcePluginActivation="true"/>
- </with>
- </and>
- </definition>
- </extension>
- <extension
- point="org.eclipse.ui.preferencePages">
- <page
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
- id="org.eclipse.etrice.core.Config"
- name="Config">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- </page>
- <page
- category="org.eclipse.etrice.core.Config"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
- id="org.eclipse.etrice.core.Config.coloring"
- name="Syntax Coloring">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- </page>
- <page
- category="org.eclipse.etrice.core.Config"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
- id="org.eclipse.etrice.core.Config.templates"
- name="Templates">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.propertyPages">
- <page
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
- id="org.eclipse.etrice.core.Config"
- name="Config">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- <enabledWhen>
- <adapt type="org.eclipse.core.resources.IProject"/>
- </enabledWhen>
- <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.keywords">
- <keyword
- id="org.eclipse.etrice.core.ui.keyword_Config"
- label="Config"/>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- description="Trigger expensive validation"
- id="org.eclipse.etrice.core.Config.validate"
- name="Validate">
- </command>
- </extension>
- <extension point="org.eclipse.ui.menus">
- <menuContribution
- locationURI="popup:#TextEditorContext?after=group.edit">
- <command
- commandId="org.eclipse.etrice.core.Config.validate"
- style="push"
- tooltip="Trigger expensive validation">
- <visibleWhen checkEnabled="false">
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <extension point="org.eclipse.ui.menus">
- <menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
- <command commandId="org.eclipse.xtext.ui.editor.FindReferences">
- <visibleWhen checkEnabled="false">
- <reference definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <extension point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
- commandId="org.eclipse.xtext.ui.editor.FindReferences">
- <activeWhen>
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </activeWhen>
- </handler>
- </extension>
-
-<!-- adding resource factories -->
-
- <extension
- point="org.eclipse.emf.ecore.extension_parser">
- <parser
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
- type="config">
- </parser>
- </extension>
- <extension point="org.eclipse.xtext.extension_resourceServiceProvider">
- <resourceServiceProvider
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
- uriExtension="config">
- </resourceServiceProvider>
- </extension>
-
-
- <!-- marker definitions for org.eclipse.etrice.core.Config -->
- <extension
- id="config.check.fast"
- name="Config Problem"
- point="org.eclipse.core.resources.markers">
- <super type="org.eclipse.xtext.ui.check.fast"/>
- <persistent value="true"/>
- </extension>
- <extension
- id="config.check.normal"
- name="Config Problem"
- point="org.eclipse.core.resources.markers">
- <super type="org.eclipse.xtext.ui.check.normal"/>
- <persistent value="true"/>
- </extension>
- <extension
- id="config.check.expensive"
- name="Config Problem"
- point="org.eclipse.core.resources.markers">
- <super type="org.eclipse.xtext.ui.check.expensive"/>
- <persistent value="true"/>
- </extension>
-
- <extension
- point="org.eclipse.xtext.builder.participant">
- <participant
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant">
- </participant>
- </extension>
- <extension
- point="org.eclipse.ui.preferencePages">
- <page
- category="org.eclipse.etrice.core.Config"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
- id="org.eclipse.etrice.core.Config.compiler.preferencePage"
- name="Compiler">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.propertyPages">
- <page
- category="org.eclipse.etrice.core.Config"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
- id="org.eclipse.etrice.core.Config.compiler.propertyPage"
- name="Compiler">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- <enabledWhen>
- <adapt type="org.eclipse.core.resources.IProject"/>
- </enabledWhen>
- <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
- </page>
- </extension>
-
- <!-- Quick Outline -->
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
- commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
- <activeWhen>
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </activeWhen>
- </handler>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- description="Open the quick outline."
- id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
- name="Quick Outline">
- </command>
- </extension>
- <extension point="org.eclipse.ui.menus">
- <menuContribution
- locationURI="popup:#TextEditorContext?after=group.open">
- <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
- style="push"
- tooltip="Open Quick Outline">
- <visibleWhen checkEnabled="false">
- <reference definitionId="org.eclipse.etrice.core.Config.Editor.opened"/>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <!-- quickfix marker resolution generator for org.eclipse.etrice.core.Config -->
- <extension
- point="org.eclipse.ui.ide.markerResolution">
- <markerResolutionGenerator
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
- markerType="org.eclipse.etrice.core.ui.config.check.fast">
- <attribute
- name="FIXABLE_KEY"
- value="true">
- </attribute>
- </markerResolutionGenerator>
- <markerResolutionGenerator
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
- markerType="org.eclipse.etrice.core.ui.config.check.normal">
- <attribute
- name="FIXABLE_KEY"
- value="true">
- </attribute>
- </markerResolutionGenerator>
- <markerResolutionGenerator
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
- markerType="org.eclipse.etrice.core.ui.config.check.expensive">
- <attribute
- name="FIXABLE_KEY"
- value="true">
- </attribute>
- </markerResolutionGenerator>
- </extension>
- <!-- Rename Refactoring -->
- <extension point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler"
- commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
- <activeWhen>
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </activeWhen>
- </handler>
- </extension>
- <extension point="org.eclipse.ui.menus">
- <menuContribution
- locationURI="popup:#TextEditorContext?after=group.edit">
- <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement"
- style="push">
- <visibleWhen checkEnabled="false">
- <reference
- definitionId="org.eclipse.etrice.core.Config.Editor.opened">
- </reference>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <extension point="org.eclipse.ui.preferencePages">
- <page
- category="org.eclipse.etrice.core.Config"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
- id="org.eclipse.etrice.core.Config.refactoring"
- name="Refactoring">
- <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
- </page>
- </extension>
-
- <extension point="org.eclipse.compare.contentViewers">
- <viewer id="org.eclipse.etrice.core.Config.compare.contentViewers"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
- extensions="config">
- </viewer>
- </extension>
- <extension point="org.eclipse.compare.contentMergeViewers">
- <viewer id="org.eclipse.etrice.core.Config.compare.contentMergeViewers"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
- extensions="config" label="Config Compare">
- </viewer>
- </extension>
- <extension point="org.eclipse.ui.editors.documentProviders">
- <provider id="org.eclipse.etrice.core.Config.editors.documentProviders"
- class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider"
- extensions="config">
- </provider>
- </extension>
-
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<plugin>
+
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
+ contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
+ default="true"
+ extensions="config"
+ id="org.eclipse.etrice.core.Config"
+ name="Config Editor">
+ </editor>
+ </extension>
+ <extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
+ commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
+ <activeWhen>
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </activeWhen>
+ </handler>
+ <handler
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
+ commandId="org.eclipse.etrice.core.Config.validate">
+ <activeWhen>
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </activeWhen>
+ </handler>
+ </extension>
+ <extension point="org.eclipse.core.expressions.definitions">
+ <definition id="org.eclipse.etrice.core.Config.Editor.opened">
+ <and>
+ <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
+ <with variable="activeEditor">
+ <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
+ value="org.eclipse.etrice.core.Config"
+ forcePluginActivation="true"/>
+ </with>
+ </and>
+ </definition>
+ </extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
+ id="org.eclipse.etrice.core.Config"
+ name="Config">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ </page>
+ <page
+ category="org.eclipse.etrice.core.Config"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
+ id="org.eclipse.etrice.core.Config.coloring"
+ name="Syntax Coloring">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ </page>
+ <page
+ category="org.eclipse.etrice.core.Config"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
+ id="org.eclipse.etrice.core.Config.templates"
+ name="Templates">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ </page>
+ </extension>
+ <extension
+ point="org.eclipse.ui.propertyPages">
+ <page
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
+ id="org.eclipse.etrice.core.Config"
+ name="Config">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ <enabledWhen>
+ <adapt type="org.eclipse.core.resources.IProject"/>
+ </enabledWhen>
+ <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
+ </page>
+ </extension>
+ <extension
+ point="org.eclipse.ui.keywords">
+ <keyword
+ id="org.eclipse.etrice.core.ui.keyword_Config"
+ label="Config"/>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ description="Trigger expensive validation"
+ id="org.eclipse.etrice.core.Config.validate"
+ name="Validate">
+ </command>
+ </extension>
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:#TextEditorContext?after=group.edit">
+ <command
+ commandId="org.eclipse.etrice.core.Config.validate"
+ style="push"
+ tooltip="Trigger expensive validation">
+ <visibleWhen checkEnabled="false">
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
+ <command commandId="org.eclipse.xtext.ui.editor.FindReferences">
+ <visibleWhen checkEnabled="false">
+ <reference definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <extension point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
+ commandId="org.eclipse.xtext.ui.editor.FindReferences">
+ <activeWhen>
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </activeWhen>
+ </handler>
+ </extension>
+
+<!-- adding resource factories -->
+
+ <extension
+ point="org.eclipse.emf.ecore.extension_parser">
+ <parser
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
+ type="config">
+ </parser>
+ </extension>
+ <extension point="org.eclipse.xtext.extension_resourceServiceProvider">
+ <resourceServiceProvider
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
+ uriExtension="config">
+ </resourceServiceProvider>
+ </extension>
+
+
+ <!-- marker definitions for org.eclipse.etrice.core.Config -->
+ <extension
+ id="config.check.fast"
+ name="Config Problem"
+ point="org.eclipse.core.resources.markers">
+ <super type="org.eclipse.xtext.ui.check.fast"/>
+ <persistent value="true"/>
+ </extension>
+ <extension
+ id="config.check.normal"
+ name="Config Problem"
+ point="org.eclipse.core.resources.markers">
+ <super type="org.eclipse.xtext.ui.check.normal"/>
+ <persistent value="true"/>
+ </extension>
+ <extension
+ id="config.check.expensive"
+ name="Config Problem"
+ point="org.eclipse.core.resources.markers">
+ <super type="org.eclipse.xtext.ui.check.expensive"/>
+ <persistent value="true"/>
+ </extension>
+
+ <extension
+ point="org.eclipse.xtext.builder.participant">
+ <participant
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant">
+ </participant>
+ </extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ category="org.eclipse.etrice.core.Config"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
+ id="org.eclipse.etrice.core.Config.compiler.preferencePage"
+ name="Compiler">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ </page>
+ </extension>
+ <extension
+ point="org.eclipse.ui.propertyPages">
+ <page
+ category="org.eclipse.etrice.core.Config"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
+ id="org.eclipse.etrice.core.Config.compiler.propertyPage"
+ name="Compiler">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ <enabledWhen>
+ <adapt type="org.eclipse.core.resources.IProject"/>
+ </enabledWhen>
+ <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
+ </page>
+ </extension>
+
+ <!-- Quick Outline -->
+ <extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
+ commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
+ <activeWhen>
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </activeWhen>
+ </handler>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ description="Open the quick outline."
+ id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
+ name="Quick Outline">
+ </command>
+ </extension>
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:#TextEditorContext?after=group.open">
+ <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
+ style="push"
+ tooltip="Open Quick Outline">
+ <visibleWhen checkEnabled="false">
+ <reference definitionId="org.eclipse.etrice.core.Config.Editor.opened"/>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <!-- quickfix marker resolution generator for org.eclipse.etrice.core.Config -->
+ <extension
+ point="org.eclipse.ui.ide.markerResolution">
+ <markerResolutionGenerator
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
+ markerType="org.eclipse.etrice.core.ui.config.check.fast">
+ <attribute
+ name="FIXABLE_KEY"
+ value="true">
+ </attribute>
+ </markerResolutionGenerator>
+ <markerResolutionGenerator
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
+ markerType="org.eclipse.etrice.core.ui.config.check.normal">
+ <attribute
+ name="FIXABLE_KEY"
+ value="true">
+ </attribute>
+ </markerResolutionGenerator>
+ <markerResolutionGenerator
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
+ markerType="org.eclipse.etrice.core.ui.config.check.expensive">
+ <attribute
+ name="FIXABLE_KEY"
+ value="true">
+ </attribute>
+ </markerResolutionGenerator>
+ </extension>
+ <!-- Rename Refactoring -->
+ <extension point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler"
+ commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
+ <activeWhen>
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </activeWhen>
+ </handler>
+ </extension>
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:#TextEditorContext?after=group.edit">
+ <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement"
+ style="push">
+ <visibleWhen checkEnabled="false">
+ <reference
+ definitionId="org.eclipse.etrice.core.Config.Editor.opened">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <extension point="org.eclipse.ui.preferencePages">
+ <page
+ category="org.eclipse.etrice.core.Config"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
+ id="org.eclipse.etrice.core.Config.refactoring"
+ name="Refactoring">
+ <keywordReference id="org.eclipse.etrice.core.ui.keyword_Config"/>
+ </page>
+ </extension>
+
+ <extension point="org.eclipse.compare.contentViewers">
+ <viewer id="org.eclipse.etrice.core.Config.compare.contentViewers"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
+ extensions="config">
+ </viewer>
+ </extension>
+ <extension point="org.eclipse.compare.contentMergeViewers">
+ <viewer id="org.eclipse.etrice.core.Config.compare.contentMergeViewers"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
+ extensions="config" label="Config Compare">
+ </viewer>
+ </extension>
+ <extension point="org.eclipse.ui.editors.documentProviders">
+ <provider id="org.eclipse.etrice.core.Config.editors.documentProviders"
+ class="org.eclipse.etrice.core.ui.ConfigExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider"
+ extensions="config">
+ </provider>
+ </extension>
+
+</plugin>
diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java
index 24bd98894..6695a3260 100644
--- a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java
+++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java
@@ -1,29 +1,29 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.etrice.core.ui;
-
-import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
-import org.osgi.framework.Bundle;
-
-import com.google.inject.Injector;
-
-import org.eclipse.etrice.core.ui.internal.ConfigActivator;
-
-/**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass.
- */
-public class ConfigExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
-
- @Override
- protected Bundle getBundle() {
- return ConfigActivator.getInstance().getBundle();
- }
-
- @Override
- protected Injector getInjector() {
- return ConfigActivator.getInstance().getInjector(ConfigActivator.ORG_ECLIPSE_ETRICE_CORE_CONFIG);
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.etrice.core.ui;
+
+import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
+import org.osgi.framework.Bundle;
+
+import com.google.inject.Injector;
+
+import org.eclipse.etrice.core.ui.internal.ConfigActivator;
+
+/**
+ * This class was generated. Customizations should only happen in a newly
+ * introduced subclass.
+ */
+public class ConfigExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
+
+ @Override
+ protected Bundle getBundle() {
+ return ConfigActivator.getInstance().getBundle();
+ }
+
+ @Override
+ protected Injector getInjector() {
+ return ConfigActivator.getInstance().getInjector(ConfigActivator.ORG_ECLIPSE_ETRICE_CORE_CONFIG);
+ }
+
+}
diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java
index f266afb93..be11391da 100644
--- a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java
+++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java
@@ -1,95 +1,95 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.etrice.core.ui.internal;
-
-import java.util.Collections;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.xtext.ui.shared.SharedStateModule;
-import org.eclipse.xtext.util.Modules2;
-import org.osgi.framework.BundleContext;
-
-import com.google.common.collect.Maps;
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-import com.google.inject.Module;
-
-/**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass.
- */
-public class ConfigActivator extends AbstractUIPlugin {
-
- public static final String ORG_ECLIPSE_ETRICE_CORE_CONFIG = "org.eclipse.etrice.core.Config";
-
- private static final Logger logger = Logger.getLogger(ConfigActivator.class);
-
- private static ConfigActivator INSTANCE;
-
- private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- INSTANCE = this;
- }
-
- @Override
- public void stop(BundleContext context) throws Exception {
- injectors.clear();
- INSTANCE = null;
- super.stop(context);
- }
-
- public static ConfigActivator getInstance() {
- return INSTANCE;
- }
-
- public Injector getInjector(String language) {
- synchronized (injectors) {
- Injector injector = injectors.get(language);
- if (injector == null) {
- injectors.put(language, injector = createInjector(language));
- }
- return injector;
- }
- }
-
- protected Injector createInjector(String language) {
- try {
- Module runtimeModule = getRuntimeModule(language);
- Module sharedStateModule = getSharedStateModule();
- Module uiModule = getUiModule(language);
- Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
- return Guice.createInjector(mergedModule);
- } catch (Exception e) {
- logger.error("Failed to create injector for " + language);
- logger.error(e.getMessage(), e);
- throw new RuntimeException("Failed to create injector for " + language, e);
- }
- }
-
- protected Module getRuntimeModule(String grammar) {
- if (ORG_ECLIPSE_ETRICE_CORE_CONFIG.equals(grammar)) {
- return new org.eclipse.etrice.core.ConfigRuntimeModule();
- }
-
- throw new IllegalArgumentException(grammar);
- }
-
- protected Module getUiModule(String grammar) {
- if (ORG_ECLIPSE_ETRICE_CORE_CONFIG.equals(grammar)) {
- return new org.eclipse.etrice.core.ui.ConfigUiModule(this);
- }
-
- throw new IllegalArgumentException(grammar);
- }
-
- protected Module getSharedStateModule() {
- return new SharedStateModule();
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.etrice.core.ui.internal;
+
+import java.util.Collections;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.xtext.ui.shared.SharedStateModule;
+import org.eclipse.xtext.util.Modules2;
+import org.osgi.framework.BundleContext;
+
+import com.google.common.collect.Maps;
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+import com.google.inject.Module;
+
+/**
+ * This class was generated. Customizations should only happen in a newly
+ * introduced subclass.
+ */
+public class ConfigActivator extends AbstractUIPlugin {
+
+ public static final String ORG_ECLIPSE_ETRICE_CORE_CONFIG = "org.eclipse.etrice.core.Config";
+
+ private static final Logger logger = Logger.getLogger(ConfigActivator.class);
+
+ private static ConfigActivator INSTANCE;
+
+ private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ INSTANCE = this;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ injectors.clear();
+ INSTANCE = null;
+ super.stop(context);
+ }
+
+ public static ConfigActivator getInstance() {
+ return INSTANCE;
+ }
+
+ public Injector getInjector(String language) {
+ synchronized (injectors) {
+ Injector injector = injectors.get(language);
+ if (injector == null) {
+ injectors.put(language, injector = createInjector(language));
+ }
+ return injector;
+ }
+ }
+
+ protected Injector createInjector(String language) {
+ try {
+ Module runtimeModule = getRuntimeModule(language);
+ Module sharedStateModule = getSharedStateModule();
+ Module uiModule = getUiModule(language);
+ Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
+ return Guice.createInjector(mergedModule);
+ } catch (Exception e) {
+ logger.error("Failed to create injector for " + language);
+ logger.error(e.getMessage(), e);
+ throw new RuntimeException("Failed to create injector for " + language, e);
+ }
+ }
+
+ protected Module getRuntimeModule(String grammar) {
+ if (ORG_ECLIPSE_ETRICE_CORE_CONFIG.equals(grammar)) {
+ return new org.eclipse.etrice.core.ConfigRuntimeModule();
+ }
+
+ throw new IllegalArgumentException(grammar);
+ }
+
+ protected Module getUiModule(String grammar) {
+ if (ORG_ECLIPSE_ETRICE_CORE_CONFIG.equals(grammar)) {
+ return new org.eclipse.etrice.core.ui.ConfigUiModule(this);
+ }
+
+ throw new IllegalArgumentException(grammar);
+ }
+
+ protected Module getSharedStateModule() {
+ return new SharedStateModule();
+ }
+
+}
diff --git a/plugins/org.eclipse.etrice.core.config/META-INF/MANIFEST.MF b/plugins/org.eclipse.etrice.core.config/META-INF/MANIFEST.MF
index 821357c70..83f6f9205 100644
--- a/plugins/org.eclipse.etrice.core.config/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.etrice.core.config/META-INF/MANIFEST.MF
@@ -5,19 +5,20 @@ Bundle-Vendor: eTrice (Incubation)
Bundle-Version: 0.2.0.qualifier
Bundle-SymbolicName: org.eclipse.etrice.core.config; singleton:=true
Bundle-ActivationPolicy: lazy
-Require-Bundle: org.eclipse.xtext;bundle-version="2.1.0";visibility:=reexport,
- org.eclipse.xtext.xbase;bundle-version="2.1.0";resolution:=optional;visibility:=reexport,
+Require-Bundle: org.eclipse.xtext;bundle-version="2.1.1";visibility:=reexport,
+ org.eclipse.xtext.xbase;bundle-version="2.1.1";resolution:=optional;visibility:=reexport,
org.apache.log4j;bundle-version="1.2.15";visibility:=reexport,
org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional;visibility:=reexport,
- org.eclipse.xtext.generator;resolution:=optional,
+ org.eclipse.xtext.generator;bundle-version="2.1.1";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.xtext.util;bundle-version="2.1.1",
+ org.eclipse.xtext.xbase.lib;bundle-version="2.1.1",
org.eclipse.emf.ecore,
org.eclipse.emf.common,
org.antlr.runtime,
- org.eclipse.xtext.common.types,
+ org.eclipse.xtext.common.types;bundle-version="2.1.1",
org.eclipse.etrice.core.room;bundle-version="0.2.0"
Import-Package: org.apache.log4j,
org.apache.commons.logging,
diff --git a/plugins/org.eclipse.etrice.core.config/plugin.xml_gen b/plugins/org.eclipse.etrice.core.config/plugin.xml_gen
index 86ac574da..e1d038f34 100644
--- a/plugins/org.eclipse.etrice.core.config/plugin.xml_gen
+++ b/plugins/org.eclipse.etrice.core.config/plugin.xml_gen
@@ -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/core/Config"
- class = "org.eclipse.etrice.core.config.ConfigPackage"
- genModel = "org/eclipse/etrice/core/Config.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/core/Config"
+ class = "org.eclipse.etrice.core.config.ConfigPackage"
+ genModel = "org/eclipse/etrice/core/Config.genmodel" />
+
+ </extension>
+
+
+
+
+</plugin>
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java
index 61110b1ad..c1bdce9cb 100644
--- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java
+++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java
@@ -1,162 +1,162 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.etrice.core;
-
-import java.util.Properties;
-
-import org.eclipse.xtext.Constants;
-import org.eclipse.xtext.service.DefaultRuntimeModule;
-
-import com.google.inject.Binder;
-import com.google.inject.name.Names;
-
-/**
- * Manual modifications go to {org.eclipse.etrice.core.ConfigRuntimeModule}
- */
- @SuppressWarnings("all")
-public abstract class AbstractConfigRuntimeModule extends DefaultRuntimeModule {
-
- protected Properties properties = null;
-
- @Override
- public void configure(Binder binder) {
- properties = tryBindProperties(binder, "org/eclipse/etrice/core/Config.properties");
- super.configure(binder);
- }
-
- public void configureLanguageName(Binder binder) {
- binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.etrice.core.Config");
- }
-
- public void configureFileExtensions(Binder binder) {
- if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
- binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("config");
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public java.lang.ClassLoader bindClassLoaderToInstance() {
- return getClass().getClassLoader();
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
- return org.eclipse.etrice.core.services.ConfigGrammarAccess.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
- return org.eclipse.etrice.core.serializer.ConfigSemanticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
- return org.eclipse.etrice.core.serializer.ConfigSyntacticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
- return org.eclipse.xtext.serializer.impl.Serializer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
- return org.eclipse.etrice.core.parser.antlr.ConfigParser.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
- return org.eclipse.etrice.core.parser.antlr.ConfigAntlrTokenFileProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
- return org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public com.google.inject.Provider<org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer> provideInternalConfigLexer() {
- return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureRuntimeLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.IUnorderedGroupHelper> bindIUnorderedGroupHelper() {
- return org.eclipse.xtext.parser.antlr.UnorderedGroupHelper.class;
- }
-
- // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
- @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.etrice.core.validation.ConfigJavaValidator> bindConfigJavaValidator() {
- return org.eclipse.etrice.core.validation.ConfigJavaValidator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
- return org.eclipse.etrice.core.scoping.ConfigScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.SimpleLocalScopeProvider.class);
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
- return org.eclipse.xtext.scoping.impl.ImportUriGlobalScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
- binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
- return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
- return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
- return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptions(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
- return org.eclipse.etrice.core.generator.ConfigGenerator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
- public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
- return org.eclipse.etrice.core.formatting.ConfigFormatter.class;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.etrice.core;
+
+import java.util.Properties;
+
+import org.eclipse.xtext.Constants;
+import org.eclipse.xtext.service.DefaultRuntimeModule;
+
+import com.google.inject.Binder;
+import com.google.inject.name.Names;
+
+/**
+ * Manual modifications go to {org.eclipse.etrice.core.ConfigRuntimeModule}
+ */
+ @SuppressWarnings("all")
+public abstract class AbstractConfigRuntimeModule extends DefaultRuntimeModule {
+
+ protected Properties properties = null;
+
+ @Override
+ public void configure(Binder binder) {
+ properties = tryBindProperties(binder, "org/eclipse/etrice/core/Config.properties");
+ super.configure(binder);
+ }
+
+ public void configureLanguageName(Binder binder) {
+ binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.etrice.core.Config");
+ }
+
+ public void configureFileExtensions(Binder binder) {
+ if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
+ binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("config");
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public java.lang.ClassLoader bindClassLoaderToInstance() {
+ return getClass().getClassLoader();
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
+ return org.eclipse.etrice.core.services.ConfigGrammarAccess.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
+ return org.eclipse.etrice.core.serializer.ConfigSemanticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
+ return org.eclipse.etrice.core.serializer.ConfigSyntacticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
+ return org.eclipse.xtext.serializer.impl.Serializer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
+ return org.eclipse.etrice.core.parser.antlr.ConfigParser.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
+ return org.eclipse.etrice.core.parser.antlr.ConfigAntlrTokenFileProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
+ return org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public com.google.inject.Provider<org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer> provideInternalConfigLexer() {
+ return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureRuntimeLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.IUnorderedGroupHelper> bindIUnorderedGroupHelper() {
+ return org.eclipse.xtext.parser.antlr.UnorderedGroupHelper.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
+ @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.etrice.core.validation.ConfigJavaValidator> bindConfigJavaValidator() {
+ return org.eclipse.etrice.core.validation.ConfigJavaValidator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
+ return org.eclipse.etrice.core.scoping.ConfigScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.SimpleLocalScopeProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
+ return org.eclipse.xtext.scoping.impl.ImportUriGlobalScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
+ binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
+ return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
+ return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
+ return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptions(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
+ return org.eclipse.etrice.core.generator.ConfigGenerator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
+ public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
+ return org.eclipse.etrice.core.formatting.ConfigFormatter.class;
+ }
+
+}
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/ConfigStandaloneSetupGenerated.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/ConfigStandaloneSetupGenerated.java
index 4651430a3..d31b31c64 100644
--- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/ConfigStandaloneSetupGenerated.java
+++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/ConfigStandaloneSetupGenerated.java
@@ -1,43 +1,43 @@
-
-package org.eclipse.etrice.core;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.ISetup;
-import org.eclipse.emf.ecore.resource.Resource;
-
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-
-/**
- * Generated from StandaloneSetup.xpt!
- */
-@SuppressWarnings("all")
-public class ConfigStandaloneSetupGenerated implements ISetup {
-
- public Injector createInjectorAndDoEMFRegistration() {
- org.eclipse.xtext.common.TerminalsStandaloneSetup.doSetup();
-
- Injector injector = createInjector();
- register(injector);
- return injector;
- }
-
- public Injector createInjector() {
- return Guice.createInjector(new org.eclipse.etrice.core.ConfigRuntimeModule());
- }
-
- public void register(Injector injector) {
- if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/etrice/core/Config")) {
- EPackage.Registry.INSTANCE.put("http://www.eclipse.org/etrice/core/Config", org.eclipse.etrice.core.config.ConfigPackage.eINSTANCE);
- }
-
- org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
- org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("config", resourceFactory);
- org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("config", serviceProvider);
-
-
-
-
- }
-}
+
+package org.eclipse.etrice.core;
+
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.xtext.ISetup;
+import org.eclipse.emf.ecore.resource.Resource;
+
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+
+/**
+ * Generated from StandaloneSetup.xpt!
+ */
+@SuppressWarnings("all")
+public class ConfigStandaloneSetupGenerated implements ISetup {
+
+ public Injector createInjectorAndDoEMFRegistration() {
+ org.eclipse.xtext.common.TerminalsStandaloneSetup.doSetup();
+
+ Injector injector = createInjector();
+ register(injector);
+ return injector;
+ }
+
+ public Injector createInjector() {
+ return Guice.createInjector(new org.eclipse.etrice.core.ConfigRuntimeModule());
+ }
+
+ public void register(Injector injector) {
+ if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/etrice/core/Config")) {
+ EPackage.Registry.INSTANCE.put("http://www.eclipse.org/etrice/core/Config", org.eclipse.etrice.core.config.ConfigPackage.eINSTANCE);
+ }
+
+ org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
+ org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("config", resourceFactory);
+ org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("config", serviceProvider);
+
+
+
+
+ }
+}
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java
index 12c5938be..e9fb70202 100644
--- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java
+++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java
@@ -1,1661 +1,1661 @@
-/*
-* generated by Xtext
-*/
-
-package org.eclipse.etrice.core.services;
-
-import com.google.inject.Singleton;
-import com.google.inject.Inject;
-
-import java.util.List;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.service.GrammarProvider;
-import org.eclipse.xtext.service.AbstractElementFinder.*;
-
-import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
-
-@Singleton
-public class ConfigGrammarAccess extends AbstractGrammarElementFinder {
-
-
- public class ConfigModelElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ConfigModel");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cImportsAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cImportsImportParserRuleCall_0_0 = (RuleCall)cImportsAssignment_0.eContents().get(0);
- private final Assignment cConfigElementsAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cConfigElementsConfigElementParserRuleCall_1_0 = (RuleCall)cConfigElementsAssignment_1.eContents().get(0);
-
- /// *
- // * Postprocessor:
- // * getActor(Class|Instance)Config()
- // * / ConfigModel:
- //
- // imports+=Import* configElements+=ConfigElement*;
- public ParserRule getRule() { return rule; }
-
- //imports+=Import* configElements+=ConfigElement*
- public Group getGroup() { return cGroup; }
-
- //imports+=Import*
- public Assignment getImportsAssignment_0() { return cImportsAssignment_0; }
-
- //Import
- public RuleCall getImportsImportParserRuleCall_0_0() { return cImportsImportParserRuleCall_0_0; }
-
- //configElements+=ConfigElement*
- public Assignment getConfigElementsAssignment_1() { return cConfigElementsAssignment_1; }
-
- //ConfigElement
- public RuleCall getConfigElementsConfigElementParserRuleCall_1_0() { return cConfigElementsConfigElementParserRuleCall_1_0; }
- }
-
- public class ConfigElementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ConfigElement");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cActorClassConfigParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cActorInstanceConfigParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cProtocolClassConfigParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
-
- //ConfigElement:
- //
- // ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig;
- public ParserRule getRule() { return rule; }
-
- //ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ActorClassConfig
- public RuleCall getActorClassConfigParserRuleCall_0() { return cActorClassConfigParserRuleCall_0; }
-
- //ActorInstanceConfig
- public RuleCall getActorInstanceConfigParserRuleCall_1() { return cActorInstanceConfigParserRuleCall_1; }
-
- //ProtocolClassConfig
- public RuleCall getProtocolClassConfigParserRuleCall_2() { return cProtocolClassConfigParserRuleCall_2; }
- }
-
- public class ActorClassConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ActorClassConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cActorClassConfigKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cActorAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final CrossReference cActorActorClassCrossReference_1_0 = (CrossReference)cActorAssignment_1.eContents().get(0);
- private final RuleCall cActorActorClassFQNParserRuleCall_1_0_1 = (RuleCall)cActorActorClassCrossReference_1_0.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cAttributesAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cAttributesAttrClassConfigParserRuleCall_3_0 = (RuleCall)cAttributesAssignment_3.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- /// *
- // * Validation:
- // * duplicates config, attributes
- // * / ActorClassConfig:
- //
- // "ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}";
- public ParserRule getRule() { return rule; }
-
- //"ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}"
- public Group getGroup() { return cGroup; }
-
- //"ActorClassConfig"
- public Keyword getActorClassConfigKeyword_0() { return cActorClassConfigKeyword_0; }
-
- //actor=[room::ActorClass|FQN]
- public Assignment getActorAssignment_1() { return cActorAssignment_1; }
-
- //[room::ActorClass|FQN]
- public CrossReference getActorActorClassCrossReference_1_0() { return cActorActorClassCrossReference_1_0; }
-
- //FQN
- public RuleCall getActorActorClassFQNParserRuleCall_1_0_1() { return cActorActorClassFQNParserRuleCall_1_0_1; }
-
- //"{"
- public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
-
- //attributes+=AttrClassConfig*
- public Assignment getAttributesAssignment_3() { return cAttributesAssignment_3; }
-
- //AttrClassConfig
- public RuleCall getAttributesAttrClassConfigParserRuleCall_3_0() { return cAttributesAttrClassConfigParserRuleCall_3_0; }
-
- //"}"
- public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
- }
-
- public class ActorInstanceConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ActorInstanceConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cActorInstanceConfigKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cRootAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final CrossReference cRootSubSystemClassCrossReference_1_0 = (CrossReference)cRootAssignment_1.eContents().get(0);
- private final RuleCall cRootSubSystemClassFQNParserRuleCall_1_0_1 = (RuleCall)cRootSubSystemClassCrossReference_1_0.eContents().get(1);
- private final Keyword cSolidusKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cPathAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cPathRefPathParserRuleCall_3_0 = (RuleCall)cPathAssignment_3.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
- private final Assignment cAttributesAssignment_5 = (Assignment)cGroup.eContents().get(5);
- private final RuleCall cAttributesAttrInstanceConfigParserRuleCall_5_0 = (RuleCall)cAttributesAssignment_5.eContents().get(0);
- private final Assignment cPortsAssignment_6 = (Assignment)cGroup.eContents().get(6);
- private final RuleCall cPortsPortInstanceConfigParserRuleCall_6_0 = (RuleCall)cPortsAssignment_6.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
-
- /// *
- // * Validation:
- // * duplicates config, attributes
- // * valid instance reference
- // * Proposal:
- // * attributes
- // * /
- //
- //ActorInstanceConfig:
- //
- // "ActorInstanceConfig" root=[room::SubSystemClass|FQN] "/" path=RefPath "{" attributes+=AttrInstanceConfig*
- //
- // ports+=PortInstanceConfig* "}";
- public ParserRule getRule() { return rule; }
-
- //"ActorInstanceConfig" root=[room::SubSystemClass|FQN] "/" path=RefPath "{" attributes+=AttrInstanceConfig*
- //
- //ports+=PortInstanceConfig* "}"
- public Group getGroup() { return cGroup; }
-
- //"ActorInstanceConfig"
- public Keyword getActorInstanceConfigKeyword_0() { return cActorInstanceConfigKeyword_0; }
-
- //root=[room::SubSystemClass|FQN]
- public Assignment getRootAssignment_1() { return cRootAssignment_1; }
-
- //[room::SubSystemClass|FQN]
- public CrossReference getRootSubSystemClassCrossReference_1_0() { return cRootSubSystemClassCrossReference_1_0; }
-
- //FQN
- public RuleCall getRootSubSystemClassFQNParserRuleCall_1_0_1() { return cRootSubSystemClassFQNParserRuleCall_1_0_1; }
-
- //"/"
- public Keyword getSolidusKeyword_2() { return cSolidusKeyword_2; }
-
- //path=RefPath
- public Assignment getPathAssignment_3() { return cPathAssignment_3; }
-
- //RefPath
- public RuleCall getPathRefPathParserRuleCall_3_0() { return cPathRefPathParserRuleCall_3_0; }
-
- //"{"
- public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
-
- //attributes+=AttrInstanceConfig*
- public Assignment getAttributesAssignment_5() { return cAttributesAssignment_5; }
-
- //AttrInstanceConfig
- public RuleCall getAttributesAttrInstanceConfigParserRuleCall_5_0() { return cAttributesAttrInstanceConfigParserRuleCall_5_0; }
-
- //ports+=PortInstanceConfig*
- public Assignment getPortsAssignment_6() { return cPortsAssignment_6; }
-
- //PortInstanceConfig
- public RuleCall getPortsPortInstanceConfigParserRuleCall_6_0() { return cPortsPortInstanceConfigParserRuleCall_6_0; }
-
- //"}"
- public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
- }
-
- public class ProtocolClassConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ProtocolClassConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cProtocolClassConfigKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cProtocolAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final CrossReference cProtocolProtocolClassCrossReference_1_0 = (CrossReference)cProtocolAssignment_1.eContents().get(0);
- private final RuleCall cProtocolProtocolClassFQNParserRuleCall_1_0_1 = (RuleCall)cProtocolProtocolClassCrossReference_1_0.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3);
- private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0);
- private final Keyword cRegularKeyword_3_0_0 = (Keyword)cGroup_3_0.eContents().get(0);
- private final Assignment cRegularAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1);
- private final RuleCall cRegularPortClassConfigParserRuleCall_3_0_1_0 = (RuleCall)cRegularAssignment_3_0_1.eContents().get(0);
- private final Group cGroup_3_1 = (Group)cUnorderedGroup_3.eContents().get(1);
- private final Keyword cConjugateKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0);
- private final Assignment cConjugatedAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1);
- private final RuleCall cConjugatedPortClassConfigParserRuleCall_3_1_1_0 = (RuleCall)cConjugatedAssignment_3_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- //ProtocolClassConfig:
- //
- // "ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate"
- //
- // conjugated=PortClassConfig)?) "}";
- public ParserRule getRule() { return rule; }
-
- //"ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate"
- //
- //conjugated=PortClassConfig)?) "}"
- public Group getGroup() { return cGroup; }
-
- //"ProtocolClassConfig"
- public Keyword getProtocolClassConfigKeyword_0() { return cProtocolClassConfigKeyword_0; }
-
- //protocol=[room::ProtocolClass|FQN]
- public Assignment getProtocolAssignment_1() { return cProtocolAssignment_1; }
-
- //[room::ProtocolClass|FQN]
- public CrossReference getProtocolProtocolClassCrossReference_1_0() { return cProtocolProtocolClassCrossReference_1_0; }
-
- //FQN
- public RuleCall getProtocolProtocolClassFQNParserRuleCall_1_0_1() { return cProtocolProtocolClassFQNParserRuleCall_1_0_1; }
-
- //"{"
- public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
-
- //("regular" regular=PortClassConfig)? & ("conjugate" conjugated=PortClassConfig)?
- public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; }
-
- //("regular" regular=PortClassConfig)?
- public Group getGroup_3_0() { return cGroup_3_0; }
-
- //"regular"
- public Keyword getRegularKeyword_3_0_0() { return cRegularKeyword_3_0_0; }
-
- //regular=PortClassConfig
- public Assignment getRegularAssignment_3_0_1() { return cRegularAssignment_3_0_1; }
-
- //PortClassConfig
- public RuleCall getRegularPortClassConfigParserRuleCall_3_0_1_0() { return cRegularPortClassConfigParserRuleCall_3_0_1_0; }
-
- //("conjugate" conjugated=PortClassConfig)?
- public Group getGroup_3_1() { return cGroup_3_1; }
-
- //"conjugate"
- public Keyword getConjugateKeyword_3_1_0() { return cConjugateKeyword_3_1_0; }
-
- //conjugated=PortClassConfig
- public Assignment getConjugatedAssignment_3_1_1() { return cConjugatedAssignment_3_1_1; }
-
- //PortClassConfig
- public RuleCall getConjugatedPortClassConfigParserRuleCall_3_1_1_0() { return cConjugatedPortClassConfigParserRuleCall_3_1_1_0; }
-
- //"}"
- public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
- }
-
- public class PortClassConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PortClassConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cPortClassConfigAction_0 = (Action)cGroup.eContents().get(0);
- private final Keyword cPortKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cAttributesAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cAttributesAttrClassConfigParserRuleCall_3_0 = (RuleCall)cAttributesAssignment_3.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- //PortClassConfig:
- //
- // {PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}";
- public ParserRule getRule() { return rule; }
-
- //{PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}"
- public Group getGroup() { return cGroup; }
-
- //{PortClassConfig}
- public Action getPortClassConfigAction_0() { return cPortClassConfigAction_0; }
-
- //"Port"
- public Keyword getPortKeyword_1() { return cPortKeyword_1; }
-
- //"{"
- public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
-
- //attributes+=AttrClassConfig*
- public Assignment getAttributesAssignment_3() { return cAttributesAssignment_3; }
-
- //AttrClassConfig
- public RuleCall getAttributesAttrClassConfigParserRuleCall_3_0() { return cAttributesAttrClassConfigParserRuleCall_3_0; }
-
- //"}"
- public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
- }
-
- public class PortInstanceConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PortInstanceConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cInterfaceItemKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cItemAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final CrossReference cItemInterfaceItemCrossReference_1_0 = (CrossReference)cItemAssignment_1.eContents().get(0);
- private final RuleCall cItemInterfaceItemIDTerminalRuleCall_1_0_1 = (RuleCall)cItemInterfaceItemCrossReference_1_0.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cAttributesAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cAttributesAttrInstanceConfigParserRuleCall_3_0 = (RuleCall)cAttributesAssignment_3.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- //PortInstanceConfig:
- //
- // "InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}";
- public ParserRule getRule() { return rule; }
-
- //"InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}"
- public Group getGroup() { return cGroup; }
-
- //"InterfaceItem"
- public Keyword getInterfaceItemKeyword_0() { return cInterfaceItemKeyword_0; }
-
- //item=[room::InterfaceItem]
- public Assignment getItemAssignment_1() { return cItemAssignment_1; }
-
- //[room::InterfaceItem]
- public CrossReference getItemInterfaceItemCrossReference_1_0() { return cItemInterfaceItemCrossReference_1_0; }
-
- //ID
- public RuleCall getItemInterfaceItemIDTerminalRuleCall_1_0_1() { return cItemInterfaceItemIDTerminalRuleCall_1_0_1; }
-
- //"{"
- public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
-
- //attributes+=AttrInstanceConfig*
- public Assignment getAttributesAssignment_3() { return cAttributesAssignment_3; }
-
- //AttrInstanceConfig
- public RuleCall getAttributesAttrInstanceConfigParserRuleCall_3_0() { return cAttributesAttrInstanceConfigParserRuleCall_3_0; }
-
- //"}"
- public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
- }
-
- public class AttrConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AttrConfig");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cAttrClassConfigParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cAttrInstanceConfigParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- /// *
- // * Validation:
- // * correct value type
- // * Proposal:
- // * correct Literal
- // * / AttrConfig:
- //
- // AttrClassConfig | AttrInstanceConfig;
- public ParserRule getRule() { return rule; }
-
- //AttrClassConfig | AttrInstanceConfig
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //AttrClassConfig
- public RuleCall getAttrClassConfigParserRuleCall_0() { return cAttrClassConfigParserRuleCall_0; }
-
- //AttrInstanceConfig
- public RuleCall getAttrInstanceConfigParserRuleCall_1() { return cAttrInstanceConfigParserRuleCall_1; }
- }
-
- public class AttrClassConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AttrClassConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cAttrKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cAttributeAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final CrossReference cAttributeAttributeCrossReference_1_0 = (CrossReference)cAttributeAssignment_1.eContents().get(0);
- private final RuleCall cAttributeAttributeIDTerminalRuleCall_1_0_1 = (RuleCall)cAttributeAttributeCrossReference_1_0.eContents().get(1);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Keyword cEqualsSignKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
- private final Assignment cValueAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
- private final RuleCall cValueLiteralArrayParserRuleCall_2_1_0 = (RuleCall)cValueAssignment_2_1.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cLeftCurlyBracketKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final UnorderedGroup cUnorderedGroup_3_1 = (UnorderedGroup)cGroup_3.eContents().get(1);
- private final Group cGroup_3_1_0 = (Group)cUnorderedGroup_3_1.eContents().get(0);
- private final Keyword cMinKeyword_3_1_0_0 = (Keyword)cGroup_3_1_0.eContents().get(0);
- private final Keyword cEqualsSignKeyword_3_1_0_1 = (Keyword)cGroup_3_1_0.eContents().get(1);
- private final Assignment cMinAssignment_3_1_0_2 = (Assignment)cGroup_3_1_0.eContents().get(2);
- private final RuleCall cMinNumberLiteralParserRuleCall_3_1_0_2_0 = (RuleCall)cMinAssignment_3_1_0_2.eContents().get(0);
- private final Group cGroup_3_1_1 = (Group)cUnorderedGroup_3_1.eContents().get(1);
- private final Keyword cMaxKeyword_3_1_1_0 = (Keyword)cGroup_3_1_1.eContents().get(0);
- private final Keyword cEqualsSignKeyword_3_1_1_1 = (Keyword)cGroup_3_1_1.eContents().get(1);
- private final Assignment cMaxAssignment_3_1_1_2 = (Assignment)cGroup_3_1_1.eContents().get(2);
- private final RuleCall cMaxNumberLiteralParserRuleCall_3_1_1_2_0 = (RuleCall)cMaxAssignment_3_1_1_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3_2 = (Keyword)cGroup_3.eContents().get(2);
-
- /// *
- // * Validation:
- // * correct min, max type + available
- // * min <= value <= max
- // * if !value -> min <= attribute.defaultValue <= max
- // * character length
- // *
- // * /
- //
- //AttrClassConfig:
- //
- // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? & ("max" "="
- //
- // max=NumberLiteral)?) "}")?;
- public ParserRule getRule() { return rule; }
-
- //"Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? & ("max" "="
- //
- //max=NumberLiteral)?) "}")?
- public Group getGroup() { return cGroup; }
-
- //"Attr"
- public Keyword getAttrKeyword_0() { return cAttrKeyword_0; }
-
- //attribute=[room::Attribute]
- public Assignment getAttributeAssignment_1() { return cAttributeAssignment_1; }
-
- //[room::Attribute]
- public CrossReference getAttributeAttributeCrossReference_1_0() { return cAttributeAttributeCrossReference_1_0; }
-
- //ID
- public RuleCall getAttributeAttributeIDTerminalRuleCall_1_0_1() { return cAttributeAttributeIDTerminalRuleCall_1_0_1; }
-
- //("=" value=LiteralArray)?
- public Group getGroup_2() { return cGroup_2; }
-
- //"="
- public Keyword getEqualsSignKeyword_2_0() { return cEqualsSignKeyword_2_0; }
-
- //value=LiteralArray
- public Assignment getValueAssignment_2_1() { return cValueAssignment_2_1; }
-
- //LiteralArray
- public RuleCall getValueLiteralArrayParserRuleCall_2_1_0() { return cValueLiteralArrayParserRuleCall_2_1_0; }
-
- //("{" (("min" "=" min=NumberLiteral)? & ("max" "=" max=NumberLiteral)?) "}")?
- public Group getGroup_3() { return cGroup_3; }
-
- //"{"
- public Keyword getLeftCurlyBracketKeyword_3_0() { return cLeftCurlyBracketKeyword_3_0; }
-
- //("min" "=" min=NumberLiteral)? & ("max" "=" max=NumberLiteral)?
- public UnorderedGroup getUnorderedGroup_3_1() { return cUnorderedGroup_3_1; }
-
- //("min" "=" min=NumberLiteral)?
- public Group getGroup_3_1_0() { return cGroup_3_1_0; }
-
- //"min"
- public Keyword getMinKeyword_3_1_0_0() { return cMinKeyword_3_1_0_0; }
-
- //"="
- public Keyword getEqualsSignKeyword_3_1_0_1() { return cEqualsSignKeyword_3_1_0_1; }
-
- //min=NumberLiteral
- public Assignment getMinAssignment_3_1_0_2() { return cMinAssignment_3_1_0_2; }
-
- //NumberLiteral
- public RuleCall getMinNumberLiteralParserRuleCall_3_1_0_2_0() { return cMinNumberLiteralParserRuleCall_3_1_0_2_0; }
-
- //("max" "=" max=NumberLiteral)?
- public Group getGroup_3_1_1() { return cGroup_3_1_1; }
-
- //"max"
- public Keyword getMaxKeyword_3_1_1_0() { return cMaxKeyword_3_1_1_0; }
-
- //"="
- public Keyword getEqualsSignKeyword_3_1_1_1() { return cEqualsSignKeyword_3_1_1_1; }
-
- //max=NumberLiteral
- public Assignment getMaxAssignment_3_1_1_2() { return cMaxAssignment_3_1_1_2; }
-
- //NumberLiteral
- public RuleCall getMaxNumberLiteralParserRuleCall_3_1_1_2_0() { return cMaxNumberLiteralParserRuleCall_3_1_1_2_0; }
-
- //"}"
- public Keyword getRightCurlyBracketKeyword_3_2() { return cRightCurlyBracketKeyword_3_2; }
- }
-
- public class AttrInstanceConfigElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AttrInstanceConfig");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cAttrKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cAttributeAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final CrossReference cAttributeAttributeCrossReference_1_0 = (CrossReference)cAttributeAssignment_1.eContents().get(0);
- private final RuleCall cAttributeAttributeIDTerminalRuleCall_1_0_1 = (RuleCall)cAttributeAttributeCrossReference_1_0.eContents().get(1);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Keyword cEqualsSignKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
- private final Assignment cValueAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
- private final RuleCall cValueLiteralArrayParserRuleCall_2_1_0 = (RuleCall)cValueAssignment_2_1.eContents().get(0);
-
- //AttrInstanceConfig:
- //
- // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)?;
- public ParserRule getRule() { return rule; }
-
- //"Attr" attribute=[room::Attribute] ("=" value=LiteralArray)?
- public Group getGroup() { return cGroup; }
-
- //"Attr"
- public Keyword getAttrKeyword_0() { return cAttrKeyword_0; }
-
- //attribute=[room::Attribute]
- public Assignment getAttributeAssignment_1() { return cAttributeAssignment_1; }
-
- //[room::Attribute]
- public CrossReference getAttributeAttributeCrossReference_1_0() { return cAttributeAttributeCrossReference_1_0; }
-
- //ID
- public RuleCall getAttributeAttributeIDTerminalRuleCall_1_0_1() { return cAttributeAttributeIDTerminalRuleCall_1_0_1; }
-
- //("=" value=LiteralArray)?
- public Group getGroup_2() { return cGroup_2; }
-
- //"="
- public Keyword getEqualsSignKeyword_2_0() { return cEqualsSignKeyword_2_0; }
-
- //value=LiteralArray
- public Assignment getValueAssignment_2_1() { return cValueAssignment_2_1; }
-
- //LiteralArray
- public RuleCall getValueLiteralArrayParserRuleCall_2_1_0() { return cValueLiteralArrayParserRuleCall_2_1_0; }
- }
-
- public class RefPathElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RefPath");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cRefsAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cRefsIDTerminalRuleCall_0_0 = (RuleCall)cRefsAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cSolidusKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cRefsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cRefsIDTerminalRuleCall_1_1_0 = (RuleCall)cRefsAssignment_1_1.eContents().get(0);
-
- /// *
- // * Proposal:
- // * for ActorInstanceConfig
- // * / RefPath:
- //
- // refs+=ID ("/" refs+=ID)*;
- public ParserRule getRule() { return rule; }
-
- //refs+=ID ("/" refs+=ID)*
- public Group getGroup() { return cGroup; }
-
- //refs+=ID
- public Assignment getRefsAssignment_0() { return cRefsAssignment_0; }
-
- //ID
- public RuleCall getRefsIDTerminalRuleCall_0_0() { return cRefsIDTerminalRuleCall_0_0; }
-
- //("/" refs+=ID)*
- public Group getGroup_1() { return cGroup_1; }
-
- //"/"
- public Keyword getSolidusKeyword_1_0() { return cSolidusKeyword_1_0; }
-
- //refs+=ID
- public Assignment getRefsAssignment_1_1() { return cRefsAssignment_1_1; }
-
- //ID
- public RuleCall getRefsIDTerminalRuleCall_1_1_0() { return cRefsIDTerminalRuleCall_1_1_0; }
- }
-
- public class ImportElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Import");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
- private final Assignment cImportedNamespaceAssignment_1_0_0 = (Assignment)cGroup_1_0.eContents().get(0);
- private final RuleCall cImportedNamespaceImportedFQNParserRuleCall_1_0_0_0 = (RuleCall)cImportedNamespaceAssignment_1_0_0.eContents().get(0);
- private final Keyword cFromKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1);
- private final Keyword cModelKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1);
- private final Assignment cImportURIAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cImportURISTRINGTerminalRuleCall_2_0 = (RuleCall)cImportURIAssignment_2.eContents().get(0);
-
- //// -------------------- from org.eclipse.etrice.core.Room.xtext ---------------
- // Import:
- //
- // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING;
- public ParserRule getRule() { return rule; }
-
- //"import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING
- public Group getGroup() { return cGroup; }
-
- //"import"
- public Keyword getImportKeyword_0() { return cImportKeyword_0; }
-
- //importedNamespace=ImportedFQN "from" | "model"
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //importedNamespace=ImportedFQN "from"
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //importedNamespace=ImportedFQN
- public Assignment getImportedNamespaceAssignment_1_0_0() { return cImportedNamespaceAssignment_1_0_0; }
-
- //ImportedFQN
- public RuleCall getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0() { return cImportedNamespaceImportedFQNParserRuleCall_1_0_0_0; }
-
- //"from"
- public Keyword getFromKeyword_1_0_1() { return cFromKeyword_1_0_1; }
-
- //"model"
- public Keyword getModelKeyword_1_1() { return cModelKeyword_1_1; }
-
- //importURI=STRING
- public Assignment getImportURIAssignment_2() { return cImportURIAssignment_2; }
-
- //STRING
- public RuleCall getImportURISTRINGTerminalRuleCall_2_0() { return cImportURISTRINGTerminalRuleCall_2_0; }
- }
-
- public class ImportedFQNElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ImportedFQN");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cFQNParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cFullStopAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- //ImportedFQN:
- //
- // FQN ".*"?;
- public ParserRule getRule() { return rule; }
-
- //FQN ".*"?
- public Group getGroup() { return cGroup; }
-
- //FQN
- public RuleCall getFQNParserRuleCall_0() { return cFQNParserRuleCall_0; }
-
- //".*"?
- public Keyword getFullStopAsteriskKeyword_1() { return cFullStopAsteriskKeyword_1; }
- }
-
- public class FQNElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FQN");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1);
-
- //FQN:
- //
- // ID ("." ID)*;
- public ParserRule getRule() { return rule; }
-
- //ID ("." ID)*
- public Group getGroup() { return cGroup; }
-
- //ID
- public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
-
- //("." ID)*
- public Group getGroup_1() { return cGroup_1; }
-
- //"."
- public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
-
- //ID
- public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; }
- }
-
- public class LiteralArrayElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "LiteralArray");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cLiteralsAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cLiteralsLiteralParserRuleCall_0_0 = (RuleCall)cLiteralsAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cLiteralsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cLiteralsLiteralParserRuleCall_1_1_0 = (RuleCall)cLiteralsAssignment_1_1.eContents().get(0);
-
- //// -----------------------------------------------------------------------------
- // //enum Unit:
- // // N|
- // // W|
- //
- //
- //// S = 's'|
- // // KG = 'kg'|
- // // M = 'm'|
- // // C|
- // // NM|
- // // RPM|
- // // V|
- // // A|
- // // HZ = 'Hz'|
- // // KW
- // //;
- //
- //
- //// LiteralArray = BooleanLiteral+|NumberLiteral+
- // // LiteralArray = StringLiteral
- // LiteralArray:
- //
- // literals+=Literal ("," literals+=Literal)*;
- public ParserRule getRule() { return rule; }
-
- //literals+=Literal ("," literals+=Literal)*
- public Group getGroup() { return cGroup; }
-
- //literals+=Literal
- public Assignment getLiteralsAssignment_0() { return cLiteralsAssignment_0; }
-
- //Literal
- public RuleCall getLiteralsLiteralParserRuleCall_0_0() { return cLiteralsLiteralParserRuleCall_0_0; }
-
- //("," literals+=Literal)*
- public Group getGroup_1() { return cGroup_1; }
-
- //","
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //literals+=Literal
- public Assignment getLiteralsAssignment_1_1() { return cLiteralsAssignment_1_1; }
-
- //Literal
- public RuleCall getLiteralsLiteralParserRuleCall_1_1_0() { return cLiteralsLiteralParserRuleCall_1_1_0; }
- }
-
- public class LiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Literal");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cBooleanLiteralParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cNumberLiteralParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cStringLiteralParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
-
- //// Value Types for Attributes
- // Literal:
- //
- // BooleanLiteral | NumberLiteral | StringLiteral;
- public ParserRule getRule() { return rule; }
-
- //BooleanLiteral | NumberLiteral | StringLiteral
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //BooleanLiteral
- public RuleCall getBooleanLiteralParserRuleCall_0() { return cBooleanLiteralParserRuleCall_0; }
-
- //NumberLiteral
- public RuleCall getNumberLiteralParserRuleCall_1() { return cNumberLiteralParserRuleCall_1; }
-
- //StringLiteral
- public RuleCall getStringLiteralParserRuleCall_2() { return cStringLiteralParserRuleCall_2; }
- }
-
- public class BooleanLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiteral");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cBooleanLiteralAction_0 = (Action)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Keyword cFalseKeyword_1_0 = (Keyword)cAlternatives_1.eContents().get(0);
- private final Assignment cIsTrueAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
- private final Keyword cIsTrueTrueKeyword_1_1_0 = (Keyword)cIsTrueAssignment_1_1.eContents().get(0);
-
- //BooleanLiteral:
- //
- // {BooleanLiteral} ("false" | isTrue?="true");
- public ParserRule getRule() { return rule; }
-
- //{BooleanLiteral} ("false" | isTrue?="true")
- public Group getGroup() { return cGroup; }
-
- //{BooleanLiteral}
- public Action getBooleanLiteralAction_0() { return cBooleanLiteralAction_0; }
-
- //"false" | isTrue?="true"
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //"false"
- public Keyword getFalseKeyword_1_0() { return cFalseKeyword_1_0; }
-
- //isTrue?="true"
- public Assignment getIsTrueAssignment_1_1() { return cIsTrueAssignment_1_1; }
-
- //"true"
- public Keyword getIsTrueTrueKeyword_1_1_0() { return cIsTrueTrueKeyword_1_1_0; }
- }
-
- public class NumberLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NumberLiteral");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cIntLiteralParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cRealLiteralParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //NumberLiteral:
- //
- // IntLiteral | RealLiteral;
- public ParserRule getRule() { return rule; }
-
- //IntLiteral | RealLiteral
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //IntLiteral
- public RuleCall getIntLiteralParserRuleCall_0() { return cIntLiteralParserRuleCall_0; }
-
- //RealLiteral
- public RuleCall getRealLiteralParserRuleCall_1() { return cRealLiteralParserRuleCall_1; }
- }
-
- public class RealLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealLiteral");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cRealLiteralAction_0 = (Action)cGroup.eContents().get(0);
- private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cValueRealParserRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
-
- //RealLiteral:
- //
- // {RealLiteral} value=Real;
- public ParserRule getRule() { return rule; }
-
- //{RealLiteral} value=Real
- public Group getGroup() { return cGroup; }
-
- //{RealLiteral}
- public Action getRealLiteralAction_0() { return cRealLiteralAction_0; }
-
- //value=Real
- public Assignment getValueAssignment_1() { return cValueAssignment_1; }
-
- //Real
- public RuleCall getValueRealParserRuleCall_1_0() { return cValueRealParserRuleCall_1_0; }
- }
-
- public class IntLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntLiteral");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cIntLiteralAction_0 = (Action)cGroup.eContents().get(0);
- private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cValueIntegerParserRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
-
- //IntLiteral:
- //
- // {IntLiteral} value=Integer;
- public ParserRule getRule() { return rule; }
-
- //{IntLiteral} value=Integer
- public Group getGroup() { return cGroup; }
-
- //{IntLiteral}
- public Action getIntLiteralAction_0() { return cIntLiteralAction_0; }
-
- //value=Integer
- public Assignment getValueAssignment_1() { return cValueAssignment_1; }
-
- //Integer
- public RuleCall getValueIntegerParserRuleCall_1_0() { return cValueIntegerParserRuleCall_1_0; }
- }
-
- public class StringLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringLiteral");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cStringLiteralAction_0 = (Action)cGroup.eContents().get(0);
- private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cValueSTRINGTerminalRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
-
- //StringLiteral:
- //
- // {StringLiteral} value=STRING;
- public ParserRule getRule() { return rule; }
-
- //{StringLiteral} value=STRING
- public Group getGroup() { return cGroup; }
-
- //{StringLiteral}
- public Action getStringLiteralAction_0() { return cStringLiteralAction_0; }
-
- //value=STRING
- public Assignment getValueAssignment_1() { return cValueAssignment_1; }
-
- //STRING
- public RuleCall getValueSTRINGTerminalRuleCall_1_0() { return cValueSTRINGTerminalRuleCall_1_0; }
- }
-
- public class IntegerElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Integer");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cSignedIntegerParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cHexadecimalParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //Integer returns ecore::EInt:
- //
- // SignedInteger | Hexadecimal;
- public ParserRule getRule() { return rule; }
-
- //SignedInteger | Hexadecimal
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //SignedInteger
- public RuleCall getSignedIntegerParserRuleCall_0() { return cSignedIntegerParserRuleCall_0; }
-
- //Hexadecimal
- public RuleCall getHexadecimalParserRuleCall_1() { return cHexadecimalParserRuleCall_1; }
- }
-
- public class SignedIntegerElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SignedInteger");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
-
- //SignedInteger hidden():
- //
- // ("+" | "-")? INT;
- public ParserRule getRule() { return rule; }
-
- //("+" | "-")? INT
- public Group getGroup() { return cGroup; }
-
- //("+" | "-")?
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //"+"
- public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
-
- //"-"
- public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
- }
-
- public class HexadecimalElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Hexadecimal");
- private final RuleCall cHEXTerminalRuleCall = (RuleCall)rule.eContents().get(1);
-
- //Hexadecimal hidden():
- //
- // HEX;
- public ParserRule getRule() { return rule; }
-
- //HEX
- public RuleCall getHEXTerminalRuleCall() { return cHEXTerminalRuleCall; }
- }
-
- public class RealElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Real");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cDecimalParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cDotDecimalParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cDecimalDotParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cDecimalExpParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
-
- //Real returns ecore::EDouble:
- //
- // Decimal | DotDecimal | DecimalDot | DecimalExp;
- public ParserRule getRule() { return rule; }
-
- //Decimal | DotDecimal | DecimalDot | DecimalExp
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //Decimal
- public RuleCall getDecimalParserRuleCall_0() { return cDecimalParserRuleCall_0; }
-
- //DotDecimal
- public RuleCall getDotDecimalParserRuleCall_1() { return cDotDecimalParserRuleCall_1; }
-
- //DecimalDot
- public RuleCall getDecimalDotParserRuleCall_2() { return cDecimalDotParserRuleCall_2; }
-
- //DecimalExp
- public RuleCall getDecimalExpParserRuleCall_3() { return cDecimalExpParserRuleCall_3; }
- }
-
- public class DecimalElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Decimal");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final RuleCall cINTTerminalRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
-
- //Decimal hidden():
- //
- // ("+" | "-")? INT "." INT;
- public ParserRule getRule() { return rule; }
-
- //("+" | "-")? INT "." INT
- public Group getGroup() { return cGroup; }
-
- //("+" | "-")?
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //"+"
- public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
-
- //"-"
- public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
-
- //"."
- public Keyword getFullStopKeyword_2() { return cFullStopKeyword_2; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_3() { return cINTTerminalRuleCall_3; }
- }
-
- public class DotDecimalElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DotDecimal");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
- private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
-
- //DotDecimal hidden():
- //
- // ("+" | "-")? "." INT;
- public ParserRule getRule() { return rule; }
-
- //("+" | "-")? "." INT
- public Group getGroup() { return cGroup; }
-
- //("+" | "-")?
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //"+"
- public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
-
- //"-"
- public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
-
- //"."
- public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_2() { return cINTTerminalRuleCall_2; }
- }
-
- public class DecimalDotElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DecimalDot");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //DecimalDot hidden():
- //
- // ("+" | "-")? INT ".";
- public ParserRule getRule() { return rule; }
-
- //("+" | "-")? INT "."
- public Group getGroup() { return cGroup; }
-
- //("+" | "-")?
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //"+"
- public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
-
- //"-"
- public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
-
- //"."
- public Keyword getFullStopKeyword_2() { return cFullStopKeyword_2; }
- }
-
- public class DecimalExpElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DecimalExp");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final RuleCall cINTTerminalRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
- private final RuleCall cIDTerminalRuleCall_4 = (RuleCall)cGroup.eContents().get(4);
- private final Alternatives cAlternatives_5 = (Alternatives)cGroup.eContents().get(5);
- private final Keyword cPlusSignKeyword_5_0 = (Keyword)cAlternatives_5.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_5_1 = (Keyword)cAlternatives_5.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_6 = (RuleCall)cGroup.eContents().get(6);
-
- //DecimalExp hidden():
- //
- // ("+" | "-")? INT "." INT ID ("+" | "-")? INT;
- public ParserRule getRule() { return rule; }
-
- //("+" | "-")? INT "." INT ID ("+" | "-")? INT
- public Group getGroup() { return cGroup; }
-
- //("+" | "-")?
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //"+"
- public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
-
- //"-"
- public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
-
- //"."
- public Keyword getFullStopKeyword_2() { return cFullStopKeyword_2; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_3() { return cINTTerminalRuleCall_3; }
-
- //ID
- public RuleCall getIDTerminalRuleCall_4() { return cIDTerminalRuleCall_4; }
-
- //("+" | "-")?
- public Alternatives getAlternatives_5() { return cAlternatives_5; }
-
- //"+"
- public Keyword getPlusSignKeyword_5_0() { return cPlusSignKeyword_5_0; }
-
- //"-"
- public Keyword getHyphenMinusKeyword_5_1() { return cHyphenMinusKeyword_5_1; }
-
- //INT
- public RuleCall getINTTerminalRuleCall_6() { return cINTTerminalRuleCall_6; }
- }
-
-
- private ConfigModelElements pConfigModel;
- private ConfigElementElements pConfigElement;
- private ActorClassConfigElements pActorClassConfig;
- private ActorInstanceConfigElements pActorInstanceConfig;
- private ProtocolClassConfigElements pProtocolClassConfig;
- private PortClassConfigElements pPortClassConfig;
- private PortInstanceConfigElements pPortInstanceConfig;
- private AttrConfigElements pAttrConfig;
- private AttrClassConfigElements pAttrClassConfig;
- private AttrInstanceConfigElements pAttrInstanceConfig;
- private RefPathElements pRefPath;
- private ImportElements pImport;
- private ImportedFQNElements pImportedFQN;
- private FQNElements pFQN;
- private LiteralArrayElements pLiteralArray;
- private LiteralElements pLiteral;
- private BooleanLiteralElements pBooleanLiteral;
- private NumberLiteralElements pNumberLiteral;
- private RealLiteralElements pRealLiteral;
- private IntLiteralElements pIntLiteral;
- private StringLiteralElements pStringLiteral;
- private IntegerElements pInteger;
- private SignedIntegerElements pSignedInteger;
- private HexadecimalElements pHexadecimal;
- private RealElements pReal;
- private DecimalElements pDecimal;
- private DotDecimalElements pDotDecimal;
- private DecimalDotElements pDecimalDot;
- private DecimalExpElements pDecimalExp;
- private TerminalRule tHEX;
-
- private final Grammar grammar;
-
- private TerminalsGrammarAccess gaTerminals;
-
- @Inject
- public ConfigGrammarAccess(GrammarProvider grammarProvider,
- TerminalsGrammarAccess gaTerminals) {
- this.grammar = internalFindGrammar(grammarProvider);
- this.gaTerminals = gaTerminals;
- }
-
- protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
- Grammar grammar = grammarProvider.getGrammar(this);
- while (grammar != null) {
- if ("org.eclipse.etrice.core.Config".equals(grammar.getName())) {
- return grammar;
- }
- List<Grammar> grammars = grammar.getUsedGrammars();
- if (!grammars.isEmpty()) {
- grammar = grammars.iterator().next();
- } else {
- return null;
- }
- }
- return grammar;
- }
-
-
- public Grammar getGrammar() {
- return grammar;
- }
-
-
- public TerminalsGrammarAccess getTerminalsGrammarAccess() {
- return gaTerminals;
- }
-
-
- /// *
- // * Postprocessor:
- // * getActor(Class|Instance)Config()
- // * / ConfigModel:
- //
- // imports+=Import* configElements+=ConfigElement*;
- public ConfigModelElements getConfigModelAccess() {
- return (pConfigModel != null) ? pConfigModel : (pConfigModel = new ConfigModelElements());
- }
-
- public ParserRule getConfigModelRule() {
- return getConfigModelAccess().getRule();
- }
-
- //ConfigElement:
- //
- // ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig;
- public ConfigElementElements getConfigElementAccess() {
- return (pConfigElement != null) ? pConfigElement : (pConfigElement = new ConfigElementElements());
- }
-
- public ParserRule getConfigElementRule() {
- return getConfigElementAccess().getRule();
- }
-
- /// *
- // * Validation:
- // * duplicates config, attributes
- // * / ActorClassConfig:
- //
- // "ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}";
- public ActorClassConfigElements getActorClassConfigAccess() {
- return (pActorClassConfig != null) ? pActorClassConfig : (pActorClassConfig = new ActorClassConfigElements());
- }
-
- public ParserRule getActorClassConfigRule() {
- return getActorClassConfigAccess().getRule();
- }
-
- /// *
- // * Validation:
- // * duplicates config, attributes
- // * valid instance reference
- // * Proposal:
- // * attributes
- // * /
- //
- //ActorInstanceConfig:
- //
- // "ActorInstanceConfig" root=[room::SubSystemClass|FQN] "/" path=RefPath "{" attributes+=AttrInstanceConfig*
- //
- // ports+=PortInstanceConfig* "}";
- public ActorInstanceConfigElements getActorInstanceConfigAccess() {
- return (pActorInstanceConfig != null) ? pActorInstanceConfig : (pActorInstanceConfig = new ActorInstanceConfigElements());
- }
-
- public ParserRule getActorInstanceConfigRule() {
- return getActorInstanceConfigAccess().getRule();
- }
-
- //ProtocolClassConfig:
- //
- // "ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate"
- //
- // conjugated=PortClassConfig)?) "}";
- public ProtocolClassConfigElements getProtocolClassConfigAccess() {
- return (pProtocolClassConfig != null) ? pProtocolClassConfig : (pProtocolClassConfig = new ProtocolClassConfigElements());
- }
-
- public ParserRule getProtocolClassConfigRule() {
- return getProtocolClassConfigAccess().getRule();
- }
-
- //PortClassConfig:
- //
- // {PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}";
- public PortClassConfigElements getPortClassConfigAccess() {
- return (pPortClassConfig != null) ? pPortClassConfig : (pPortClassConfig = new PortClassConfigElements());
- }
-
- public ParserRule getPortClassConfigRule() {
- return getPortClassConfigAccess().getRule();
- }
-
- //PortInstanceConfig:
- //
- // "InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}";
- public PortInstanceConfigElements getPortInstanceConfigAccess() {
- return (pPortInstanceConfig != null) ? pPortInstanceConfig : (pPortInstanceConfig = new PortInstanceConfigElements());
- }
-
- public ParserRule getPortInstanceConfigRule() {
- return getPortInstanceConfigAccess().getRule();
- }
-
- /// *
- // * Validation:
- // * correct value type
- // * Proposal:
- // * correct Literal
- // * / AttrConfig:
- //
- // AttrClassConfig | AttrInstanceConfig;
- public AttrConfigElements getAttrConfigAccess() {
- return (pAttrConfig != null) ? pAttrConfig : (pAttrConfig = new AttrConfigElements());
- }
-
- public ParserRule getAttrConfigRule() {
- return getAttrConfigAccess().getRule();
- }
-
- /// *
- // * Validation:
- // * correct min, max type + available
- // * min <= value <= max
- // * if !value -> min <= attribute.defaultValue <= max
- // * character length
- // *
- // * /
- //
- //AttrClassConfig:
- //
- // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? & ("max" "="
- //
- // max=NumberLiteral)?) "}")?;
- public AttrClassConfigElements getAttrClassConfigAccess() {
- return (pAttrClassConfig != null) ? pAttrClassConfig : (pAttrClassConfig = new AttrClassConfigElements());
- }
-
- public ParserRule getAttrClassConfigRule() {
- return getAttrClassConfigAccess().getRule();
- }
-
- //AttrInstanceConfig:
- //
- // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)?;
- public AttrInstanceConfigElements getAttrInstanceConfigAccess() {
- return (pAttrInstanceConfig != null) ? pAttrInstanceConfig : (pAttrInstanceConfig = new AttrInstanceConfigElements());
- }
-
- public ParserRule getAttrInstanceConfigRule() {
- return getAttrInstanceConfigAccess().getRule();
- }
-
- /// *
- // * Proposal:
- // * for ActorInstanceConfig
- // * / RefPath:
- //
- // refs+=ID ("/" refs+=ID)*;
- public RefPathElements getRefPathAccess() {
- return (pRefPath != null) ? pRefPath : (pRefPath = new RefPathElements());
- }
-
- public ParserRule getRefPathRule() {
- return getRefPathAccess().getRule();
- }
-
- //// -------------------- from org.eclipse.etrice.core.Room.xtext ---------------
- // Import:
- //
- // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING;
- public ImportElements getImportAccess() {
- return (pImport != null) ? pImport : (pImport = new ImportElements());
- }
-
- public ParserRule getImportRule() {
- return getImportAccess().getRule();
- }
-
- //ImportedFQN:
- //
- // FQN ".*"?;
- public ImportedFQNElements getImportedFQNAccess() {
- return (pImportedFQN != null) ? pImportedFQN : (pImportedFQN = new ImportedFQNElements());
- }
-
- public ParserRule getImportedFQNRule() {
- return getImportedFQNAccess().getRule();
- }
-
- //FQN:
- //
- // ID ("." ID)*;
- public FQNElements getFQNAccess() {
- return (pFQN != null) ? pFQN : (pFQN = new FQNElements());
- }
-
- public ParserRule getFQNRule() {
- return getFQNAccess().getRule();
- }
-
- //// -----------------------------------------------------------------------------
- // //enum Unit:
- // // N|
- // // W|
- //
- //
- //// S = 's'|
- // // KG = 'kg'|
- // // M = 'm'|
- // // C|
- // // NM|
- // // RPM|
- // // V|
- // // A|
- // // HZ = 'Hz'|
- // // KW
- // //;
- //
- //
- //// LiteralArray = BooleanLiteral+|NumberLiteral+
- // // LiteralArray = StringLiteral
- // LiteralArray:
- //
- // literals+=Literal ("," literals+=Literal)*;
- public LiteralArrayElements getLiteralArrayAccess() {
- return (pLiteralArray != null) ? pLiteralArray : (pLiteralArray = new LiteralArrayElements());
- }
-
- public ParserRule getLiteralArrayRule() {
- return getLiteralArrayAccess().getRule();
- }
-
- //// Value Types for Attributes
- // Literal:
- //
- // BooleanLiteral | NumberLiteral | StringLiteral;
- public LiteralElements getLiteralAccess() {
- return (pLiteral != null) ? pLiteral : (pLiteral = new LiteralElements());
- }
-
- public ParserRule getLiteralRule() {
- return getLiteralAccess().getRule();
- }
-
- //BooleanLiteral:
- //
- // {BooleanLiteral} ("false" | isTrue?="true");
- public BooleanLiteralElements getBooleanLiteralAccess() {
- return (pBooleanLiteral != null) ? pBooleanLiteral : (pBooleanLiteral = new BooleanLiteralElements());
- }
-
- public ParserRule getBooleanLiteralRule() {
- return getBooleanLiteralAccess().getRule();
- }
-
- //NumberLiteral:
- //
- // IntLiteral | RealLiteral;
- public NumberLiteralElements getNumberLiteralAccess() {
- return (pNumberLiteral != null) ? pNumberLiteral : (pNumberLiteral = new NumberLiteralElements());
- }
-
- public ParserRule getNumberLiteralRule() {
- return getNumberLiteralAccess().getRule();
- }
-
- //RealLiteral:
- //
- // {RealLiteral} value=Real;
- public RealLiteralElements getRealLiteralAccess() {
- return (pRealLiteral != null) ? pRealLiteral : (pRealLiteral = new RealLiteralElements());
- }
-
- public ParserRule getRealLiteralRule() {
- return getRealLiteralAccess().getRule();
- }
-
- //IntLiteral:
- //
- // {IntLiteral} value=Integer;
- public IntLiteralElements getIntLiteralAccess() {
- return (pIntLiteral != null) ? pIntLiteral : (pIntLiteral = new IntLiteralElements());
- }
-
- public ParserRule getIntLiteralRule() {
- return getIntLiteralAccess().getRule();
- }
-
- //StringLiteral:
- //
- // {StringLiteral} value=STRING;
- public StringLiteralElements getStringLiteralAccess() {
- return (pStringLiteral != null) ? pStringLiteral : (pStringLiteral = new StringLiteralElements());
- }
-
- public ParserRule getStringLiteralRule() {
- return getStringLiteralAccess().getRule();
- }
-
- //Integer returns ecore::EInt:
- //
- // SignedInteger | Hexadecimal;
- public IntegerElements getIntegerAccess() {
- return (pInteger != null) ? pInteger : (pInteger = new IntegerElements());
- }
-
- public ParserRule getIntegerRule() {
- return getIntegerAccess().getRule();
- }
-
- //SignedInteger hidden():
- //
- // ("+" | "-")? INT;
- public SignedIntegerElements getSignedIntegerAccess() {
- return (pSignedInteger != null) ? pSignedInteger : (pSignedInteger = new SignedIntegerElements());
- }
-
- public ParserRule getSignedIntegerRule() {
- return getSignedIntegerAccess().getRule();
- }
-
- //Hexadecimal hidden():
- //
- // HEX;
- public HexadecimalElements getHexadecimalAccess() {
- return (pHexadecimal != null) ? pHexadecimal : (pHexadecimal = new HexadecimalElements());
- }
-
- public ParserRule getHexadecimalRule() {
- return getHexadecimalAccess().getRule();
- }
-
- //Real returns ecore::EDouble:
- //
- // Decimal | DotDecimal | DecimalDot | DecimalExp;
- public RealElements getRealAccess() {
- return (pReal != null) ? pReal : (pReal = new RealElements());
- }
-
- public ParserRule getRealRule() {
- return getRealAccess().getRule();
- }
-
- //Decimal hidden():
- //
- // ("+" | "-")? INT "." INT;
- public DecimalElements getDecimalAccess() {
- return (pDecimal != null) ? pDecimal : (pDecimal = new DecimalElements());
- }
-
- public ParserRule getDecimalRule() {
- return getDecimalAccess().getRule();
- }
-
- //DotDecimal hidden():
- //
- // ("+" | "-")? "." INT;
- public DotDecimalElements getDotDecimalAccess() {
- return (pDotDecimal != null) ? pDotDecimal : (pDotDecimal = new DotDecimalElements());
- }
-
- public ParserRule getDotDecimalRule() {
- return getDotDecimalAccess().getRule();
- }
-
- //DecimalDot hidden():
- //
- // ("+" | "-")? INT ".";
- public DecimalDotElements getDecimalDotAccess() {
- return (pDecimalDot != null) ? pDecimalDot : (pDecimalDot = new DecimalDotElements());
- }
-
- public ParserRule getDecimalDotRule() {
- return getDecimalDotAccess().getRule();
- }
-
- //DecimalExp hidden():
- //
- // ("+" | "-")? INT "." INT ID ("+" | "-")? INT;
- public DecimalExpElements getDecimalExpAccess() {
- return (pDecimalExp != null) ? pDecimalExp : (pDecimalExp = new DecimalExpElements());
- }
-
- public ParserRule getDecimalExpRule() {
- return getDecimalExpAccess().getRule();
- }
-
- ////DecimalPosExp hidden():
- // // ('+' | '-')? INT '.' INT ID;
- // terminal HEX:
- //
- // ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F")+;
- public TerminalRule getHEXRule() {
- return (tHEX != null) ? tHEX : (tHEX = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "HEX"));
- }
-
- //terminal ID:
- //
- // "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*;
- public TerminalRule getIDRule() {
- return gaTerminals.getIDRule();
- }
-
- //terminal INT returns ecore::EInt:
- //
- // "0".."9"+;
- public TerminalRule getINTRule() {
- return gaTerminals.getINTRule();
- }
-
- //terminal STRING:
- //
- // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" | "\'" ("\\" ("b" | "t" |
- //
- // "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'";
- public TerminalRule getSTRINGRule() {
- return gaTerminals.getSTRINGRule();
- }
-
- //terminal ML_COMMENT:
- //
- // "/ *"->"* /";
- public TerminalRule getML_COMMENTRule() {
- return gaTerminals.getML_COMMENTRule();
- }
-
- //terminal SL_COMMENT:
- //
- // "//" !("\n" | "\r")* ("\r"? "\n")?;
- public TerminalRule getSL_COMMENTRule() {
- return gaTerminals.getSL_COMMENTRule();
- }
-
- //terminal WS:
- //
- // (" " | "\t" | "\r" | "\n")+;
- public TerminalRule getWSRule() {
- return gaTerminals.getWSRule();
- }
-
- //terminal ANY_OTHER:
- //
- // .;
- public TerminalRule getANY_OTHERRule() {
- return gaTerminals.getANY_OTHERRule();
- }
-}
+/*
+* generated by Xtext
+*/
+
+package org.eclipse.etrice.core.services;
+
+import com.google.inject.Singleton;
+import com.google.inject.Inject;
+
+import java.util.List;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.service.GrammarProvider;
+import org.eclipse.xtext.service.AbstractElementFinder.*;
+
+import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
+
+@Singleton
+public class ConfigGrammarAccess extends AbstractGrammarElementFinder {
+
+
+ public class ConfigModelElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ConfigModel");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cImportsAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cImportsImportParserRuleCall_0_0 = (RuleCall)cImportsAssignment_0.eContents().get(0);
+ private final Assignment cConfigElementsAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cConfigElementsConfigElementParserRuleCall_1_0 = (RuleCall)cConfigElementsAssignment_1.eContents().get(0);
+
+ /// *
+ // * Postprocessor:
+ // * getActor(Class|Instance)Config()
+ // * / ConfigModel:
+ //
+ // imports+=Import* configElements+=ConfigElement*;
+ public ParserRule getRule() { return rule; }
+
+ //imports+=Import* configElements+=ConfigElement*
+ public Group getGroup() { return cGroup; }
+
+ //imports+=Import*
+ public Assignment getImportsAssignment_0() { return cImportsAssignment_0; }
+
+ //Import
+ public RuleCall getImportsImportParserRuleCall_0_0() { return cImportsImportParserRuleCall_0_0; }
+
+ //configElements+=ConfigElement*
+ public Assignment getConfigElementsAssignment_1() { return cConfigElementsAssignment_1; }
+
+ //ConfigElement
+ public RuleCall getConfigElementsConfigElementParserRuleCall_1_0() { return cConfigElementsConfigElementParserRuleCall_1_0; }
+ }
+
+ public class ConfigElementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ConfigElement");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cActorClassConfigParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cActorInstanceConfigParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cProtocolClassConfigParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+
+ //ConfigElement:
+ //
+ // ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig;
+ public ParserRule getRule() { return rule; }
+
+ //ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ActorClassConfig
+ public RuleCall getActorClassConfigParserRuleCall_0() { return cActorClassConfigParserRuleCall_0; }
+
+ //ActorInstanceConfig
+ public RuleCall getActorInstanceConfigParserRuleCall_1() { return cActorInstanceConfigParserRuleCall_1; }
+
+ //ProtocolClassConfig
+ public RuleCall getProtocolClassConfigParserRuleCall_2() { return cProtocolClassConfigParserRuleCall_2; }
+ }
+
+ public class ActorClassConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ActorClassConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cActorClassConfigKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cActorAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cActorActorClassCrossReference_1_0 = (CrossReference)cActorAssignment_1.eContents().get(0);
+ private final RuleCall cActorActorClassFQNParserRuleCall_1_0_1 = (RuleCall)cActorActorClassCrossReference_1_0.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cAttributesAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cAttributesAttrClassConfigParserRuleCall_3_0 = (RuleCall)cAttributesAssignment_3.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ /// *
+ // * Validation:
+ // * duplicates config, attributes
+ // * / ActorClassConfig:
+ //
+ // "ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}";
+ public ParserRule getRule() { return rule; }
+
+ //"ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}"
+ public Group getGroup() { return cGroup; }
+
+ //"ActorClassConfig"
+ public Keyword getActorClassConfigKeyword_0() { return cActorClassConfigKeyword_0; }
+
+ //actor=[room::ActorClass|FQN]
+ public Assignment getActorAssignment_1() { return cActorAssignment_1; }
+
+ //[room::ActorClass|FQN]
+ public CrossReference getActorActorClassCrossReference_1_0() { return cActorActorClassCrossReference_1_0; }
+
+ //FQN
+ public RuleCall getActorActorClassFQNParserRuleCall_1_0_1() { return cActorActorClassFQNParserRuleCall_1_0_1; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
+
+ //attributes+=AttrClassConfig*
+ public Assignment getAttributesAssignment_3() { return cAttributesAssignment_3; }
+
+ //AttrClassConfig
+ public RuleCall getAttributesAttrClassConfigParserRuleCall_3_0() { return cAttributesAttrClassConfigParserRuleCall_3_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
+ }
+
+ public class ActorInstanceConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ActorInstanceConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cActorInstanceConfigKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cRootAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cRootSubSystemClassCrossReference_1_0 = (CrossReference)cRootAssignment_1.eContents().get(0);
+ private final RuleCall cRootSubSystemClassFQNParserRuleCall_1_0_1 = (RuleCall)cRootSubSystemClassCrossReference_1_0.eContents().get(1);
+ private final Keyword cSolidusKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cPathAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cPathRefPathParserRuleCall_3_0 = (RuleCall)cPathAssignment_3.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+ private final Assignment cAttributesAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cAttributesAttrInstanceConfigParserRuleCall_5_0 = (RuleCall)cAttributesAssignment_5.eContents().get(0);
+ private final Assignment cPortsAssignment_6 = (Assignment)cGroup.eContents().get(6);
+ private final RuleCall cPortsPortInstanceConfigParserRuleCall_6_0 = (RuleCall)cPortsAssignment_6.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
+
+ /// *
+ // * Validation:
+ // * duplicates config, attributes
+ // * valid instance reference
+ // * Proposal:
+ // * attributes
+ // * /
+ //
+ //ActorInstanceConfig:
+ //
+ // "ActorInstanceConfig" root=[room::SubSystemClass|FQN] "/" path=RefPath "{" attributes+=AttrInstanceConfig*
+ //
+ // ports+=PortInstanceConfig* "}";
+ public ParserRule getRule() { return rule; }
+
+ //"ActorInstanceConfig" root=[room::SubSystemClass|FQN] "/" path=RefPath "{" attributes+=AttrInstanceConfig*
+ //
+ //ports+=PortInstanceConfig* "}"
+ public Group getGroup() { return cGroup; }
+
+ //"ActorInstanceConfig"
+ public Keyword getActorInstanceConfigKeyword_0() { return cActorInstanceConfigKeyword_0; }
+
+ //root=[room::SubSystemClass|FQN]
+ public Assignment getRootAssignment_1() { return cRootAssignment_1; }
+
+ //[room::SubSystemClass|FQN]
+ public CrossReference getRootSubSystemClassCrossReference_1_0() { return cRootSubSystemClassCrossReference_1_0; }
+
+ //FQN
+ public RuleCall getRootSubSystemClassFQNParserRuleCall_1_0_1() { return cRootSubSystemClassFQNParserRuleCall_1_0_1; }
+
+ //"/"
+ public Keyword getSolidusKeyword_2() { return cSolidusKeyword_2; }
+
+ //path=RefPath
+ public Assignment getPathAssignment_3() { return cPathAssignment_3; }
+
+ //RefPath
+ public RuleCall getPathRefPathParserRuleCall_3_0() { return cPathRefPathParserRuleCall_3_0; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
+
+ //attributes+=AttrInstanceConfig*
+ public Assignment getAttributesAssignment_5() { return cAttributesAssignment_5; }
+
+ //AttrInstanceConfig
+ public RuleCall getAttributesAttrInstanceConfigParserRuleCall_5_0() { return cAttributesAttrInstanceConfigParserRuleCall_5_0; }
+
+ //ports+=PortInstanceConfig*
+ public Assignment getPortsAssignment_6() { return cPortsAssignment_6; }
+
+ //PortInstanceConfig
+ public RuleCall getPortsPortInstanceConfigParserRuleCall_6_0() { return cPortsPortInstanceConfigParserRuleCall_6_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
+ }
+
+ public class ProtocolClassConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ProtocolClassConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cProtocolClassConfigKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cProtocolAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cProtocolProtocolClassCrossReference_1_0 = (CrossReference)cProtocolAssignment_1.eContents().get(0);
+ private final RuleCall cProtocolProtocolClassFQNParserRuleCall_1_0_1 = (RuleCall)cProtocolProtocolClassCrossReference_1_0.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3);
+ private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0);
+ private final Keyword cRegularKeyword_3_0_0 = (Keyword)cGroup_3_0.eContents().get(0);
+ private final Assignment cRegularAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1);
+ private final RuleCall cRegularPortClassConfigParserRuleCall_3_0_1_0 = (RuleCall)cRegularAssignment_3_0_1.eContents().get(0);
+ private final Group cGroup_3_1 = (Group)cUnorderedGroup_3.eContents().get(1);
+ private final Keyword cConjugateKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0);
+ private final Assignment cConjugatedAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1);
+ private final RuleCall cConjugatedPortClassConfigParserRuleCall_3_1_1_0 = (RuleCall)cConjugatedAssignment_3_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ //ProtocolClassConfig:
+ //
+ // "ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate"
+ //
+ // conjugated=PortClassConfig)?) "}";
+ public ParserRule getRule() { return rule; }
+
+ //"ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate"
+ //
+ //conjugated=PortClassConfig)?) "}"
+ public Group getGroup() { return cGroup; }
+
+ //"ProtocolClassConfig"
+ public Keyword getProtocolClassConfigKeyword_0() { return cProtocolClassConfigKeyword_0; }
+
+ //protocol=[room::ProtocolClass|FQN]
+ public Assignment getProtocolAssignment_1() { return cProtocolAssignment_1; }
+
+ //[room::ProtocolClass|FQN]
+ public CrossReference getProtocolProtocolClassCrossReference_1_0() { return cProtocolProtocolClassCrossReference_1_0; }
+
+ //FQN
+ public RuleCall getProtocolProtocolClassFQNParserRuleCall_1_0_1() { return cProtocolProtocolClassFQNParserRuleCall_1_0_1; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
+
+ //("regular" regular=PortClassConfig)? & ("conjugate" conjugated=PortClassConfig)?
+ public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; }
+
+ //("regular" regular=PortClassConfig)?
+ public Group getGroup_3_0() { return cGroup_3_0; }
+
+ //"regular"
+ public Keyword getRegularKeyword_3_0_0() { return cRegularKeyword_3_0_0; }
+
+ //regular=PortClassConfig
+ public Assignment getRegularAssignment_3_0_1() { return cRegularAssignment_3_0_1; }
+
+ //PortClassConfig
+ public RuleCall getRegularPortClassConfigParserRuleCall_3_0_1_0() { return cRegularPortClassConfigParserRuleCall_3_0_1_0; }
+
+ //("conjugate" conjugated=PortClassConfig)?
+ public Group getGroup_3_1() { return cGroup_3_1; }
+
+ //"conjugate"
+ public Keyword getConjugateKeyword_3_1_0() { return cConjugateKeyword_3_1_0; }
+
+ //conjugated=PortClassConfig
+ public Assignment getConjugatedAssignment_3_1_1() { return cConjugatedAssignment_3_1_1; }
+
+ //PortClassConfig
+ public RuleCall getConjugatedPortClassConfigParserRuleCall_3_1_1_0() { return cConjugatedPortClassConfigParserRuleCall_3_1_1_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
+ }
+
+ public class PortClassConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PortClassConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cPortClassConfigAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cPortKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cAttributesAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cAttributesAttrClassConfigParserRuleCall_3_0 = (RuleCall)cAttributesAssignment_3.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ //PortClassConfig:
+ //
+ // {PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}";
+ public ParserRule getRule() { return rule; }
+
+ //{PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}"
+ public Group getGroup() { return cGroup; }
+
+ //{PortClassConfig}
+ public Action getPortClassConfigAction_0() { return cPortClassConfigAction_0; }
+
+ //"Port"
+ public Keyword getPortKeyword_1() { return cPortKeyword_1; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
+
+ //attributes+=AttrClassConfig*
+ public Assignment getAttributesAssignment_3() { return cAttributesAssignment_3; }
+
+ //AttrClassConfig
+ public RuleCall getAttributesAttrClassConfigParserRuleCall_3_0() { return cAttributesAttrClassConfigParserRuleCall_3_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
+ }
+
+ public class PortInstanceConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PortInstanceConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cInterfaceItemKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cItemAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cItemInterfaceItemCrossReference_1_0 = (CrossReference)cItemAssignment_1.eContents().get(0);
+ private final RuleCall cItemInterfaceItemIDTerminalRuleCall_1_0_1 = (RuleCall)cItemInterfaceItemCrossReference_1_0.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cAttributesAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cAttributesAttrInstanceConfigParserRuleCall_3_0 = (RuleCall)cAttributesAssignment_3.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ //PortInstanceConfig:
+ //
+ // "InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}";
+ public ParserRule getRule() { return rule; }
+
+ //"InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}"
+ public Group getGroup() { return cGroup; }
+
+ //"InterfaceItem"
+ public Keyword getInterfaceItemKeyword_0() { return cInterfaceItemKeyword_0; }
+
+ //item=[room::InterfaceItem]
+ public Assignment getItemAssignment_1() { return cItemAssignment_1; }
+
+ //[room::InterfaceItem]
+ public CrossReference getItemInterfaceItemCrossReference_1_0() { return cItemInterfaceItemCrossReference_1_0; }
+
+ //ID
+ public RuleCall getItemInterfaceItemIDTerminalRuleCall_1_0_1() { return cItemInterfaceItemIDTerminalRuleCall_1_0_1; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
+
+ //attributes+=AttrInstanceConfig*
+ public Assignment getAttributesAssignment_3() { return cAttributesAssignment_3; }
+
+ //AttrInstanceConfig
+ public RuleCall getAttributesAttrInstanceConfigParserRuleCall_3_0() { return cAttributesAttrInstanceConfigParserRuleCall_3_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
+ }
+
+ public class AttrConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AttrConfig");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cAttrClassConfigParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cAttrInstanceConfigParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ /// *
+ // * Validation:
+ // * correct value type
+ // * Proposal:
+ // * correct Literal
+ // * / AttrConfig:
+ //
+ // AttrClassConfig | AttrInstanceConfig;
+ public ParserRule getRule() { return rule; }
+
+ //AttrClassConfig | AttrInstanceConfig
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //AttrClassConfig
+ public RuleCall getAttrClassConfigParserRuleCall_0() { return cAttrClassConfigParserRuleCall_0; }
+
+ //AttrInstanceConfig
+ public RuleCall getAttrInstanceConfigParserRuleCall_1() { return cAttrInstanceConfigParserRuleCall_1; }
+ }
+
+ public class AttrClassConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AttrClassConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cAttrKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cAttributeAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cAttributeAttributeCrossReference_1_0 = (CrossReference)cAttributeAssignment_1.eContents().get(0);
+ private final RuleCall cAttributeAttributeIDTerminalRuleCall_1_0_1 = (RuleCall)cAttributeAttributeCrossReference_1_0.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cEqualsSignKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Assignment cValueAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
+ private final RuleCall cValueLiteralArrayParserRuleCall_2_1_0 = (RuleCall)cValueAssignment_2_1.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cLeftCurlyBracketKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final UnorderedGroup cUnorderedGroup_3_1 = (UnorderedGroup)cGroup_3.eContents().get(1);
+ private final Group cGroup_3_1_0 = (Group)cUnorderedGroup_3_1.eContents().get(0);
+ private final Keyword cMinKeyword_3_1_0_0 = (Keyword)cGroup_3_1_0.eContents().get(0);
+ private final Keyword cEqualsSignKeyword_3_1_0_1 = (Keyword)cGroup_3_1_0.eContents().get(1);
+ private final Assignment cMinAssignment_3_1_0_2 = (Assignment)cGroup_3_1_0.eContents().get(2);
+ private final RuleCall cMinNumberLiteralParserRuleCall_3_1_0_2_0 = (RuleCall)cMinAssignment_3_1_0_2.eContents().get(0);
+ private final Group cGroup_3_1_1 = (Group)cUnorderedGroup_3_1.eContents().get(1);
+ private final Keyword cMaxKeyword_3_1_1_0 = (Keyword)cGroup_3_1_1.eContents().get(0);
+ private final Keyword cEqualsSignKeyword_3_1_1_1 = (Keyword)cGroup_3_1_1.eContents().get(1);
+ private final Assignment cMaxAssignment_3_1_1_2 = (Assignment)cGroup_3_1_1.eContents().get(2);
+ private final RuleCall cMaxNumberLiteralParserRuleCall_3_1_1_2_0 = (RuleCall)cMaxAssignment_3_1_1_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3_2 = (Keyword)cGroup_3.eContents().get(2);
+
+ /// *
+ // * Validation:
+ // * correct min, max type + available
+ // * min <= value <= max
+ // * if !value -> min <= attribute.defaultValue <= max
+ // * character length
+ // *
+ // * /
+ //
+ //AttrClassConfig:
+ //
+ // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? & ("max" "="
+ //
+ // max=NumberLiteral)?) "}")?;
+ public ParserRule getRule() { return rule; }
+
+ //"Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? & ("max" "="
+ //
+ //max=NumberLiteral)?) "}")?
+ public Group getGroup() { return cGroup; }
+
+ //"Attr"
+ public Keyword getAttrKeyword_0() { return cAttrKeyword_0; }
+
+ //attribute=[room::Attribute]
+ public Assignment getAttributeAssignment_1() { return cAttributeAssignment_1; }
+
+ //[room::Attribute]
+ public CrossReference getAttributeAttributeCrossReference_1_0() { return cAttributeAttributeCrossReference_1_0; }
+
+ //ID
+ public RuleCall getAttributeAttributeIDTerminalRuleCall_1_0_1() { return cAttributeAttributeIDTerminalRuleCall_1_0_1; }
+
+ //("=" value=LiteralArray)?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_2_0() { return cEqualsSignKeyword_2_0; }
+
+ //value=LiteralArray
+ public Assignment getValueAssignment_2_1() { return cValueAssignment_2_1; }
+
+ //LiteralArray
+ public RuleCall getValueLiteralArrayParserRuleCall_2_1_0() { return cValueLiteralArrayParserRuleCall_2_1_0; }
+
+ //("{" (("min" "=" min=NumberLiteral)? & ("max" "=" max=NumberLiteral)?) "}")?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_3_0() { return cLeftCurlyBracketKeyword_3_0; }
+
+ //("min" "=" min=NumberLiteral)? & ("max" "=" max=NumberLiteral)?
+ public UnorderedGroup getUnorderedGroup_3_1() { return cUnorderedGroup_3_1; }
+
+ //("min" "=" min=NumberLiteral)?
+ public Group getGroup_3_1_0() { return cGroup_3_1_0; }
+
+ //"min"
+ public Keyword getMinKeyword_3_1_0_0() { return cMinKeyword_3_1_0_0; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_3_1_0_1() { return cEqualsSignKeyword_3_1_0_1; }
+
+ //min=NumberLiteral
+ public Assignment getMinAssignment_3_1_0_2() { return cMinAssignment_3_1_0_2; }
+
+ //NumberLiteral
+ public RuleCall getMinNumberLiteralParserRuleCall_3_1_0_2_0() { return cMinNumberLiteralParserRuleCall_3_1_0_2_0; }
+
+ //("max" "=" max=NumberLiteral)?
+ public Group getGroup_3_1_1() { return cGroup_3_1_1; }
+
+ //"max"
+ public Keyword getMaxKeyword_3_1_1_0() { return cMaxKeyword_3_1_1_0; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_3_1_1_1() { return cEqualsSignKeyword_3_1_1_1; }
+
+ //max=NumberLiteral
+ public Assignment getMaxAssignment_3_1_1_2() { return cMaxAssignment_3_1_1_2; }
+
+ //NumberLiteral
+ public RuleCall getMaxNumberLiteralParserRuleCall_3_1_1_2_0() { return cMaxNumberLiteralParserRuleCall_3_1_1_2_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_3_2() { return cRightCurlyBracketKeyword_3_2; }
+ }
+
+ public class AttrInstanceConfigElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AttrInstanceConfig");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cAttrKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cAttributeAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cAttributeAttributeCrossReference_1_0 = (CrossReference)cAttributeAssignment_1.eContents().get(0);
+ private final RuleCall cAttributeAttributeIDTerminalRuleCall_1_0_1 = (RuleCall)cAttributeAttributeCrossReference_1_0.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cEqualsSignKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Assignment cValueAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
+ private final RuleCall cValueLiteralArrayParserRuleCall_2_1_0 = (RuleCall)cValueAssignment_2_1.eContents().get(0);
+
+ //AttrInstanceConfig:
+ //
+ // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)?;
+ public ParserRule getRule() { return rule; }
+
+ //"Attr" attribute=[room::Attribute] ("=" value=LiteralArray)?
+ public Group getGroup() { return cGroup; }
+
+ //"Attr"
+ public Keyword getAttrKeyword_0() { return cAttrKeyword_0; }
+
+ //attribute=[room::Attribute]
+ public Assignment getAttributeAssignment_1() { return cAttributeAssignment_1; }
+
+ //[room::Attribute]
+ public CrossReference getAttributeAttributeCrossReference_1_0() { return cAttributeAttributeCrossReference_1_0; }
+
+ //ID
+ public RuleCall getAttributeAttributeIDTerminalRuleCall_1_0_1() { return cAttributeAttributeIDTerminalRuleCall_1_0_1; }
+
+ //("=" value=LiteralArray)?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_2_0() { return cEqualsSignKeyword_2_0; }
+
+ //value=LiteralArray
+ public Assignment getValueAssignment_2_1() { return cValueAssignment_2_1; }
+
+ //LiteralArray
+ public RuleCall getValueLiteralArrayParserRuleCall_2_1_0() { return cValueLiteralArrayParserRuleCall_2_1_0; }
+ }
+
+ public class RefPathElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RefPath");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cRefsAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cRefsIDTerminalRuleCall_0_0 = (RuleCall)cRefsAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cSolidusKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cRefsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cRefsIDTerminalRuleCall_1_1_0 = (RuleCall)cRefsAssignment_1_1.eContents().get(0);
+
+ /// *
+ // * Proposal:
+ // * for ActorInstanceConfig
+ // * / RefPath:
+ //
+ // refs+=ID ("/" refs+=ID)*;
+ public ParserRule getRule() { return rule; }
+
+ //refs+=ID ("/" refs+=ID)*
+ public Group getGroup() { return cGroup; }
+
+ //refs+=ID
+ public Assignment getRefsAssignment_0() { return cRefsAssignment_0; }
+
+ //ID
+ public RuleCall getRefsIDTerminalRuleCall_0_0() { return cRefsIDTerminalRuleCall_0_0; }
+
+ //("/" refs+=ID)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //"/"
+ public Keyword getSolidusKeyword_1_0() { return cSolidusKeyword_1_0; }
+
+ //refs+=ID
+ public Assignment getRefsAssignment_1_1() { return cRefsAssignment_1_1; }
+
+ //ID
+ public RuleCall getRefsIDTerminalRuleCall_1_1_0() { return cRefsIDTerminalRuleCall_1_1_0; }
+ }
+
+ public class ImportElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Import");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
+ private final Assignment cImportedNamespaceAssignment_1_0_0 = (Assignment)cGroup_1_0.eContents().get(0);
+ private final RuleCall cImportedNamespaceImportedFQNParserRuleCall_1_0_0_0 = (RuleCall)cImportedNamespaceAssignment_1_0_0.eContents().get(0);
+ private final Keyword cFromKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1);
+ private final Keyword cModelKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1);
+ private final Assignment cImportURIAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cImportURISTRINGTerminalRuleCall_2_0 = (RuleCall)cImportURIAssignment_2.eContents().get(0);
+
+ //// -------------------- from org.eclipse.etrice.core.Room.xtext ---------------
+ // Import:
+ //
+ // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING;
+ public ParserRule getRule() { return rule; }
+
+ //"import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING
+ public Group getGroup() { return cGroup; }
+
+ //"import"
+ public Keyword getImportKeyword_0() { return cImportKeyword_0; }
+
+ //importedNamespace=ImportedFQN "from" | "model"
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //importedNamespace=ImportedFQN "from"
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //importedNamespace=ImportedFQN
+ public Assignment getImportedNamespaceAssignment_1_0_0() { return cImportedNamespaceAssignment_1_0_0; }
+
+ //ImportedFQN
+ public RuleCall getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0() { return cImportedNamespaceImportedFQNParserRuleCall_1_0_0_0; }
+
+ //"from"
+ public Keyword getFromKeyword_1_0_1() { return cFromKeyword_1_0_1; }
+
+ //"model"
+ public Keyword getModelKeyword_1_1() { return cModelKeyword_1_1; }
+
+ //importURI=STRING
+ public Assignment getImportURIAssignment_2() { return cImportURIAssignment_2; }
+
+ //STRING
+ public RuleCall getImportURISTRINGTerminalRuleCall_2_0() { return cImportURISTRINGTerminalRuleCall_2_0; }
+ }
+
+ public class ImportedFQNElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ImportedFQN");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cFQNParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cFullStopAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //ImportedFQN:
+ //
+ // FQN ".*"?;
+ public ParserRule getRule() { return rule; }
+
+ //FQN ".*"?
+ public Group getGroup() { return cGroup; }
+
+ //FQN
+ public RuleCall getFQNParserRuleCall_0() { return cFQNParserRuleCall_0; }
+
+ //".*"?
+ public Keyword getFullStopAsteriskKeyword_1() { return cFullStopAsteriskKeyword_1; }
+ }
+
+ public class FQNElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FQN");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1);
+
+ //FQN:
+ //
+ // ID ("." ID)*;
+ public ParserRule getRule() { return rule; }
+
+ //ID ("." ID)*
+ public Group getGroup() { return cGroup; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
+
+ //("." ID)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; }
+ }
+
+ public class LiteralArrayElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "LiteralArray");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cLiteralsAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cLiteralsLiteralParserRuleCall_0_0 = (RuleCall)cLiteralsAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cLiteralsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cLiteralsLiteralParserRuleCall_1_1_0 = (RuleCall)cLiteralsAssignment_1_1.eContents().get(0);
+
+ //// -----------------------------------------------------------------------------
+ // //enum Unit:
+ // // N|
+ // // W|
+ //
+ //
+ //// S = 's'|
+ // // KG = 'kg'|
+ // // M = 'm'|
+ // // C|
+ // // NM|
+ // // RPM|
+ // // V|
+ // // A|
+ // // HZ = 'Hz'|
+ // // KW
+ // //;
+ //
+ //
+ //// LiteralArray = BooleanLiteral+|NumberLiteral+
+ // // LiteralArray = StringLiteral
+ // LiteralArray:
+ //
+ // literals+=Literal ("," literals+=Literal)*;
+ public ParserRule getRule() { return rule; }
+
+ //literals+=Literal ("," literals+=Literal)*
+ public Group getGroup() { return cGroup; }
+
+ //literals+=Literal
+ public Assignment getLiteralsAssignment_0() { return cLiteralsAssignment_0; }
+
+ //Literal
+ public RuleCall getLiteralsLiteralParserRuleCall_0_0() { return cLiteralsLiteralParserRuleCall_0_0; }
+
+ //("," literals+=Literal)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //","
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //literals+=Literal
+ public Assignment getLiteralsAssignment_1_1() { return cLiteralsAssignment_1_1; }
+
+ //Literal
+ public RuleCall getLiteralsLiteralParserRuleCall_1_1_0() { return cLiteralsLiteralParserRuleCall_1_1_0; }
+ }
+
+ public class LiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Literal");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cBooleanLiteralParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cNumberLiteralParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cStringLiteralParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+
+ //// Value Types for Attributes
+ // Literal:
+ //
+ // BooleanLiteral | NumberLiteral | StringLiteral;
+ public ParserRule getRule() { return rule; }
+
+ //BooleanLiteral | NumberLiteral | StringLiteral
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //BooleanLiteral
+ public RuleCall getBooleanLiteralParserRuleCall_0() { return cBooleanLiteralParserRuleCall_0; }
+
+ //NumberLiteral
+ public RuleCall getNumberLiteralParserRuleCall_1() { return cNumberLiteralParserRuleCall_1; }
+
+ //StringLiteral
+ public RuleCall getStringLiteralParserRuleCall_2() { return cStringLiteralParserRuleCall_2; }
+ }
+
+ public class BooleanLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiteral");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cBooleanLiteralAction_0 = (Action)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Keyword cFalseKeyword_1_0 = (Keyword)cAlternatives_1.eContents().get(0);
+ private final Assignment cIsTrueAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
+ private final Keyword cIsTrueTrueKeyword_1_1_0 = (Keyword)cIsTrueAssignment_1_1.eContents().get(0);
+
+ //BooleanLiteral:
+ //
+ // {BooleanLiteral} ("false" | isTrue?="true");
+ public ParserRule getRule() { return rule; }
+
+ //{BooleanLiteral} ("false" | isTrue?="true")
+ public Group getGroup() { return cGroup; }
+
+ //{BooleanLiteral}
+ public Action getBooleanLiteralAction_0() { return cBooleanLiteralAction_0; }
+
+ //"false" | isTrue?="true"
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //"false"
+ public Keyword getFalseKeyword_1_0() { return cFalseKeyword_1_0; }
+
+ //isTrue?="true"
+ public Assignment getIsTrueAssignment_1_1() { return cIsTrueAssignment_1_1; }
+
+ //"true"
+ public Keyword getIsTrueTrueKeyword_1_1_0() { return cIsTrueTrueKeyword_1_1_0; }
+ }
+
+ public class NumberLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NumberLiteral");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cIntLiteralParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cRealLiteralParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //NumberLiteral:
+ //
+ // IntLiteral | RealLiteral;
+ public ParserRule getRule() { return rule; }
+
+ //IntLiteral | RealLiteral
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //IntLiteral
+ public RuleCall getIntLiteralParserRuleCall_0() { return cIntLiteralParserRuleCall_0; }
+
+ //RealLiteral
+ public RuleCall getRealLiteralParserRuleCall_1() { return cRealLiteralParserRuleCall_1; }
+ }
+
+ public class RealLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealLiteral");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cRealLiteralAction_0 = (Action)cGroup.eContents().get(0);
+ private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cValueRealParserRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
+
+ //RealLiteral:
+ //
+ // {RealLiteral} value=Real;
+ public ParserRule getRule() { return rule; }
+
+ //{RealLiteral} value=Real
+ public Group getGroup() { return cGroup; }
+
+ //{RealLiteral}
+ public Action getRealLiteralAction_0() { return cRealLiteralAction_0; }
+
+ //value=Real
+ public Assignment getValueAssignment_1() { return cValueAssignment_1; }
+
+ //Real
+ public RuleCall getValueRealParserRuleCall_1_0() { return cValueRealParserRuleCall_1_0; }
+ }
+
+ public class IntLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntLiteral");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cIntLiteralAction_0 = (Action)cGroup.eContents().get(0);
+ private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cValueIntegerParserRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
+
+ //IntLiteral:
+ //
+ // {IntLiteral} value=Integer;
+ public ParserRule getRule() { return rule; }
+
+ //{IntLiteral} value=Integer
+ public Group getGroup() { return cGroup; }
+
+ //{IntLiteral}
+ public Action getIntLiteralAction_0() { return cIntLiteralAction_0; }
+
+ //value=Integer
+ public Assignment getValueAssignment_1() { return cValueAssignment_1; }
+
+ //Integer
+ public RuleCall getValueIntegerParserRuleCall_1_0() { return cValueIntegerParserRuleCall_1_0; }
+ }
+
+ public class StringLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringLiteral");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cStringLiteralAction_0 = (Action)cGroup.eContents().get(0);
+ private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cValueSTRINGTerminalRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
+
+ //StringLiteral:
+ //
+ // {StringLiteral} value=STRING;
+ public ParserRule getRule() { return rule; }
+
+ //{StringLiteral} value=STRING
+ public Group getGroup() { return cGroup; }
+
+ //{StringLiteral}
+ public Action getStringLiteralAction_0() { return cStringLiteralAction_0; }
+
+ //value=STRING
+ public Assignment getValueAssignment_1() { return cValueAssignment_1; }
+
+ //STRING
+ public RuleCall getValueSTRINGTerminalRuleCall_1_0() { return cValueSTRINGTerminalRuleCall_1_0; }
+ }
+
+ public class IntegerElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Integer");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cSignedIntegerParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cHexadecimalParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //Integer returns ecore::EInt:
+ //
+ // SignedInteger | Hexadecimal;
+ public ParserRule getRule() { return rule; }
+
+ //SignedInteger | Hexadecimal
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //SignedInteger
+ public RuleCall getSignedIntegerParserRuleCall_0() { return cSignedIntegerParserRuleCall_0; }
+
+ //Hexadecimal
+ public RuleCall getHexadecimalParserRuleCall_1() { return cHexadecimalParserRuleCall_1; }
+ }
+
+ public class SignedIntegerElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SignedInteger");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+
+ //SignedInteger hidden():
+ //
+ // ("+" | "-")? INT;
+ public ParserRule getRule() { return rule; }
+
+ //("+" | "-")? INT
+ public Group getGroup() { return cGroup; }
+
+ //("+" | "-")?
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //"+"
+ public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
+
+ //"-"
+ public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
+ }
+
+ public class HexadecimalElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Hexadecimal");
+ private final RuleCall cHEXTerminalRuleCall = (RuleCall)rule.eContents().get(1);
+
+ //Hexadecimal hidden():
+ //
+ // HEX;
+ public ParserRule getRule() { return rule; }
+
+ //HEX
+ public RuleCall getHEXTerminalRuleCall() { return cHEXTerminalRuleCall; }
+ }
+
+ public class RealElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Real");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cDecimalParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cDotDecimalParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cDecimalDotParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cDecimalExpParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+
+ //Real returns ecore::EDouble:
+ //
+ // Decimal | DotDecimal | DecimalDot | DecimalExp;
+ public ParserRule getRule() { return rule; }
+
+ //Decimal | DotDecimal | DecimalDot | DecimalExp
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //Decimal
+ public RuleCall getDecimalParserRuleCall_0() { return cDecimalParserRuleCall_0; }
+
+ //DotDecimal
+ public RuleCall getDotDecimalParserRuleCall_1() { return cDotDecimalParserRuleCall_1; }
+
+ //DecimalDot
+ public RuleCall getDecimalDotParserRuleCall_2() { return cDecimalDotParserRuleCall_2; }
+
+ //DecimalExp
+ public RuleCall getDecimalExpParserRuleCall_3() { return cDecimalExpParserRuleCall_3; }
+ }
+
+ public class DecimalElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Decimal");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final RuleCall cINTTerminalRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
+
+ //Decimal hidden():
+ //
+ // ("+" | "-")? INT "." INT;
+ public ParserRule getRule() { return rule; }
+
+ //("+" | "-")? INT "." INT
+ public Group getGroup() { return cGroup; }
+
+ //("+" | "-")?
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //"+"
+ public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
+
+ //"-"
+ public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_2() { return cFullStopKeyword_2; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_3() { return cINTTerminalRuleCall_3; }
+ }
+
+ public class DotDecimalElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DotDecimal");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
+
+ //DotDecimal hidden():
+ //
+ // ("+" | "-")? "." INT;
+ public ParserRule getRule() { return rule; }
+
+ //("+" | "-")? "." INT
+ public Group getGroup() { return cGroup; }
+
+ //("+" | "-")?
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //"+"
+ public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
+
+ //"-"
+ public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_2() { return cINTTerminalRuleCall_2; }
+ }
+
+ public class DecimalDotElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DecimalDot");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //DecimalDot hidden():
+ //
+ // ("+" | "-")? INT ".";
+ public ParserRule getRule() { return rule; }
+
+ //("+" | "-")? INT "."
+ public Group getGroup() { return cGroup; }
+
+ //("+" | "-")?
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //"+"
+ public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
+
+ //"-"
+ public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_2() { return cFullStopKeyword_2; }
+ }
+
+ public class DecimalExpElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DecimalExp");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Keyword cPlusSignKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final RuleCall cINTTerminalRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
+ private final RuleCall cIDTerminalRuleCall_4 = (RuleCall)cGroup.eContents().get(4);
+ private final Alternatives cAlternatives_5 = (Alternatives)cGroup.eContents().get(5);
+ private final Keyword cPlusSignKeyword_5_0 = (Keyword)cAlternatives_5.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_5_1 = (Keyword)cAlternatives_5.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_6 = (RuleCall)cGroup.eContents().get(6);
+
+ //DecimalExp hidden():
+ //
+ // ("+" | "-")? INT "." INT ID ("+" | "-")? INT;
+ public ParserRule getRule() { return rule; }
+
+ //("+" | "-")? INT "." INT ID ("+" | "-")? INT
+ public Group getGroup() { return cGroup; }
+
+ //("+" | "-")?
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //"+"
+ public Keyword getPlusSignKeyword_0_0() { return cPlusSignKeyword_0_0; }
+
+ //"-"
+ public Keyword getHyphenMinusKeyword_0_1() { return cHyphenMinusKeyword_0_1; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_2() { return cFullStopKeyword_2; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_3() { return cINTTerminalRuleCall_3; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall_4() { return cIDTerminalRuleCall_4; }
+
+ //("+" | "-")?
+ public Alternatives getAlternatives_5() { return cAlternatives_5; }
+
+ //"+"
+ public Keyword getPlusSignKeyword_5_0() { return cPlusSignKeyword_5_0; }
+
+ //"-"
+ public Keyword getHyphenMinusKeyword_5_1() { return cHyphenMinusKeyword_5_1; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_6() { return cINTTerminalRuleCall_6; }
+ }
+
+
+ private ConfigModelElements pConfigModel;
+ private ConfigElementElements pConfigElement;
+ private ActorClassConfigElements pActorClassConfig;
+ private ActorInstanceConfigElements pActorInstanceConfig;
+ private ProtocolClassConfigElements pProtocolClassConfig;
+ private PortClassConfigElements pPortClassConfig;
+ private PortInstanceConfigElements pPortInstanceConfig;
+ private AttrConfigElements pAttrConfig;
+ private AttrClassConfigElements pAttrClassConfig;
+ private AttrInstanceConfigElements pAttrInstanceConfig;
+ private RefPathElements pRefPath;
+ private ImportElements pImport;
+ private ImportedFQNElements pImportedFQN;
+ private FQNElements pFQN;
+ private LiteralArrayElements pLiteralArray;
+ private LiteralElements pLiteral;
+ private BooleanLiteralElements pBooleanLiteral;
+ private NumberLiteralElements pNumberLiteral;
+ private RealLiteralElements pRealLiteral;
+ private IntLiteralElements pIntLiteral;
+ private StringLiteralElements pStringLiteral;
+ private IntegerElements pInteger;
+ private SignedIntegerElements pSignedInteger;
+ private HexadecimalElements pHexadecimal;
+ private RealElements pReal;
+ private DecimalElements pDecimal;
+ private DotDecimalElements pDotDecimal;
+ private DecimalDotElements pDecimalDot;
+ private DecimalExpElements pDecimalExp;
+ private TerminalRule tHEX;
+
+ private final Grammar grammar;
+
+ private TerminalsGrammarAccess gaTerminals;
+
+ @Inject
+ public ConfigGrammarAccess(GrammarProvider grammarProvider,
+ TerminalsGrammarAccess gaTerminals) {
+ this.grammar = internalFindGrammar(grammarProvider);
+ this.gaTerminals = gaTerminals;
+ }
+
+ protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
+ Grammar grammar = grammarProvider.getGrammar(this);
+ while (grammar != null) {
+ if ("org.eclipse.etrice.core.Config".equals(grammar.getName())) {
+ return grammar;
+ }
+ List<Grammar> grammars = grammar.getUsedGrammars();
+ if (!grammars.isEmpty()) {
+ grammar = grammars.iterator().next();
+ } else {
+ return null;
+ }
+ }
+ return grammar;
+ }
+
+
+ public Grammar getGrammar() {
+ return grammar;
+ }
+
+
+ public TerminalsGrammarAccess getTerminalsGrammarAccess() {
+ return gaTerminals;
+ }
+
+
+ /// *
+ // * Postprocessor:
+ // * getActor(Class|Instance)Config()
+ // * / ConfigModel:
+ //
+ // imports+=Import* configElements+=ConfigElement*;
+ public ConfigModelElements getConfigModelAccess() {
+ return (pConfigModel != null) ? pConfigModel : (pConfigModel = new ConfigModelElements());
+ }
+
+ public ParserRule getConfigModelRule() {
+ return getConfigModelAccess().getRule();
+ }
+
+ //ConfigElement:
+ //
+ // ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig;
+ public ConfigElementElements getConfigElementAccess() {
+ return (pConfigElement != null) ? pConfigElement : (pConfigElement = new ConfigElementElements());
+ }
+
+ public ParserRule getConfigElementRule() {
+ return getConfigElementAccess().getRule();
+ }
+
+ /// *
+ // * Validation:
+ // * duplicates config, attributes
+ // * / ActorClassConfig:
+ //
+ // "ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}";
+ public ActorClassConfigElements getActorClassConfigAccess() {
+ return (pActorClassConfig != null) ? pActorClassConfig : (pActorClassConfig = new ActorClassConfigElements());
+ }
+
+ public ParserRule getActorClassConfigRule() {
+ return getActorClassConfigAccess().getRule();
+ }
+
+ /// *
+ // * Validation:
+ // * duplicates config, attributes
+ // * valid instance reference
+ // * Proposal:
+ // * attributes
+ // * /
+ //
+ //ActorInstanceConfig:
+ //
+ // "ActorInstanceConfig" root=[room::SubSystemClass|FQN] "/" path=RefPath "{" attributes+=AttrInstanceConfig*
+ //
+ // ports+=PortInstanceConfig* "}";
+ public ActorInstanceConfigElements getActorInstanceConfigAccess() {
+ return (pActorInstanceConfig != null) ? pActorInstanceConfig : (pActorInstanceConfig = new ActorInstanceConfigElements());
+ }
+
+ public ParserRule getActorInstanceConfigRule() {
+ return getActorInstanceConfigAccess().getRule();
+ }
+
+ //ProtocolClassConfig:
+ //
+ // "ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate"
+ //
+ // conjugated=PortClassConfig)?) "}";
+ public ProtocolClassConfigElements getProtocolClassConfigAccess() {
+ return (pProtocolClassConfig != null) ? pProtocolClassConfig : (pProtocolClassConfig = new ProtocolClassConfigElements());
+ }
+
+ public ParserRule getProtocolClassConfigRule() {
+ return getProtocolClassConfigAccess().getRule();
+ }
+
+ //PortClassConfig:
+ //
+ // {PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}";
+ public PortClassConfigElements getPortClassConfigAccess() {
+ return (pPortClassConfig != null) ? pPortClassConfig : (pPortClassConfig = new PortClassConfigElements());
+ }
+
+ public ParserRule getPortClassConfigRule() {
+ return getPortClassConfigAccess().getRule();
+ }
+
+ //PortInstanceConfig:
+ //
+ // "InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}";
+ public PortInstanceConfigElements getPortInstanceConfigAccess() {
+ return (pPortInstanceConfig != null) ? pPortInstanceConfig : (pPortInstanceConfig = new PortInstanceConfigElements());
+ }
+
+ public ParserRule getPortInstanceConfigRule() {
+ return getPortInstanceConfigAccess().getRule();
+ }
+
+ /// *
+ // * Validation:
+ // * correct value type
+ // * Proposal:
+ // * correct Literal
+ // * / AttrConfig:
+ //
+ // AttrClassConfig | AttrInstanceConfig;
+ public AttrConfigElements getAttrConfigAccess() {
+ return (pAttrConfig != null) ? pAttrConfig : (pAttrConfig = new AttrConfigElements());
+ }
+
+ public ParserRule getAttrConfigRule() {
+ return getAttrConfigAccess().getRule();
+ }
+
+ /// *
+ // * Validation:
+ // * correct min, max type + available
+ // * min <= value <= max
+ // * if !value -> min <= attribute.defaultValue <= max
+ // * character length
+ // *
+ // * /
+ //
+ //AttrClassConfig:
+ //
+ // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? & ("max" "="
+ //
+ // max=NumberLiteral)?) "}")?;
+ public AttrClassConfigElements getAttrClassConfigAccess() {
+ return (pAttrClassConfig != null) ? pAttrClassConfig : (pAttrClassConfig = new AttrClassConfigElements());
+ }
+
+ public ParserRule getAttrClassConfigRule() {
+ return getAttrClassConfigAccess().getRule();
+ }
+
+ //AttrInstanceConfig:
+ //
+ // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)?;
+ public AttrInstanceConfigElements getAttrInstanceConfigAccess() {
+ return (pAttrInstanceConfig != null) ? pAttrInstanceConfig : (pAttrInstanceConfig = new AttrInstanceConfigElements());
+ }
+
+ public ParserRule getAttrInstanceConfigRule() {
+ return getAttrInstanceConfigAccess().getRule();
+ }
+
+ /// *
+ // * Proposal:
+ // * for ActorInstanceConfig
+ // * / RefPath:
+ //
+ // refs+=ID ("/" refs+=ID)*;
+ public RefPathElements getRefPathAccess() {
+ return (pRefPath != null) ? pRefPath : (pRefPath = new RefPathElements());
+ }
+
+ public ParserRule getRefPathRule() {
+ return getRefPathAccess().getRule();
+ }
+
+ //// -------------------- from org.eclipse.etrice.core.Room.xtext ---------------
+ // Import:
+ //
+ // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING;
+ public ImportElements getImportAccess() {
+ return (pImport != null) ? pImport : (pImport = new ImportElements());
+ }
+
+ public ParserRule getImportRule() {
+ return getImportAccess().getRule();
+ }
+
+ //ImportedFQN:
+ //
+ // FQN ".*"?;
+ public ImportedFQNElements getImportedFQNAccess() {
+ return (pImportedFQN != null) ? pImportedFQN : (pImportedFQN = new ImportedFQNElements());
+ }
+
+ public ParserRule getImportedFQNRule() {
+ return getImportedFQNAccess().getRule();
+ }
+
+ //FQN:
+ //
+ // ID ("." ID)*;
+ public FQNElements getFQNAccess() {
+ return (pFQN != null) ? pFQN : (pFQN = new FQNElements());
+ }
+
+ public ParserRule getFQNRule() {
+ return getFQNAccess().getRule();
+ }
+
+ //// -----------------------------------------------------------------------------
+ // //enum Unit:
+ // // N|
+ // // W|
+ //
+ //
+ //// S = 's'|
+ // // KG = 'kg'|
+ // // M = 'm'|
+ // // C|
+ // // NM|
+ // // RPM|
+ // // V|
+ // // A|
+ // // HZ = 'Hz'|
+ // // KW
+ // //;
+ //
+ //
+ //// LiteralArray = BooleanLiteral+|NumberLiteral+
+ // // LiteralArray = StringLiteral
+ // LiteralArray:
+ //
+ // literals+=Literal ("," literals+=Literal)*;
+ public LiteralArrayElements getLiteralArrayAccess() {
+ return (pLiteralArray != null) ? pLiteralArray : (pLiteralArray = new LiteralArrayElements());
+ }
+
+ public ParserRule getLiteralArrayRule() {
+ return getLiteralArrayAccess().getRule();
+ }
+
+ //// Value Types for Attributes
+ // Literal:
+ //
+ // BooleanLiteral | NumberLiteral | StringLiteral;
+ public LiteralElements getLiteralAccess() {
+ return (pLiteral != null) ? pLiteral : (pLiteral = new LiteralElements());
+ }
+
+ public ParserRule getLiteralRule() {
+ return getLiteralAccess().getRule();
+ }
+
+ //BooleanLiteral:
+ //
+ // {BooleanLiteral} ("false" | isTrue?="true");
+ public BooleanLiteralElements getBooleanLiteralAccess() {
+ return (pBooleanLiteral != null) ? pBooleanLiteral : (pBooleanLiteral = new BooleanLiteralElements());
+ }
+
+ public ParserRule getBooleanLiteralRule() {
+ return getBooleanLiteralAccess().getRule();
+ }
+
+ //NumberLiteral:
+ //
+ // IntLiteral | RealLiteral;
+ public NumberLiteralElements getNumberLiteralAccess() {
+ return (pNumberLiteral != null) ? pNumberLiteral : (pNumberLiteral = new NumberLiteralElements());
+ }
+
+ public ParserRule getNumberLiteralRule() {
+ return getNumberLiteralAccess().getRule();
+ }
+
+ //RealLiteral:
+ //
+ // {RealLiteral} value=Real;
+ public RealLiteralElements getRealLiteralAccess() {
+ return (pRealLiteral != null) ? pRealLiteral : (pRealLiteral = new RealLiteralElements());
+ }
+
+ public ParserRule getRealLiteralRule() {
+ return getRealLiteralAccess().getRule();
+ }
+
+ //IntLiteral:
+ //
+ // {IntLiteral} value=Integer;
+ public IntLiteralElements getIntLiteralAccess() {
+ return (pIntLiteral != null) ? pIntLiteral : (pIntLiteral = new IntLiteralElements());
+ }
+
+ public ParserRule getIntLiteralRule() {
+ return getIntLiteralAccess().getRule();
+ }
+
+ //StringLiteral:
+ //
+ // {StringLiteral} value=STRING;
+ public StringLiteralElements getStringLiteralAccess() {
+ return (pStringLiteral != null) ? pStringLiteral : (pStringLiteral = new StringLiteralElements());
+ }
+
+ public ParserRule getStringLiteralRule() {
+ return getStringLiteralAccess().getRule();
+ }
+
+ //Integer returns ecore::EInt:
+ //
+ // SignedInteger | Hexadecimal;
+ public IntegerElements getIntegerAccess() {
+ return (pInteger != null) ? pInteger : (pInteger = new IntegerElements());
+ }
+
+ public ParserRule getIntegerRule() {
+ return getIntegerAccess().getRule();
+ }
+
+ //SignedInteger hidden():
+ //
+ // ("+" | "-")? INT;
+ public SignedIntegerElements getSignedIntegerAccess() {
+ return (pSignedInteger != null) ? pSignedInteger : (pSignedInteger = new SignedIntegerElements());
+ }
+
+ public ParserRule getSignedIntegerRule() {
+ return getSignedIntegerAccess().getRule();
+ }
+
+ //Hexadecimal hidden():
+ //
+ // HEX;
+ public HexadecimalElements getHexadecimalAccess() {
+ return (pHexadecimal != null) ? pHexadecimal : (pHexadecimal = new HexadecimalElements());
+ }
+
+ public ParserRule getHexadecimalRule() {
+ return getHexadecimalAccess().getRule();
+ }
+
+ //Real returns ecore::EDouble:
+ //
+ // Decimal | DotDecimal | DecimalDot | DecimalExp;
+ public RealElements getRealAccess() {
+ return (pReal != null) ? pReal : (pReal = new RealElements());
+ }
+
+ public ParserRule getRealRule() {
+ return getRealAccess().getRule();
+ }
+
+ //Decimal hidden():
+ //
+ // ("+" | "-")? INT "." INT;
+ public DecimalElements getDecimalAccess() {
+ return (pDecimal != null) ? pDecimal : (pDecimal = new DecimalElements());
+ }
+
+ public ParserRule getDecimalRule() {
+ return getDecimalAccess().getRule();
+ }
+
+ //DotDecimal hidden():
+ //
+ // ("+" | "-")? "." INT;
+ public DotDecimalElements getDotDecimalAccess() {
+ return (pDotDecimal != null) ? pDotDecimal : (pDotDecimal = new DotDecimalElements());
+ }
+
+ public ParserRule getDotDecimalRule() {
+ return getDotDecimalAccess().getRule();
+ }
+
+ //DecimalDot hidden():
+ //
+ // ("+" | "-")? INT ".";
+ public DecimalDotElements getDecimalDotAccess() {
+ return (pDecimalDot != null) ? pDecimalDot : (pDecimalDot = new DecimalDotElements());
+ }
+
+ public ParserRule getDecimalDotRule() {
+ return getDecimalDotAccess().getRule();
+ }
+
+ //DecimalExp hidden():
+ //
+ // ("+" | "-")? INT "." INT ID ("+" | "-")? INT;
+ public DecimalExpElements getDecimalExpAccess() {
+ return (pDecimalExp != null) ? pDecimalExp : (pDecimalExp = new DecimalExpElements());
+ }
+
+ public ParserRule getDecimalExpRule() {
+ return getDecimalExpAccess().getRule();
+ }
+
+ ////DecimalPosExp hidden():
+ // // ('+' | '-')? INT '.' INT ID;
+ // terminal HEX:
+ //
+ // ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F")+;
+ public TerminalRule getHEXRule() {
+ return (tHEX != null) ? tHEX : (tHEX = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "HEX"));
+ }
+
+ //terminal ID:
+ //
+ // "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*;
+ public TerminalRule getIDRule() {
+ return gaTerminals.getIDRule();
+ }
+
+ //terminal INT returns ecore::EInt:
+ //
+ // "0".."9"+;
+ public TerminalRule getINTRule() {
+ return gaTerminals.getINTRule();
+ }
+
+ //terminal STRING:
+ //
+ // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" | "\'" ("\\" ("b" | "t" |
+ //
+ // "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'";
+ public TerminalRule getSTRINGRule() {
+ return gaTerminals.getSTRINGRule();
+ }
+
+ //terminal ML_COMMENT:
+ //
+ // "/ *"->"* /";
+ public TerminalRule getML_COMMENTRule() {
+ return gaTerminals.getML_COMMENTRule();
+ }
+
+ //terminal SL_COMMENT:
+ //
+ // "//" !("\n" | "\r")* ("\r"? "\n")?;
+ public TerminalRule getSL_COMMENTRule() {
+ return gaTerminals.getSL_COMMENTRule();
+ }
+
+ //terminal WS:
+ //
+ // (" " | "\t" | "\r" | "\n")+;
+ public TerminalRule getWSRule() {
+ return gaTerminals.getWSRule();
+ }
+
+ //terminal ANY_OTHER:
+ //
+ // .;
+ public TerminalRule getANY_OTHERRule() {
+ return gaTerminals.getANY_OTHERRule();
+ }
+}
diff --git a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2 b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2
index 3f91f6b54..5c9cd859a 100644
--- a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2
+++ b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2
@@ -1,148 +1,148 @@
-/*******************************************************************************
- * 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:
- * Juergen Haug
- *
- *******************************************************************************/
-module org.eclipse.etrice.core.GenerateConfig
-
-import org.eclipse.emf.mwe.utils.*
-import org.eclipse.xtext.generator.*
-import org.eclipse.xtext.ui.generator.*
-
-var grammarURI = "classpath:/org/eclipse/etrice/core/Config.xtext"
-var file.extensions = "config"
-var projectName = "org.eclipse.etrice.core.config"
-var runtimeProject = "../${projectName}"
-
-Workflow {
- bean = StandaloneSetup {
- scanClassPath = true
- platformUri = "${runtimeProject}/.."
- registerGenModelFile = "platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.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.ImportURIScopingFragment {}
- // 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:
+ * Juergen Haug
+ *
+ *******************************************************************************/
+module org.eclipse.etrice.core.GenerateConfig
+
+import org.eclipse.emf.mwe.utils.*
+import org.eclipse.xtext.generator.*
+import org.eclipse.xtext.ui.generator.*
+
+var grammarURI = "classpath:/org/eclipse/etrice/core/Config.xtext"
+var file.extensions = "config"
+var projectName = "org.eclipse.etrice.core.config"
+var runtimeProject = "../${projectName}"
+
+Workflow {
+ bean = StandaloneSetup {
+ scanClassPath = true
+ platformUri = "${runtimeProject}/.."
+ registerGenModelFile = "platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.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.ImportURIScopingFragment {}
+ // 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.core.genmodel/model/etricegen.ecore b/plugins/org.eclipse.etrice.core.genmodel/model/etricegen.ecore
index 9ab1f68da..1052b06d9 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/model/etricegen.ecore
+++ b/plugins/org.eclipse.etrice.core.genmodel/model/etricegen.ecore
@@ -216,8 +216,11 @@
<eOperations name="init">
<eParameters name="rs" eType="ecore:EClass ../../org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//RefinedState"/>
</eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="inheritedEntry" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="inheritedExit" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="inheritedDo" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="inheritedEntry" eType="ecore:EClass ../../org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//DetailCode"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="inheritedExit" eType="ecore:EClass ../../org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//DetailCode"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="inheritedDo" eType="ecore:EClass ../../org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//DetailCode"
+ containment="true"/>
</eClassifiers>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ETriceGenPackage.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ETriceGenPackage.java
index 8eaed9094..7ff5e405d 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ETriceGenPackage.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ETriceGenPackage.java
@@ -1502,7 +1502,7 @@ public interface ETriceGenPackage extends EPackage {
int EXPANDED_REFINED_STATE__NAME = RoomPackage.SIMPLE_STATE__NAME;
/**
- * The feature id for the '<em><b>Inherited Entry</b></em>' attribute.
+ * The feature id for the '<em><b>Inherited Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -1511,7 +1511,7 @@ public interface ETriceGenPackage extends EPackage {
int EXPANDED_REFINED_STATE__INHERITED_ENTRY = RoomPackage.SIMPLE_STATE_FEATURE_COUNT + 0;
/**
- * The feature id for the '<em><b>Inherited Exit</b></em>' attribute.
+ * The feature id for the '<em><b>Inherited Exit</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -1520,7 +1520,7 @@ public interface ETriceGenPackage extends EPackage {
int EXPANDED_REFINED_STATE__INHERITED_EXIT = RoomPackage.SIMPLE_STATE_FEATURE_COUNT + 1;
/**
- * The feature id for the '<em><b>Inherited Do</b></em>' attribute.
+ * The feature id for the '<em><b>Inherited Do</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -2314,37 +2314,37 @@ public interface ETriceGenPackage extends EPackage {
EClass getExpandedRefinedState();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedEntry <em>Inherited Entry</em>}'.
+ * Returns the meta object for the containment reference '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedEntry <em>Inherited Entry</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited Entry</em>'.
+ * @return the meta object for the containment reference '<em>Inherited Entry</em>'.
* @see org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedEntry()
* @see #getExpandedRefinedState()
* @generated
*/
- EAttribute getExpandedRefinedState_InheritedEntry();
+ EReference getExpandedRefinedState_InheritedEntry();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedExit <em>Inherited Exit</em>}'.
+ * Returns the meta object for the containment reference '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedExit <em>Inherited Exit</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited Exit</em>'.
+ * @return the meta object for the containment reference '<em>Inherited Exit</em>'.
* @see org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedExit()
* @see #getExpandedRefinedState()
* @generated
*/
- EAttribute getExpandedRefinedState_InheritedExit();
+ EReference getExpandedRefinedState_InheritedExit();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedDo <em>Inherited Do</em>}'.
+ * Returns the meta object for the containment reference '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedDo <em>Inherited Do</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited Do</em>'.
+ * @return the meta object for the containment reference '<em>Inherited Do</em>'.
* @see org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedDo()
* @see #getExpandedRefinedState()
* @generated
*/
- EAttribute getExpandedRefinedState_InheritedDo();
+ EReference getExpandedRefinedState_InheritedDo();
/**
* Returns the meta object for enum '{@link org.eclipse.etrice.core.genmodel.etricegen.PortKind <em>Port Kind</em>}'.
@@ -2983,28 +2983,28 @@ public interface ETriceGenPackage extends EPackage {
EClass EXPANDED_REFINED_STATE = eINSTANCE.getExpandedRefinedState();
/**
- * The meta object literal for the '<em><b>Inherited Entry</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Inherited Entry</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute EXPANDED_REFINED_STATE__INHERITED_ENTRY = eINSTANCE.getExpandedRefinedState_InheritedEntry();
+ EReference EXPANDED_REFINED_STATE__INHERITED_ENTRY = eINSTANCE.getExpandedRefinedState_InheritedEntry();
/**
- * The meta object literal for the '<em><b>Inherited Exit</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Inherited Exit</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute EXPANDED_REFINED_STATE__INHERITED_EXIT = eINSTANCE.getExpandedRefinedState_InheritedExit();
+ EReference EXPANDED_REFINED_STATE__INHERITED_EXIT = eINSTANCE.getExpandedRefinedState_InheritedExit();
/**
- * The meta object literal for the '<em><b>Inherited Do</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Inherited Do</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute EXPANDED_REFINED_STATE__INHERITED_DO = eINSTANCE.getExpandedRefinedState_InheritedDo();
+ EReference EXPANDED_REFINED_STATE__INHERITED_DO = eINSTANCE.getExpandedRefinedState_InheritedDo();
/**
* The meta object literal for the '{@link org.eclipse.etrice.core.genmodel.etricegen.PortKind <em>Port Kind</em>}' enum.
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ExpandedRefinedState.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ExpandedRefinedState.java
index b651c5bf3..00fac5c21 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ExpandedRefinedState.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/ExpandedRefinedState.java
@@ -6,6 +6,7 @@
*/
package org.eclipse.etrice.core.genmodel.etricegen;
+import org.eclipse.etrice.core.room.DetailCode;
import org.eclipse.etrice.core.room.SimpleState;
import org.eclipse.etrice.core.room.RefinedState;
@@ -29,82 +30,82 @@ import org.eclipse.etrice.core.room.RefinedState;
*/
public interface ExpandedRefinedState extends SimpleState {
/**
- * Returns the value of the '<em><b>Inherited Entry</b></em>' attribute.
+ * Returns the value of the '<em><b>Inherited Entry</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inherited Entry</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Inherited Entry</em>' attribute.
- * @see #setInheritedEntry(String)
+ * @return the value of the '<em>Inherited Entry</em>' containment reference.
+ * @see #setInheritedEntry(DetailCode)
* @see org.eclipse.etrice.core.genmodel.etricegen.ETriceGenPackage#getExpandedRefinedState_InheritedEntry()
- * @model
+ * @model containment="true"
* @generated
*/
- String getInheritedEntry();
+ DetailCode getInheritedEntry();
/**
- * Sets the value of the '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedEntry <em>Inherited Entry</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedEntry <em>Inherited Entry</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Inherited Entry</em>' attribute.
+ * @param value the new value of the '<em>Inherited Entry</em>' containment reference.
* @see #getInheritedEntry()
* @generated
*/
- void setInheritedEntry(String value);
+ void setInheritedEntry(DetailCode value);
/**
- * Returns the value of the '<em><b>Inherited Exit</b></em>' attribute.
+ * Returns the value of the '<em><b>Inherited Exit</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inherited Exit</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Inherited Exit</em>' attribute.
- * @see #setInheritedExit(String)
+ * @return the value of the '<em>Inherited Exit</em>' containment reference.
+ * @see #setInheritedExit(DetailCode)
* @see org.eclipse.etrice.core.genmodel.etricegen.ETriceGenPackage#getExpandedRefinedState_InheritedExit()
- * @model
+ * @model containment="true"
* @generated
*/
- String getInheritedExit();
+ DetailCode getInheritedExit();
/**
- * Sets the value of the '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedExit <em>Inherited Exit</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedExit <em>Inherited Exit</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Inherited Exit</em>' attribute.
+ * @param value the new value of the '<em>Inherited Exit</em>' containment reference.
* @see #getInheritedExit()
* @generated
*/
- void setInheritedExit(String value);
+ void setInheritedExit(DetailCode value);
/**
- * Returns the value of the '<em><b>Inherited Do</b></em>' attribute.
+ * Returns the value of the '<em><b>Inherited Do</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inherited Do</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Inherited Do</em>' attribute.
- * @see #setInheritedDo(String)
+ * @return the value of the '<em>Inherited Do</em>' containment reference.
+ * @see #setInheritedDo(DetailCode)
* @see org.eclipse.etrice.core.genmodel.etricegen.ETriceGenPackage#getExpandedRefinedState_InheritedDo()
- * @model
+ * @model containment="true"
* @generated
*/
- String getInheritedDo();
+ DetailCode getInheritedDo();
/**
- * Sets the value of the '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedDo <em>Inherited Do</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState#getInheritedDo <em>Inherited Do</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Inherited Do</em>' attribute.
+ * @param value the new value of the '<em>Inherited Do</em>' containment reference.
* @see #getInheritedDo()
* @generated
*/
- void setInheritedDo(String value);
+ void setInheritedDo(DetailCode value);
/**
* <!-- begin-user-doc -->
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ETriceGenPackageImpl.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ETriceGenPackageImpl.java
index 0dc35269d..16e8a0dca 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ETriceGenPackageImpl.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ETriceGenPackageImpl.java
@@ -885,8 +885,8 @@ public class ETriceGenPackageImpl extends EPackageImpl implements ETriceGenPacka
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getExpandedRefinedState_InheritedEntry() {
- return (EAttribute)expandedRefinedStateEClass.getEStructuralFeatures().get(0);
+ public EReference getExpandedRefinedState_InheritedEntry() {
+ return (EReference)expandedRefinedStateEClass.getEStructuralFeatures().get(0);
}
/**
@@ -894,8 +894,8 @@ public class ETriceGenPackageImpl extends EPackageImpl implements ETriceGenPacka
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getExpandedRefinedState_InheritedExit() {
- return (EAttribute)expandedRefinedStateEClass.getEStructuralFeatures().get(1);
+ public EReference getExpandedRefinedState_InheritedExit() {
+ return (EReference)expandedRefinedStateEClass.getEStructuralFeatures().get(1);
}
/**
@@ -903,8 +903,8 @@ public class ETriceGenPackageImpl extends EPackageImpl implements ETriceGenPacka
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getExpandedRefinedState_InheritedDo() {
- return (EAttribute)expandedRefinedStateEClass.getEStructuralFeatures().get(2);
+ public EReference getExpandedRefinedState_InheritedDo() {
+ return (EReference)expandedRefinedStateEClass.getEStructuralFeatures().get(2);
}
/**
@@ -1032,9 +1032,9 @@ public class ETriceGenPackageImpl extends EPackageImpl implements ETriceGenPacka
createEReference(expandedActorClassEClass, EXPANDED_ACTOR_CLASS__STATE_MACHINE);
expandedRefinedStateEClass = createEClass(EXPANDED_REFINED_STATE);
- createEAttribute(expandedRefinedStateEClass, EXPANDED_REFINED_STATE__INHERITED_ENTRY);
- createEAttribute(expandedRefinedStateEClass, EXPANDED_REFINED_STATE__INHERITED_EXIT);
- createEAttribute(expandedRefinedStateEClass, EXPANDED_REFINED_STATE__INHERITED_DO);
+ createEReference(expandedRefinedStateEClass, EXPANDED_REFINED_STATE__INHERITED_ENTRY);
+ createEReference(expandedRefinedStateEClass, EXPANDED_REFINED_STATE__INHERITED_EXIT);
+ createEReference(expandedRefinedStateEClass, EXPANDED_REFINED_STATE__INHERITED_DO);
// Create enums
portKindEEnum = createEEnum(PORT_KIND);
@@ -1258,9 +1258,9 @@ public class ETriceGenPackageImpl extends EPackageImpl implements ETriceGenPacka
addEParameter(op, theRoomPackage.getTransition(), "trans", 0, 1, IS_UNIQUE, IS_ORDERED);
initEClass(expandedRefinedStateEClass, ExpandedRefinedState.class, "ExpandedRefinedState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getExpandedRefinedState_InheritedEntry(), ecorePackage.getEString(), "inheritedEntry", null, 0, 1, ExpandedRefinedState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getExpandedRefinedState_InheritedExit(), ecorePackage.getEString(), "inheritedExit", null, 0, 1, ExpandedRefinedState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getExpandedRefinedState_InheritedDo(), ecorePackage.getEString(), "inheritedDo", null, 0, 1, ExpandedRefinedState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExpandedRefinedState_InheritedEntry(), theRoomPackage.getDetailCode(), null, "inheritedEntry", null, 0, 1, ExpandedRefinedState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExpandedRefinedState_InheritedExit(), theRoomPackage.getDetailCode(), null, "inheritedExit", null, 0, 1, ExpandedRefinedState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExpandedRefinedState_InheritedDo(), theRoomPackage.getDetailCode(), null, "inheritedDo", null, 0, 1, ExpandedRefinedState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
op = addEOperation(expandedRefinedStateEClass, null, "init", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, theRoomPackage.getRefinedState(), "rs", 0, 1, IS_UNIQUE, IS_ORDERED);
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedActorClassImpl.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedActorClassImpl.java
index afafbe5da..7a1095ce8 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedActorClassImpl.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedActorClassImpl.java
@@ -12,9 +12,9 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
-import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
+import java.util.Map.Entry;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
@@ -41,6 +41,7 @@ import org.eclipse.etrice.core.room.ActorCommunicationType;
import org.eclipse.etrice.core.room.ChoicePoint;
import org.eclipse.etrice.core.room.ChoicepointTerminal;
import org.eclipse.etrice.core.room.ContinuationTransition;
+import org.eclipse.etrice.core.room.DetailCode;
import org.eclipse.etrice.core.room.EntryPoint;
import org.eclipse.etrice.core.room.ExitPoint;
import org.eclipse.etrice.core.room.ExternalPort;
@@ -54,6 +55,7 @@ import org.eclipse.etrice.core.room.Port;
import org.eclipse.etrice.core.room.ProtocolClass;
import org.eclipse.etrice.core.room.RefableType;
import org.eclipse.etrice.core.room.RefinedState;
+import org.eclipse.etrice.core.room.RefinedTransition;
import org.eclipse.etrice.core.room.RoomFactory;
import org.eclipse.etrice.core.room.RoomPackage;
import org.eclipse.etrice.core.room.SAPRef;
@@ -314,23 +316,68 @@ public class ExpandedActorClassImpl extends EObjectImpl implements ExpandedActor
}
private void buildStateGraph() {
- // create a list of super classes, super first, sub-classes last
- ArrayList<StateGraph> sms = new ArrayList<StateGraph>();
+ // create a list of state machines, derived first, base last
+ ArrayList<StateGraph> stateMachines = new ArrayList<StateGraph>();
ActorClass orig = getActorClass();
if (orig.getStateMachine()!=null)
- sms.add(0, orig.getStateMachine());
+ stateMachines.add(orig.getStateMachine());
while (orig.getBase()!=null) {
orig = orig.getBase();
if (orig.getStateMachine()!=null)
- sms.add(0, orig.getStateMachine());
+ stateMachines.add(orig.getStateMachine());
}
+ Collection<StateGraph> copiedStateMachines = createCopyOfStateMachines(stateMachines);
+
+ collectContentsInNewStateMachine(copiedStateMachines);
+
+ introduceExpandedRefinedStates(getStateMachine());
+ }
+
+ private void collectContentsInNewStateMachine(Collection<StateGraph> copiedStateMachines) {
+ // move all state machine contents to our state machine (which we create newly)
+ StateGraph myStateMachine = RoomFactory.eINSTANCE.createStateGraph();
+ setStateMachine(myStateMachine);
+
+ HashMap<Transition, DetailCode> trans2refinedAction = new HashMap<Transition, DetailCode>();
+ for (StateGraph copiedStateMachine : copiedStateMachines) {
+ myStateMachine.getChPoints().addAll(copiedStateMachine.getChPoints());
+ myStateMachine.getStates().addAll(copiedStateMachine.getStates());
+ myStateMachine.getTrPoints().addAll(copiedStateMachine.getTrPoints());
+ myStateMachine.getTransitions().addAll(copiedStateMachine.getTransitions());
+
+ // collect the refined action code in a hash map
+ for (RefinedTransition rt : copiedStateMachine.getRefinedTransitions()) {
+ if (rt.getAction()==null || rt.getAction().getCommands().isEmpty())
+ continue;
+
+ DetailCode code = trans2refinedAction.get(rt.getTarget());
+ if (code==null) {
+ code = RoomFactory.eINSTANCE.createDetailCode();
+ trans2refinedAction.put(rt.getTarget(), code);
+ }
+
+ code.getCommands().addAll(0, rt.getAction().getCommands());
+ }
+ }
+
+ // for refined transitions we just append the action code to the target
+ // we can do this since the target is a copy just for this class
+ for (Entry<Transition, DetailCode> entry : trans2refinedAction.entrySet()) {
+ if (entry.getKey().getAction()==null)
+ entry.getKey().setAction(entry.getValue());
+ else
+ entry.getKey().getAction().getCommands().addAll(entry.getValue().getCommands());
+ }
+ }
+
+ private Collection<StateGraph> createCopyOfStateMachines(List<StateGraph> origStateMachines) {
// create a self contained copy of all actor classes
// references to interface items (ports, saps and spps) point to contents of the original actor class
// Collection<StateGraph> all = EcoreUtil.copyAll(sms);
// we use the copier directly since we need access to the map
Copier copier = new Copier();
- Collection<StateGraph> all = copier.copyAll(sms);
+ Collection<StateGraph> copiedStateMachines = copier.copyAll(origStateMachines);
copier.copyReferences();
for (EObject o : copier.keySet()) {
EObject c = copier.get(o);
@@ -338,11 +385,8 @@ public class ExpandedActorClassImpl extends EObjectImpl implements ExpandedActor
}
if (getActorClass().getStateMachine()!=null) {
- // last state machine is ours
- StateGraph self = null;
- for (Iterator<StateGraph> it = all.iterator(); it.hasNext();) {
- self = it.next();
- }
+ // first state machine is ours
+ StateGraph self = copiedStateMachines.iterator().next();
// flag own objects
TreeIterator<EObject> it = self.eAllContents();
@@ -352,18 +396,7 @@ public class ExpandedActorClassImpl extends EObjectImpl implements ExpandedActor
addOwnObject((StateGraphItem)obj);
}
}
-
- // now we move all state machine contents to our state machine
- StateGraph sm = RoomFactory.eINSTANCE.createStateGraph();
- setStateMachine(sm);
- for (StateGraph sml : all) {
- sm.getChPoints().addAll(sml.getChPoints());
- sm.getStates().addAll(sml.getStates());
- sm.getTrPoints().addAll(sml.getTrPoints());
- sm.getTransitions().addAll(sml.getTransitions());
- }
-
- introduceExpandedRefinedStates(sm);
+ return copiedStateMachines;
}
/**
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedRefinedStateImpl.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedRefinedStateImpl.java
index 731432271..dab24a366 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedRefinedStateImpl.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/impl/ExpandedRefinedStateImpl.java
@@ -7,10 +7,13 @@
package org.eclipse.etrice.core.genmodel.etricegen.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.etrice.core.genmodel.etricegen.ETriceGenPackage;
import org.eclipse.etrice.core.genmodel.etricegen.ExpandedRefinedState;
+import org.eclipse.etrice.core.room.DetailCode;
import org.eclipse.etrice.core.room.NonInitialTransition;
import org.eclipse.etrice.core.room.RefinedState;
import org.eclipse.etrice.core.room.RoomFactory;
@@ -39,72 +42,76 @@ import org.eclipse.etrice.core.room.util.RoomHelpers;
*/
public class ExpandedRefinedStateImpl extends SimpleStateImpl implements ExpandedRefinedState {
/**
- * The default value of the '{@link #getInheritedEntry() <em>Inherited Entry</em>}' attribute.
+ * The cached value of the '{@link #getInheritedEntry() <em>Inherited Entry</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInheritedEntry()
* @generated
* @ordered
*/
- protected static final String INHERITED_ENTRY_EDEFAULT = null;
+ protected DetailCode inheritedEntry;
/**
- * The cached value of the '{@link #getInheritedEntry() <em>Inherited Entry</em>}' attribute.
+ * The cached value of the '{@link #getInheritedExit() <em>Inherited Exit</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getInheritedEntry()
+ * @see #getInheritedExit()
* @generated
* @ordered
*/
- protected String inheritedEntry = INHERITED_ENTRY_EDEFAULT;
+ protected DetailCode inheritedExit;
/**
- * The default value of the '{@link #getInheritedExit() <em>Inherited Exit</em>}' attribute.
+ * The cached value of the '{@link #getInheritedDo() <em>Inherited Do</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getInheritedExit()
+ * @see #getInheritedDo()
* @generated
* @ordered
*/
- protected static final String INHERITED_EXIT_EDEFAULT = null;
+ protected DetailCode inheritedDo;
/**
- * The cached value of the '{@link #getInheritedExit() <em>Inherited Exit</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getInheritedExit()
* @generated
- * @ordered
*/
- protected String inheritedExit = INHERITED_EXIT_EDEFAULT;
+ protected ExpandedRefinedStateImpl() {
+ super();
+ }
/**
- * The default value of the '{@link #getInheritedDo() <em>Inherited Do</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getInheritedDo()
* @generated
- * @ordered
*/
- protected static final String INHERITED_DO_EDEFAULT = null;
+ @Override
+ protected EClass eStaticClass() {
+ return ETriceGenPackage.Literals.EXPANDED_REFINED_STATE;
+ }
/**
- * The cached value of the '{@link #getInheritedDo() <em>Inherited Do</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getInheritedDo()
* @generated
- * @ordered
*/
- protected String inheritedDo = INHERITED_DO_EDEFAULT;
+ public DetailCode getInheritedEntry() {
+ return inheritedEntry;
+ }
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected ExpandedRefinedStateImpl() {
- super();
+ public NotificationChain basicSetInheritedEntry(DetailCode newInheritedEntry, NotificationChain msgs) {
+ DetailCode oldInheritedEntry = inheritedEntry;
+ inheritedEntry = newInheritedEntry;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY, oldInheritedEntry, newInheritedEntry);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
}
/**
@@ -112,9 +119,18 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- @Override
- protected EClass eStaticClass() {
- return ETriceGenPackage.Literals.EXPANDED_REFINED_STATE;
+ public void setInheritedEntry(DetailCode newInheritedEntry) {
+ if (newInheritedEntry != inheritedEntry) {
+ NotificationChain msgs = null;
+ if (inheritedEntry != null)
+ msgs = ((InternalEObject)inheritedEntry).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY, null, msgs);
+ if (newInheritedEntry != null)
+ msgs = ((InternalEObject)newInheritedEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY, null, msgs);
+ msgs = basicSetInheritedEntry(newInheritedEntry, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY, newInheritedEntry, newInheritedEntry));
}
/**
@@ -122,8 +138,8 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- public String getInheritedEntry() {
- return inheritedEntry;
+ public DetailCode getInheritedExit() {
+ return inheritedExit;
}
/**
@@ -131,11 +147,14 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- public void setInheritedEntry(String newInheritedEntry) {
- String oldInheritedEntry = inheritedEntry;
- inheritedEntry = newInheritedEntry;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY, oldInheritedEntry, inheritedEntry));
+ public NotificationChain basicSetInheritedExit(DetailCode newInheritedExit, NotificationChain msgs) {
+ DetailCode oldInheritedExit = inheritedExit;
+ inheritedExit = newInheritedExit;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT, oldInheritedExit, newInheritedExit);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
}
/**
@@ -143,8 +162,18 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- public String getInheritedExit() {
- return inheritedExit;
+ public void setInheritedExit(DetailCode newInheritedExit) {
+ if (newInheritedExit != inheritedExit) {
+ NotificationChain msgs = null;
+ if (inheritedExit != null)
+ msgs = ((InternalEObject)inheritedExit).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT, null, msgs);
+ if (newInheritedExit != null)
+ msgs = ((InternalEObject)newInheritedExit).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT, null, msgs);
+ msgs = basicSetInheritedExit(newInheritedExit, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT, newInheritedExit, newInheritedExit));
}
/**
@@ -152,11 +181,8 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- public void setInheritedExit(String newInheritedExit) {
- String oldInheritedExit = inheritedExit;
- inheritedExit = newInheritedExit;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT, oldInheritedExit, inheritedExit));
+ public DetailCode getInheritedDo() {
+ return inheritedDo;
}
/**
@@ -164,8 +190,14 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- public String getInheritedDo() {
- return inheritedDo;
+ public NotificationChain basicSetInheritedDo(DetailCode newInheritedDo, NotificationChain msgs) {
+ DetailCode oldInheritedDo = inheritedDo;
+ inheritedDo = newInheritedDo;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO, oldInheritedDo, newInheritedDo);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
}
/**
@@ -173,11 +205,18 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* <!-- end-user-doc -->
* @generated
*/
- public void setInheritedDo(String newInheritedDo) {
- String oldInheritedDo = inheritedDo;
- inheritedDo = newInheritedDo;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO, oldInheritedDo, inheritedDo));
+ public void setInheritedDo(DetailCode newInheritedDo) {
+ if (newInheritedDo != inheritedDo) {
+ NotificationChain msgs = null;
+ if (inheritedDo != null)
+ msgs = ((InternalEObject)inheritedDo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO, null, msgs);
+ if (newInheritedDo != null)
+ msgs = ((InternalEObject)newInheritedDo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO, null, msgs);
+ msgs = basicSetInheritedDo(newInheritedDo, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO, newInheritedDo, newInheritedDo));
}
/**
@@ -251,6 +290,24 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
* @generated
*/
@Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY:
+ return basicSetInheritedEntry(null, msgs);
+ case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT:
+ return basicSetInheritedExit(null, msgs);
+ case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO:
+ return basicSetInheritedDo(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 ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY:
@@ -272,13 +329,13 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY:
- setInheritedEntry((String)newValue);
+ setInheritedEntry((DetailCode)newValue);
return;
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT:
- setInheritedExit((String)newValue);
+ setInheritedExit((DetailCode)newValue);
return;
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO:
- setInheritedDo((String)newValue);
+ setInheritedDo((DetailCode)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -293,13 +350,13 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
public void eUnset(int featureID) {
switch (featureID) {
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY:
- setInheritedEntry(INHERITED_ENTRY_EDEFAULT);
+ setInheritedEntry((DetailCode)null);
return;
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT:
- setInheritedExit(INHERITED_EXIT_EDEFAULT);
+ setInheritedExit((DetailCode)null);
return;
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO:
- setInheritedDo(INHERITED_DO_EDEFAULT);
+ setInheritedDo((DetailCode)null);
return;
}
super.eUnset(featureID);
@@ -314,33 +371,13 @@ public class ExpandedRefinedStateImpl extends SimpleStateImpl implements Expande
public boolean eIsSet(int featureID) {
switch (featureID) {
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_ENTRY:
- return INHERITED_ENTRY_EDEFAULT == null ? inheritedEntry != null : !INHERITED_ENTRY_EDEFAULT.equals(inheritedEntry);
+ return inheritedEntry != null;
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_EXIT:
- return INHERITED_EXIT_EDEFAULT == null ? inheritedExit != null : !INHERITED_EXIT_EDEFAULT.equals(inheritedExit);
+ return inheritedExit != null;
case ETriceGenPackage.EXPANDED_REFINED_STATE__INHERITED_DO:
- return INHERITED_DO_EDEFAULT == null ? inheritedDo != null : !INHERITED_DO_EDEFAULT.equals(inheritedDo);
+ return inheritedDo != 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(" (inheritedEntry: ");
- result.append(inheritedEntry);
- result.append(", inheritedExit: ");
- result.append(inheritedExit);
- result.append(", inheritedDo: ");
- result.append(inheritedDo);
- result.append(')');
- return result.toString();
- }
-
} //ExpandedRefinedStateImpl
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenAdapterFactory.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenAdapterFactory.java
index 356ede60e..356f85a56 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenAdapterFactory.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenAdapterFactory.java
@@ -10,6 +10,7 @@ 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.core.genmodel.etricegen.*;
import org.eclipse.etrice.core.genmodel.etricegen.ActiveTrigger;
import org.eclipse.etrice.core.genmodel.etricegen.ActorInstance;
import org.eclipse.etrice.core.genmodel.etricegen.BindingInstance;
diff --git a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenSwitch.java b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenSwitch.java
index 32460d46d..09442a135 100644
--- a/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenSwitch.java
+++ b/plugins/org.eclipse.etrice.core.genmodel/src/org/eclipse/etrice/core/genmodel/etricegen/util/ETriceGenSwitch.java
@@ -9,6 +9,7 @@ package org.eclipse.etrice.core.genmodel.etricegen.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
+import org.eclipse.etrice.core.genmodel.etricegen.*;
import org.eclipse.etrice.core.genmodel.etricegen.ActiveTrigger;
import org.eclipse.etrice.core.genmodel.etricegen.ActorInstance;
import org.eclipse.etrice.core.genmodel.etricegen.BindingInstance;
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractRoomProposalProvider.java b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractRoomProposalProvider.java
index e3fecfc93..7af6a645b 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractRoomProposalProvider.java
+++ b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractRoomProposalProvider.java
@@ -509,6 +509,9 @@ public class AbstractRoomProposalProvider extends TerminalsProposalProvider {
public void completeStateGraph_Transitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
+ public void completeStateGraph_RefinedTransitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
public void completeStateMachine_States(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
@@ -521,6 +524,9 @@ public class AbstractRoomProposalProvider extends TerminalsProposalProvider {
public void completeStateMachine_Transitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
+ public void completeStateMachine_RefinedTransitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
public void completeSimpleState_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
@@ -659,6 +665,15 @@ public class AbstractRoomProposalProvider extends TerminalsProposalProvider {
public void completeCPBranchTransition_Action(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
+ public void completeRefinedTransition_Target(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRefinedTransition_Docu(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRefinedTransition_Action(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
public void completeStateTerminal_State(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
}
@@ -930,6 +945,9 @@ public class AbstractRoomProposalProvider extends TerminalsProposalProvider {
public void complete_CPBranchTransition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
+ public void complete_RefinedTransition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
public void complete_TransitionTerminal(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/RoomParser.java b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/RoomParser.java
index 3f52ff88d..c13caf042 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/RoomParser.java
+++ b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/RoomParser.java
@@ -183,6 +183,7 @@ public class RoomParser extends AbstractContentAssistParser {
put(grammarAccess.getGuardedTransitionAccess().getGroup_10(), "rule__GuardedTransition__Group_10__0");
put(grammarAccess.getCPBranchTransitionAccess().getGroup(), "rule__CPBranchTransition__Group__0");
put(grammarAccess.getCPBranchTransitionAccess().getGroup_10(), "rule__CPBranchTransition__Group_10__0");
+ put(grammarAccess.getRefinedTransitionAccess().getGroup(), "rule__RefinedTransition__Group__0");
put(grammarAccess.getTrPointTerminalAccess().getGroup(), "rule__TrPointTerminal__Group__0");
put(grammarAccess.getSubStateTrPointTerminalAccess().getGroup(), "rule__SubStateTrPointTerminal__Group__0");
put(grammarAccess.getChoicepointTerminalAccess().getGroup(), "rule__ChoicepointTerminal__Group__0");
@@ -373,10 +374,12 @@ public class RoomParser extends AbstractContentAssistParser {
put(grammarAccess.getStateGraphAccess().getTrPointsAssignment_2_1(), "rule__StateGraph__TrPointsAssignment_2_1");
put(grammarAccess.getStateGraphAccess().getChPointsAssignment_2_2(), "rule__StateGraph__ChPointsAssignment_2_2");
put(grammarAccess.getStateGraphAccess().getTransitionsAssignment_2_3(), "rule__StateGraph__TransitionsAssignment_2_3");
+ put(grammarAccess.getStateGraphAccess().getRefinedTransitionsAssignment_2_4(), "rule__StateGraph__RefinedTransitionsAssignment_2_4");
put(grammarAccess.getStateMachineAccess().getStatesAssignment_3_0(), "rule__StateMachine__StatesAssignment_3_0");
put(grammarAccess.getStateMachineAccess().getTrPointsAssignment_3_1(), "rule__StateMachine__TrPointsAssignment_3_1");
put(grammarAccess.getStateMachineAccess().getChPointsAssignment_3_2(), "rule__StateMachine__ChPointsAssignment_3_2");
put(grammarAccess.getStateMachineAccess().getTransitionsAssignment_3_3(), "rule__StateMachine__TransitionsAssignment_3_3");
+ put(grammarAccess.getStateMachineAccess().getRefinedTransitionsAssignment_3_4(), "rule__StateMachine__RefinedTransitionsAssignment_3_4");
put(grammarAccess.getSimpleStateAccess().getNameAssignment_1(), "rule__SimpleState__NameAssignment_1");
put(grammarAccess.getSimpleStateAccess().getDocuAssignment_2(), "rule__SimpleState__DocuAssignment_2");
put(grammarAccess.getSimpleStateAccess().getEntryCodeAssignment_3_1_1(), "rule__SimpleState__EntryCodeAssignment_3_1_1");
@@ -424,6 +427,9 @@ public class RoomParser extends AbstractContentAssistParser {
put(grammarAccess.getCPBranchTransitionAccess().getDocuAssignment_6(), "rule__CPBranchTransition__DocuAssignment_6");
put(grammarAccess.getCPBranchTransitionAccess().getConditionAssignment_9(), "rule__CPBranchTransition__ConditionAssignment_9");
put(grammarAccess.getCPBranchTransitionAccess().getActionAssignment_10_1(), "rule__CPBranchTransition__ActionAssignment_10_1");
+ put(grammarAccess.getRefinedTransitionAccess().getTargetAssignment_1(), "rule__RefinedTransition__TargetAssignment_1");
+ put(grammarAccess.getRefinedTransitionAccess().getDocuAssignment_2(), "rule__RefinedTransition__DocuAssignment_2");
+ put(grammarAccess.getRefinedTransitionAccess().getActionAssignment_5(), "rule__RefinedTransition__ActionAssignment_5");
put(grammarAccess.getStateTerminalAccess().getStateAssignment(), "rule__StateTerminal__StateAssignment");
put(grammarAccess.getTrPointTerminalAccess().getTrPointAssignment_1(), "rule__TrPointTerminal__TrPointAssignment_1");
put(grammarAccess.getSubStateTrPointTerminalAccess().getTrPointAssignment_0(), "rule__SubStateTrPointTerminal__TrPointAssignment_0");
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g
index 258edd2e5..e43b4d2b3 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g
+++ b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g
@@ -1886,6 +1886,34 @@ finally {
+// Entry rule entryRuleRefinedTransition
+entryRuleRefinedTransition
+:
+{ before(grammarAccess.getRefinedTransitionRule()); }
+ ruleRefinedTransition
+{ after(grammarAccess.getRefinedTransitionRule()); }
+ EOF
+;
+
+// Rule RefinedTransition
+ruleRefinedTransition
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getGroup()); }
+(rule__RefinedTransition__Group__0)
+{ after(grammarAccess.getRefinedTransitionAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
// Entry rule entryRuleTransitionTerminal
entryRuleTransitionTerminal
:
@@ -2840,6 +2868,12 @@ rule__StateGraph__Alternatives_2
{ after(grammarAccess.getStateGraphAccess().getTransitionsAssignment_2_3()); }
)
+ |(
+{ before(grammarAccess.getStateGraphAccess().getRefinedTransitionsAssignment_2_4()); }
+(rule__StateGraph__RefinedTransitionsAssignment_2_4)
+{ after(grammarAccess.getStateGraphAccess().getRefinedTransitionsAssignment_2_4()); }
+)
+
;
finally {
restoreStackSize(stackSize);
@@ -2874,6 +2908,12 @@ rule__StateMachine__Alternatives_3
{ after(grammarAccess.getStateMachineAccess().getTransitionsAssignment_3_3()); }
)
+ |(
+{ before(grammarAccess.getStateMachineAccess().getRefinedTransitionsAssignment_3_4()); }
+(rule__StateMachine__RefinedTransitionsAssignment_3_4)
+{ after(grammarAccess.getStateMachineAccess().getRefinedTransitionsAssignment_3_4()); }
+)
+
;
finally {
restoreStackSize(stackSize);
@@ -18017,6 +18057,230 @@ finally {
+rule__RefinedTransition__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__0__Impl
+ rule__RefinedTransition__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getRefinedTransitionKeyword_0()); }
+
+ 'RefinedTransition'
+
+{ after(grammarAccess.getRefinedTransitionAccess().getRefinedTransitionKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RefinedTransition__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__1__Impl
+ rule__RefinedTransition__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getTargetAssignment_1()); }
+(rule__RefinedTransition__TargetAssignment_1)
+{ after(grammarAccess.getRefinedTransitionAccess().getTargetAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RefinedTransition__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__2__Impl
+ rule__RefinedTransition__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getDocuAssignment_2()); }
+(rule__RefinedTransition__DocuAssignment_2)?
+{ after(grammarAccess.getRefinedTransitionAccess().getDocuAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RefinedTransition__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__3__Impl
+ rule__RefinedTransition__Group__4
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getLeftCurlyBracketKeyword_3()); }
+
+ '{'
+
+{ after(grammarAccess.getRefinedTransitionAccess().getLeftCurlyBracketKeyword_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RefinedTransition__Group__4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__4__Impl
+ rule__RefinedTransition__Group__5
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__4__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getActionKeyword_4()); }
+
+ 'action'
+
+{ after(grammarAccess.getRefinedTransitionAccess().getActionKeyword_4()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RefinedTransition__Group__5
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__5__Impl
+ rule__RefinedTransition__Group__6
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__5__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getActionAssignment_5()); }
+(rule__RefinedTransition__ActionAssignment_5)
+{ after(grammarAccess.getRefinedTransitionAccess().getActionAssignment_5()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RefinedTransition__Group__6
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RefinedTransition__Group__6__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__Group__6__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getRightCurlyBracketKeyword_6()); }
+
+ '}'
+
+{ after(grammarAccess.getRefinedTransitionAccess().getRightCurlyBracketKeyword_6()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
rule__TrPointTerminal__Group__0
@init {
int stackSize = keepStackSize();
@@ -22349,6 +22613,21 @@ finally {
restoreStackSize(stackSize);
}
+rule__StateGraph__RefinedTransitionsAssignment_2_4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getStateGraphAccess().getRefinedTransitionsRefinedTransitionParserRuleCall_2_4_0()); }
+ ruleRefinedTransition{ after(grammarAccess.getStateGraphAccess().getRefinedTransitionsRefinedTransitionParserRuleCall_2_4_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
rule__StateMachine__StatesAssignment_3_0
@init {
int stackSize = keepStackSize();
@@ -22409,6 +22688,21 @@ finally {
restoreStackSize(stackSize);
}
+rule__StateMachine__RefinedTransitionsAssignment_3_4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getStateMachineAccess().getRefinedTransitionsRefinedTransitionParserRuleCall_3_4_0()); }
+ ruleRefinedTransition{ after(grammarAccess.getStateMachineAccess().getRefinedTransitionsRefinedTransitionParserRuleCall_3_4_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
rule__SimpleState__NameAssignment_1
@init {
int stackSize = keepStackSize();
@@ -23126,6 +23420,55 @@ finally {
restoreStackSize(stackSize);
}
+rule__RefinedTransition__TargetAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getTargetTransitionCrossReference_1_0()); }
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getTargetTransitionFQNParserRuleCall_1_0_1()); }
+ ruleFQN{ after(grammarAccess.getRefinedTransitionAccess().getTargetTransitionFQNParserRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getRefinedTransitionAccess().getTargetTransitionCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__DocuAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getDocuDocumentationParserRuleCall_2_0()); }
+ ruleDocumentation{ after(grammarAccess.getRefinedTransitionAccess().getDocuDocumentationParserRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RefinedTransition__ActionAssignment_5
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRefinedTransitionAccess().getActionDetailCodeParserRuleCall_5_0()); }
+ ruleDetailCode{ after(grammarAccess.getRefinedTransitionAccess().getActionDetailCodeParserRuleCall_5_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
rule__StateTerminal__StateAssignment
@init {
int stackSize = keepStackSize();
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.tokens b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.tokens
index 0895c352f..0b3764125 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.tokens
+++ b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.tokens
@@ -59,6 +59,7 @@ T__64=64
T__65=65
T__62=62
T__63=63
+T__114=114
T__61=61
T__60=60
T__55=55
@@ -110,6 +111,7 @@ T__39=39
RULE_WS=9
'usercode1'=34
'prio'=72
+'RefinedTransition'=100
'Message'=52
'TransitionPoint'=89
'SubSystemRef'=69
@@ -125,14 +127,14 @@ RULE_WS=9
'('=29
'ref'=79
'of'=67
-'cp'=101
+'cp'=102
'default'=28
'ptBoolean'=14
'incoming'=45
']'=39
'usercode3'=36
'LogicalSystem'=68
-'.*'=108
+'.*'=109
'DataClass'=32
'='=40
'relay_sap'=80
@@ -143,9 +145,9 @@ RULE_WS=9
'PrimitiveType'=26
'ChoicePoint'=92
'usercode2'=35
-'handler'=113
+'handler'=114
'external'=63
-'<'=102
+'<'=103
'datadriven'=19
'['=38
'RefinedState'=88
@@ -154,11 +156,11 @@ RULE_WS=9
'semantics'=55
'out'=57
'satisfied_by'=78
-'~'=109
+'~'=110
'ProtocolClass'=44
'model'=12
'SubSystemClass'=70
-'>'=103
+'>'=104
'sync'=20
'SubProtocol'=51
'Transition'=93
@@ -166,7 +168,7 @@ RULE_WS=9
'LayerConnection'=77
'.'=73
'regular'=47
-'import'=106
+'import'=107
'Structure'=60
'Behavior'=61
'StateMachine'=82
@@ -174,18 +176,18 @@ RULE_WS=9
'void'=11
'ActorClass'=58
'ptCharacter'=17
-'my'=100
-'private'=110
+'my'=101
+'private'=111
'ActorRef'=81
'exit'=85
'guard'=98
-'conjugated'=112
+'conjugated'=113
','=42
'ptReal'=16
'in'=56
'sends'=43
'async'=21
-'|'=104
+'|'=105
'State'=83
'LogicalThread'=71
'usercode'=53
@@ -193,7 +195,7 @@ RULE_WS=9
'RoomModel'=22
'Port'=62
'sub'=76
-'@'=105
+'@'=106
')'=30
'subgraph'=87
'handle'=54
@@ -202,7 +204,7 @@ RULE_WS=9
'do'=86
'}'=24
'SAP'=64
-'abstract'=111
+'abstract'=112
'EntryPoint'=90
'cond'=99
'outgoing'=46
@@ -210,4 +212,4 @@ RULE_WS=9
'PortClass'=48
'Attribute'=37
'ExternalType'=31
-'from'=107
+'from'=108
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomLexer.java b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomLexer.java
index 8b50bea58..1f0b824f6 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomLexer.java
+++ b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomLexer.java
@@ -74,6 +74,7 @@ public class InternalRoomLexer extends Lexer {
public static final int T__65=65;
public static final int T__62=62;
public static final int T__63=63;
+ public static final int T__114=114;
public static final int T__61=61;
public static final int T__60=60;
public static final int T__55=55;
@@ -2000,10 +2001,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__100;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:100:8: ( 'my' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:100:10: 'my'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:100:8: ( 'RefinedTransition' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:100:10: 'RefinedTransition'
{
- match("my");
+ match("RefinedTransition");
}
@@ -2021,10 +2022,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__101;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:101:8: ( 'cp' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:101:10: 'cp'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:101:8: ( 'my' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:101:10: 'my'
{
- match("cp");
+ match("my");
}
@@ -2042,10 +2043,11 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__102;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:102:8: ( '<' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:102:10: '<'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:102:8: ( 'cp' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:102:10: 'cp'
{
- match('<');
+ match("cp");
+
}
@@ -2062,10 +2064,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__103;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:103:8: ( '>' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:103:10: '>'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:103:8: ( '<' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:103:10: '<'
{
- match('>');
+ match('<');
}
@@ -2082,10 +2084,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__104;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:104:8: ( '|' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:104:10: '|'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:104:8: ( '>' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:104:10: '>'
{
- match('|');
+ match('>');
}
@@ -2102,10 +2104,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__105;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:105:8: ( '@' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:105:10: '@'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:105:8: ( '|' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:105:10: '|'
{
- match('@');
+ match('|');
}
@@ -2122,11 +2124,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__106;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:106:8: ( 'import' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:106:10: 'import'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:106:8: ( '@' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:106:10: '@'
{
- match("import");
-
+ match('@');
}
@@ -2143,10 +2144,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__107;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:107:8: ( 'from' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:107:10: 'from'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:107:8: ( 'import' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:107:10: 'import'
{
- match("from");
+ match("import");
}
@@ -2164,10 +2165,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__108;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:108:8: ( '.*' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:108:10: '.*'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:108:8: ( 'from' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:108:10: 'from'
{
- match(".*");
+ match("from");
}
@@ -2185,10 +2186,11 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__109;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:109:8: ( '~' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:109:10: '~'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:109:8: ( '.*' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:109:10: '.*'
{
- match('~');
+ match(".*");
+
}
@@ -2205,11 +2207,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__110;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:110:8: ( 'private' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:110:10: 'private'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:110:8: ( '~' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:110:10: '~'
{
- match("private");
-
+ match('~');
}
@@ -2226,10 +2227,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__111;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:111:8: ( 'abstract' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:111:10: 'abstract'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:111:8: ( 'private' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:111:10: 'private'
{
- match("abstract");
+ match("private");
}
@@ -2247,10 +2248,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__112;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:112:8: ( 'conjugated' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:112:10: 'conjugated'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:112:8: ( 'abstract' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:112:10: 'abstract'
{
- match("conjugated");
+ match("abstract");
}
@@ -2268,10 +2269,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = T__113;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:113:8: ( 'handler' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:113:10: 'handler'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:113:8: ( 'conjugated' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:113:10: 'conjugated'
{
- match("handler");
+ match("conjugated");
}
@@ -2284,15 +2285,36 @@ public class InternalRoomLexer extends Lexer {
}
// $ANTLR end "T__113"
+ // $ANTLR start "T__114"
+ public final void mT__114() throws RecognitionException {
+ try {
+ int _type = T__114;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:114:8: ( 'handler' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:114:10: 'handler'
+ {
+ match("handler");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__114"
+
// $ANTLR start "RULE_ID"
public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23443:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23443:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23786:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23786:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23443:11: ( '^' )?
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23786:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);
@@ -2301,7 +2323,7 @@ public class InternalRoomLexer extends Lexer {
}
switch (alt1) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23443:11: '^'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23786:11: '^'
{
match('^');
@@ -2319,7 +2341,7 @@ public class InternalRoomLexer extends Lexer {
recover(mse);
throw mse;}
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23443:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23786:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
@@ -2368,10 +2390,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23445:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23445:12: ( '0' .. '9' )+
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23788:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23788:12: ( '0' .. '9' )+
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23445:12: ( '0' .. '9' )+
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23788:12: ( '0' .. '9' )+
int cnt3=0;
loop3:
do {
@@ -2385,7 +2407,7 @@ public class InternalRoomLexer extends Lexer {
switch (alt3) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23445:13: '0' .. '9'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23788:13: '0' .. '9'
{
matchRange('0','9');
@@ -2417,10 +2439,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -2438,10 +2460,10 @@ public class InternalRoomLexer extends Lexer {
}
switch (alt6) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
{
match('\"');
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
loop4:
do {
int alt4=3;
@@ -2457,7 +2479,7 @@ public class InternalRoomLexer extends Lexer {
switch (alt4) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790: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') ) {
@@ -2473,7 +2495,7 @@ public class InternalRoomLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:66: ~ ( ( '\\\\' | '\"' ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:66: ~ ( ( '\\\\' | '\"' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
@@ -2498,10 +2520,10 @@ public class InternalRoomLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
{
match('\'');
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
loop5:
do {
int alt5=3;
@@ -2517,7 +2539,7 @@ public class InternalRoomLexer extends Lexer {
switch (alt5) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790: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') ) {
@@ -2533,7 +2555,7 @@ public class InternalRoomLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23447:137: ~ ( ( '\\\\' | '\\'' ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23790:137: ~ ( ( '\\\\' | '\\'' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
@@ -2576,12 +2598,12 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23449:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23449:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23792:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23792:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23449:24: ( options {greedy=false; } : . )*
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23792:24: ( options {greedy=false; } : . )*
loop7:
do {
int alt7=2;
@@ -2606,7 +2628,7 @@ public class InternalRoomLexer extends Lexer {
switch (alt7) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23449:52: .
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23792:52: .
{
matchAny();
@@ -2636,12 +2658,12 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:24: (~ ( ( '\\n' | '\\r' ) ) )*
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop8:
do {
int alt8=2;
@@ -2654,7 +2676,7 @@ public class InternalRoomLexer extends Lexer {
switch (alt8) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:24: ~ ( ( '\\n' | '\\r' ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794: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();
@@ -2674,7 +2696,7 @@ public class InternalRoomLexer extends Lexer {
}
} while (true);
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:40: ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:40: ( ( '\\r' )? '\\n' )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -2683,9 +2705,9 @@ public class InternalRoomLexer extends Lexer {
}
switch (alt10) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:41: ( '\\r' )? '\\n'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:41: ( '\\r' )? '\\n'
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:41: ( '\\r' )?
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:41: ( '\\r' )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -2694,7 +2716,7 @@ public class InternalRoomLexer extends Lexer {
}
switch (alt9) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23451:41: '\\r'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23794:41: '\\r'
{
match('\r');
@@ -2726,10 +2748,10 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23453:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23453:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23796:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23796:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23453:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23796:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0;
loop11:
do {
@@ -2783,8 +2805,8 @@ public class InternalRoomLexer extends Lexer {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23455:16: ( . )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23455:18: .
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23798:16: ( . )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:23798:18: .
{
matchAny();
@@ -2799,8 +2821,8 @@ public class InternalRoomLexer extends Lexer {
// $ANTLR end "RULE_ANY_OTHER"
public void mTokens() throws RecognitionException {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.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 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
- int alt12=110;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.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 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
+ int alt12=111;
alt12 = dfa12.predict(input);
switch (alt12) {
case 1 :
@@ -3525,49 +3547,56 @@ public class InternalRoomLexer extends Lexer {
}
break;
case 104 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:642: RULE_ID
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:642: T__114
{
- mRULE_ID();
+ mT__114();
}
break;
case 105 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:650: RULE_INT
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:649: RULE_ID
{
- mRULE_INT();
+ mRULE_ID();
}
break;
case 106 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:659: RULE_STRING
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:657: RULE_INT
{
- mRULE_STRING();
+ mRULE_INT();
}
break;
case 107 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:671: RULE_ML_COMMENT
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:666: RULE_STRING
{
- mRULE_ML_COMMENT();
+ mRULE_STRING();
}
break;
case 108 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:687: RULE_SL_COMMENT
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:678: RULE_ML_COMMENT
{
- mRULE_SL_COMMENT();
+ mRULE_ML_COMMENT();
}
break;
case 109 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:703: RULE_WS
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:694: RULE_SL_COMMENT
{
- mRULE_WS();
+ mRULE_SL_COMMENT();
}
break;
case 110 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:711: RULE_ANY_OTHER
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:710: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 111 :
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1:718: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
@@ -3595,25 +3624,25 @@ public class InternalRoomLexer extends Lexer {
"\70\1\uffff\17\70\1\uffff\5\70\1\u017b\12\70\1\u0186\2\uffff\2\70"+
"\1\u0189\5\70\1\uffff\2\70\1\uffff\3\70\1\uffff\1\u0194\21\70\1"+
"\u01a6\12\70\1\uffff\2\70\1\u01b4\7\70\1\uffff\2\70\1\uffff\1\70"+
- "\1\u01bf\1\70\1\u01c1\2\70\1\u01c4\3\70\1\uffff\20\70\1\u01d8\1"+
- "\uffff\1\70\1\u01da\11\70\1\u01e4\1\u01e5\1\uffff\2\70\1\u01e8\7"+
- "\70\1\uffff\1\70\1\uffff\1\u01f2\1\70\1\uffff\1\70\1\u01f5\1\70"+
- "\1\u01f7\11\70\1\u0204\2\70\1\u0207\1\70\1\u0209\1\uffff\1\u020a"+
- "\1\uffff\11\70\2\uffff\1\70\1\u0215\1\uffff\4\70\1\u021a\1\u021b"+
- "\1\u021c\2\70\1\uffff\1\70\1\u0220\1\uffff\1\70\1\uffff\1\u0222"+
- "\3\70\1\u0226\1\70\1\u0228\1\70\1\u022a\1\u022b\1\u022c\1\u022d"+
- "\1\uffff\1\u022e\1\70\1\uffff\1\u0230\2\uffff\1\u0231\1\u0233\4"+
- "\70\1\u0239\2\70\1\u023c\1\uffff\4\70\3\uffff\2\70\1\u0243\1\uffff"+
- "\1\70\1\uffff\3\70\1\uffff\1\70\1\uffff\1\u0249\5\uffff\1\u024a"+
- "\2\uffff\1\u024b\1\uffff\5\70\1\uffff\2\70\1\uffff\3\70\1\u0257"+
- "\1\u0258\1\u0259\1\uffff\5\70\3\uffff\1\70\1\u0260\1\u0261\10\70"+
- "\3\uffff\1\u026a\1\u026b\2\70\1\u026e\1\70\2\uffff\1\u0270\1\70"+
- "\1\u0272\5\70\2\uffff\1\u0278\1\u0279\1\uffff\1\70\1\uffff\1\70"+
- "\1\uffff\1\70\1\u027d\1\u027e\2\70\2\uffff\1\70\1\u0282\1\70\2\uffff"+
- "\3\70\1\uffff\1\70\1\u0288\1\u0289\2\70\2\uffff\10\70\1\u0294\1"+
- "\u0295\2\uffff";
+ "\1\u01bf\1\70\1\u01c1\2\70\1\u01c4\3\70\1\uffff\20\70\1\u01d9\1"+
+ "\uffff\1\70\1\u01db\11\70\1\u01e5\1\u01e6\1\uffff\2\70\1\u01e9\7"+
+ "\70\1\uffff\1\70\1\uffff\1\u01f3\1\70\1\uffff\1\70\1\u01f6\1\70"+
+ "\1\u01f8\12\70\1\u0206\2\70\1\u0209\1\70\1\u020b\1\uffff\1\u020c"+
+ "\1\uffff\11\70\2\uffff\1\70\1\u0217\1\uffff\4\70\1\u021c\1\u021d"+
+ "\1\u021e\2\70\1\uffff\1\70\1\u0222\1\uffff\1\70\1\uffff\1\u0224"+
+ "\4\70\1\u0229\1\70\1\u022b\1\70\1\u022d\1\u022e\1\u022f\1\u0230"+
+ "\1\uffff\1\u0231\1\70\1\uffff\1\u0233\2\uffff\1\u0234\1\u0236\4"+
+ "\70\1\u023c\2\70\1\u023f\1\uffff\4\70\3\uffff\2\70\1\u0246\1\uffff"+
+ "\1\70\1\uffff\4\70\1\uffff\1\70\1\uffff\1\u024d\5\uffff\1\u024e"+
+ "\2\uffff\1\u024f\1\uffff\5\70\1\uffff\2\70\1\uffff\3\70\1\u025b"+
+ "\1\u025c\1\u025d\1\uffff\6\70\3\uffff\1\70\1\u0265\1\u0266\10\70"+
+ "\3\uffff\1\u026f\1\u0270\3\70\1\u0274\1\70\2\uffff\1\u0276\1\70"+
+ "\1\u0278\5\70\2\uffff\1\70\1\u027f\1\u0280\1\uffff\1\70\1\uffff"+
+ "\1\70\1\uffff\1\70\1\u0284\1\u0285\3\70\2\uffff\1\70\1\u028a\1\70"+
+ "\2\uffff\4\70\1\uffff\1\70\1\u0291\1\u0292\3\70\2\uffff\1\u0296"+
+ "\2\70\1\uffff\6\70\1\u029f\1\u02a0\2\uffff";
static final String DFA12_eofS =
- "\u0296\uffff";
+ "\u02a1\uffff";
static final String DFA12_minS =
"\1\0\2\157\1\uffff\1\162\1\156\2\141\1\142\1\145\3\uffff\1\157"+
"\1\76\2\uffff\1\156\1\141\1\163\1\143\3\uffff\1\160\1\uffff\1\155"+
@@ -3653,23 +3682,24 @@ public class InternalRoomLexer extends Lexer {
"\1\164\1\141\1\146\1\157\1\147\1\60\1\uffff\1\147\1\60\1\141\1\164"+
"\1\144\2\157\1\145\1\162\1\143\1\111\2\60\1\uffff\1\143\1\162\1"+
"\60\1\123\1\156\1\151\1\163\1\156\1\162\1\164\1\uffff\1\166\1\uffff"+
- "\1\60\1\145\1\uffff\1\163\1\60\1\144\1\60\1\154\1\164\1\145\1\103"+
- "\1\163\1\124\1\164\1\156\1\163\1\60\1\145\1\163\1\60\1\156\1\60"+
- "\1\uffff\1\60\1\uffff\1\160\1\145\1\120\1\151\1\143\1\155\1\145"+
- "\1\150\1\155\2\uffff\1\145\1\60\1\uffff\1\171\1\150\1\156\1\157"+
- "\3\60\2\145\1\uffff\1\156\1\60\1\uffff\1\137\1\uffff\1\60\1\141"+
- "\1\124\1\154\1\60\1\171\1\60\1\164\4\60\1\uffff\1\60\1\163\1\uffff"+
- "\1\60\2\uffff\2\60\1\162\1\156\1\157\1\103\1\60\1\151\1\160\1\60"+
- "\1\uffff\1\163\1\162\1\145\1\156\3\uffff\1\162\1\156\1\60\1\uffff"+
- "\1\142\1\uffff\1\164\1\171\1\141\1\uffff\1\160\1\uffff\1\60\5\uffff"+
- "\1\60\2\uffff\1\60\1\uffff\1\157\1\164\1\154\1\145\1\154\1\uffff"+
- "\1\156\1\154\1\uffff\1\164\1\145\1\143\3\60\1\uffff\1\171\1\145"+
- "\1\160\1\163\1\145\3\uffff\1\164\2\60\1\146\1\141\3\145\1\141\1"+
- "\164\1\157\3\uffff\2\60\1\145\1\163\1\60\1\157\2\uffff\1\60\1\163"+
- "\1\60\2\155\1\144\2\151\2\uffff\2\60\1\uffff\1\143\1\uffff\1\163"+
- "\1\uffff\1\145\2\60\1\157\1\156\2\uffff\1\157\1\60\1\156\2\uffff"+
- "\1\156\1\164\1\154\1\uffff\1\164\2\60\1\103\1\141\2\uffff\1\154"+
- "\1\164\1\141\1\151\1\163\1\157\1\163\1\156\2\60\2\uffff";
+ "\1\60\1\145\1\uffff\1\163\1\60\1\144\1\60\1\154\1\164\1\162\1\145"+
+ "\1\103\1\163\1\124\1\164\1\156\1\163\1\60\1\145\1\163\1\60\1\156"+
+ "\1\60\1\uffff\1\60\1\uffff\1\160\1\145\1\120\1\151\1\143\1\155\1"+
+ "\145\1\150\1\155\2\uffff\1\145\1\60\1\uffff\1\171\1\150\1\156\1"+
+ "\157\3\60\2\145\1\uffff\1\156\1\60\1\uffff\1\137\1\uffff\1\60\2"+
+ "\141\1\124\1\154\1\60\1\171\1\60\1\164\4\60\1\uffff\1\60\1\163\1"+
+ "\uffff\1\60\2\uffff\2\60\1\162\1\156\1\157\1\103\1\60\1\151\1\160"+
+ "\1\60\1\uffff\1\163\1\162\1\145\1\156\3\uffff\1\162\1\156\1\60\1"+
+ "\uffff\1\142\1\uffff\1\164\1\156\1\171\1\141\1\uffff\1\160\1\uffff"+
+ "\1\60\5\uffff\1\60\2\uffff\1\60\1\uffff\1\157\1\164\1\154\1\145"+
+ "\1\154\1\uffff\1\156\1\154\1\uffff\1\164\1\145\1\143\3\60\1\uffff"+
+ "\1\171\1\145\1\163\1\160\1\163\1\145\3\uffff\1\164\2\60\1\146\1"+
+ "\141\3\145\1\141\1\164\1\157\3\uffff\2\60\1\151\1\145\1\163\1\60"+
+ "\1\157\2\uffff\1\60\1\163\1\60\2\155\1\144\2\151\2\uffff\1\164\2"+
+ "\60\1\uffff\1\143\1\uffff\1\163\1\uffff\1\145\2\60\1\157\1\156\1"+
+ "\151\2\uffff\1\157\1\60\1\156\2\uffff\1\156\1\164\1\157\1\154\1"+
+ "\uffff\1\164\2\60\1\156\1\103\1\141\2\uffff\1\60\1\154\1\164\1\uffff"+
+ "\1\141\1\151\1\163\1\157\1\163\1\156\2\60\2\uffff";
static final String DFA12_maxS =
"\1\uffff\1\157\1\171\1\uffff\1\164\1\170\1\157\1\171\1\163\1\157"+
"\3\uffff\1\162\1\76\2\uffff\1\170\1\141\1\163\1\164\3\uffff\1\160"+
@@ -3705,53 +3735,54 @@ public class InternalRoomLexer extends Lexer {
"\1\156\1\154\1\172\1\156\1\162\1\163\1\141\1\156\1\120\2\164\1\165"+
"\1\141\1\uffff\2\145\1\172\1\141\1\157\1\147\1\154\1\157\1\164\1"+
"\162\1\uffff\1\141\1\145\1\uffff\1\143\1\172\1\151\1\172\1\154\1"+
- "\166\1\172\1\143\1\150\1\145\1\uffff\1\164\1\145\1\123\1\166\1\154"+
+ "\166\1\172\1\143\1\150\1\145\1\uffff\1\164\1\145\1\124\1\166\1\154"+
"\1\163\1\154\1\156\1\151\1\163\1\145\1\164\1\141\1\146\1\157\1\147"+
"\1\172\1\uffff\1\147\1\172\1\141\1\164\1\144\2\157\1\145\1\162\1"+
"\143\1\111\2\172\1\uffff\1\143\1\162\1\172\1\124\1\156\1\151\1\163"+
"\1\156\1\162\1\164\1\uffff\1\166\1\uffff\1\172\1\145\1\uffff\1\163"+
- "\1\172\1\144\1\172\1\154\1\164\1\145\1\103\1\163\1\124\1\164\1\156"+
- "\1\163\1\172\1\145\1\163\1\172\1\156\1\172\1\uffff\1\172\1\uffff"+
- "\1\160\1\145\1\120\1\151\1\143\1\155\1\145\1\150\1\155\2\uffff\1"+
- "\145\1\172\1\uffff\1\171\1\150\1\156\1\157\3\172\2\145\1\uffff\1"+
- "\156\1\172\1\uffff\1\137\1\uffff\1\172\1\141\1\124\1\154\1\172\1"+
- "\171\1\172\1\164\4\172\1\uffff\1\172\1\163\1\uffff\1\172\2\uffff"+
+ "\1\172\1\144\1\172\1\154\1\164\1\162\1\145\1\103\1\163\1\124\1\164"+
+ "\1\156\1\163\1\172\1\145\1\163\1\172\1\156\1\172\1\uffff\1\172\1"+
+ "\uffff\1\160\1\145\1\120\1\151\1\143\1\155\1\145\1\150\1\155\2\uffff"+
+ "\1\145\1\172\1\uffff\1\171\1\150\1\156\1\157\3\172\2\145\1\uffff"+
+ "\1\156\1\172\1\uffff\1\137\1\uffff\1\172\2\141\1\124\1\154\1\172"+
+ "\1\171\1\172\1\164\4\172\1\uffff\1\172\1\163\1\uffff\1\172\2\uffff"+
"\2\172\1\162\1\156\1\157\1\122\1\172\1\151\1\160\1\172\1\uffff\1"+
"\163\1\162\1\145\1\156\3\uffff\1\162\1\156\1\172\1\uffff\1\142\1"+
- "\uffff\1\164\1\171\1\141\1\uffff\1\160\1\uffff\1\172\5\uffff\1\172"+
- "\2\uffff\1\172\1\uffff\1\157\1\164\1\154\1\145\1\154\1\uffff\1\156"+
- "\1\154\1\uffff\1\164\1\145\1\143\3\172\1\uffff\1\171\1\145\1\160"+
- "\1\163\1\145\3\uffff\1\164\2\172\1\146\1\141\3\145\1\141\1\164\1"+
- "\157\3\uffff\2\172\1\145\1\163\1\172\1\157\2\uffff\1\172\1\163\1"+
- "\172\2\155\1\144\2\151\2\uffff\2\172\1\uffff\1\143\1\uffff\1\163"+
- "\1\uffff\1\145\2\172\1\157\1\156\2\uffff\1\157\1\172\1\156\2\uffff"+
- "\1\156\1\164\1\154\1\uffff\1\164\2\172\1\103\1\141\2\uffff\1\154"+
- "\1\164\1\141\1\151\1\163\1\157\1\163\1\156\2\172\2\uffff";
+ "\uffff\1\164\1\156\1\171\1\141\1\uffff\1\160\1\uffff\1\172\5\uffff"+
+ "\1\172\2\uffff\1\172\1\uffff\1\157\1\164\1\154\1\145\1\154\1\uffff"+
+ "\1\156\1\154\1\uffff\1\164\1\145\1\143\3\172\1\uffff\1\171\1\145"+
+ "\1\163\1\160\1\163\1\145\3\uffff\1\164\2\172\1\146\1\141\3\145\1"+
+ "\141\1\164\1\157\3\uffff\2\172\1\151\1\145\1\163\1\172\1\157\2\uffff"+
+ "\1\172\1\163\1\172\2\155\1\144\2\151\2\uffff\1\164\2\172\1\uffff"+
+ "\1\143\1\uffff\1\163\1\uffff\1\145\2\172\1\157\1\156\1\151\2\uffff"+
+ "\1\157\1\172\1\156\2\uffff\1\156\1\164\1\157\1\154\1\uffff\1\164"+
+ "\2\172\1\156\1\103\1\141\2\uffff\1\172\1\154\1\164\1\uffff\1\141"+
+ "\1\151\1\163\1\157\1\163\1\156\2\172\2\uffff";
static final String DFA12_acceptS =
"\3\uffff\1\3\6\uffff\1\15\1\16\1\17\2\uffff\1\23\1\24\4\uffff\1"+
- "\34\1\35\1\36\1\uffff\1\40\17\uffff\1\134\1\135\1\136\1\137\1\uffff"+
- "\1\143\1\uffff\1\150\1\151\3\uffff\1\155\1\156\1\uffff\1\150\2\uffff"+
+ "\34\1\35\1\36\1\uffff\1\40\17\uffff\1\135\1\136\1\137\1\140\1\uffff"+
+ "\1\144\1\uffff\1\151\1\152\3\uffff\1\156\1\157\1\uffff\1\151\2\uffff"+
"\1\3\22\uffff\1\15\1\16\1\17\2\uffff\1\21\1\23\1\24\6\uffff\1\34"+
- "\1\35\1\36\1\uffff\1\40\26\uffff\1\142\1\77\3\uffff\1\134\1\135"+
- "\1\136\1\137\1\uffff\1\143\1\151\1\152\1\153\1\154\1\155\2\uffff"+
- "\1\132\13\uffff\1\114\30\uffff\1\56\2\uffff\1\71\1\127\4\uffff\1"+
- "\133\45\uffff\1\102\2\uffff\1\101\23\uffff\1\57\1\uffff\1\105\11"+
+ "\1\35\1\36\1\uffff\1\40\26\uffff\1\143\1\77\3\uffff\1\135\1\136"+
+ "\1\137\1\140\1\uffff\1\144\1\152\1\153\1\154\1\155\1\156\2\uffff"+
+ "\1\133\13\uffff\1\114\30\uffff\1\56\2\uffff\1\71\1\127\4\uffff\1"+
+ "\134\45\uffff\1\102\2\uffff\1\101\23\uffff\1\57\1\uffff\1\105\11"+
"\uffff\1\66\1\67\14\uffff\1\1\5\uffff\1\76\4\uffff\1\113\3\uffff"+
- "\1\12\14\uffff\1\64\17\uffff\1\131\21\uffff\1\141\1\2\10\uffff\1"+
+ "\1\12\14\uffff\1\64\17\uffff\1\131\21\uffff\1\142\1\2\10\uffff\1"+
"\112\2\uffff\1\41\3\uffff\1\13\35\uffff\1\111\12\uffff\1\130\2\uffff"+
- "\1\6\12\uffff\1\125\21\uffff\1\140\15\uffff\1\54\12\uffff\1\144"+
- "\1\uffff\1\27\2\uffff\1\22\23\uffff\1\124\1\uffff\1\45\11\uffff"+
- "\1\52\1\147\2\uffff\1\100\11\uffff\1\65\2\uffff\1\115\1\uffff\1"+
- "\145\14\uffff\1\53\2\uffff\1\107\1\uffff\1\43\1\44\12\uffff\1\63"+
- "\4\uffff\1\126\1\4\1\5\3\uffff\1\55\1\uffff\1\14\3\uffff\1\46\1"+
+ "\1\6\12\uffff\1\125\21\uffff\1\141\15\uffff\1\54\12\uffff\1\145"+
+ "\1\uffff\1\27\2\uffff\1\22\24\uffff\1\124\1\uffff\1\45\11\uffff"+
+ "\1\52\1\150\2\uffff\1\100\11\uffff\1\65\2\uffff\1\115\1\uffff\1"+
+ "\146\15\uffff\1\53\2\uffff\1\107\1\uffff\1\43\1\44\12\uffff\1\63"+
+ "\4\uffff\1\126\1\4\1\5\3\uffff\1\55\1\uffff\1\14\4\uffff\1\46\1"+
"\uffff\1\121\1\uffff\1\26\1\30\1\31\1\32\1\33\1\uffff\1\37\1\106"+
- "\1\uffff\1\47\5\uffff\1\62\2\uffff\1\61\6\uffff\1\11\5\uffff\1\120"+
- "\1\60\1\146\13\uffff\1\123\1\7\1\10\6\uffff\1\122\1\51\10\uffff"+
- "\1\104\1\116\2\uffff\1\25\1\uffff\1\73\1\uffff\1\110\5\uffff\1\20"+
- "\1\42\3\uffff\1\72\1\75\3\uffff\1\74\5\uffff\1\103\1\117\12\uffff"+
- "\1\50\1\70";
+ "\1\uffff\1\47\5\uffff\1\62\2\uffff\1\61\6\uffff\1\11\6\uffff\1\120"+
+ "\1\60\1\147\13\uffff\1\123\1\7\1\10\7\uffff\1\122\1\51\10\uffff"+
+ "\1\104\1\116\3\uffff\1\25\1\uffff\1\73\1\uffff\1\110\6\uffff\1\20"+
+ "\1\42\3\uffff\1\72\1\75\4\uffff\1\74\6\uffff\1\103\1\117\3\uffff"+
+ "\1\132\10\uffff\1\50\1\70";
static final String DFA12_specialS =
- "\1\0\61\uffff\1\1\1\2\u0262\uffff}>";
+ "\1\0\61\uffff\1\2\1\1\u026d\uffff}>";
static final String[] DFA12_transitionS = {
"\11\66\2\65\2\66\1\65\22\66\1\65\1\66\1\62\4\66\1\63\1\17\1"+
"\20\1\3\1\66\1\31\1\16\1\45\1\64\12\61\1\14\1\66\1\51\1\27\1"+
@@ -4172,8 +4203,7 @@ public class InternalRoomLexer extends Lexer {
"",
"\1\u01c8",
"\1\u01c9",
- "\1\u01ca",
- "\1\u01cb",
+ "\1\u01ca\1\u01cb",
"\1\u01cc",
"\1\u01cd",
"\1\u01ce",
@@ -4186,11 +4216,11 @@ public class InternalRoomLexer extends Lexer {
"\1\u01d5",
"\1\u01d6",
"\1\u01d7",
+ "\1\u01d8",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
- "\1\u01d9",
+ "\1\u01da",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u01db",
"\1\u01dc",
"\1\u01dd",
"\1\u01de",
@@ -4199,30 +4229,30 @@ public class InternalRoomLexer extends Lexer {
"\1\u01e1",
"\1\u01e2",
"\1\u01e3",
+ "\1\u01e4",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
- "\1\u01e6",
"\1\u01e7",
+ "\1\u01e8",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u01e9\1\u01ea",
- "\1\u01eb",
+ "\1\u01ea\1\u01eb",
"\1\u01ec",
"\1\u01ed",
"\1\u01ee",
"\1\u01ef",
"\1\u01f0",
- "",
"\1\u01f1",
"",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u01f3",
+ "\1\u01f2",
"",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\1\u01f4",
+ "",
+ "\1\u01f5",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u01f6",
+ "\1\u01f7",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u01f8",
"\1\u01f9",
"\1\u01fa",
"\1\u01fb",
@@ -4231,18 +4261,18 @@ public class InternalRoomLexer extends Lexer {
"\1\u01fe",
"\1\u01ff",
"\1\u0200",
- "\1\70\1\u0201\1\u0202\1\u0203\6\70\7\uffff\32\70\4\uffff\1"+
+ "\1\u0201",
+ "\1\u0202",
+ "\1\70\1\u0203\1\u0204\1\u0205\6\70\7\uffff\32\70\4\uffff\1"+
"\70\1\uffff\32\70",
- "\1\u0205",
- "\1\u0206",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0207",
"\1\u0208",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u020a",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
- "\1\u020b",
- "\1\u020c",
"\1\u020d",
"\1\u020e",
"\1\u020f",
@@ -4250,75 +4280,79 @@ public class InternalRoomLexer extends Lexer {
"\1\u0211",
"\1\u0212",
"\1\u0213",
+ "\1\u0214",
+ "\1\u0215",
"",
"",
- "\1\u0214",
+ "\1\u0216",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
- "\1\u0216",
- "\1\u0217",
"\1\u0218",
"\1\u0219",
+ "\1\u021a",
+ "\1\u021b",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u021d",
- "\1\u021e",
- "",
"\1\u021f",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0220",
"",
"\1\u0221",
- "",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "",
"\1\u0223",
- "\1\u0224",
- "\1\u0225",
+ "",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0225",
+ "\1\u0226",
"\1\u0227",
+ "\1\u0228",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u022a",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u0229",
+ "\1\u022c",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u022f",
+ "\1\u0232",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\3\70\1\u0232\26"+
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\3\70\1\u0235\26"+
"\70",
- "\1\u0234",
- "\1\u0235",
- "\1\u0236",
- "\1\u0238\16\uffff\1\u0237",
+ "\1\u0237",
+ "\1\u0238",
+ "\1\u0239",
+ "\1\u023b\16\uffff\1\u023a",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u023a",
- "\1\u023b",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "",
"\1\u023d",
"\1\u023e",
- "\1\u023f",
- "\1\u0240",
- "",
- "",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
+ "\1\u0240",
"\1\u0241",
"\1\u0242",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0243",
+ "",
"",
- "\1\u0244",
"",
+ "\1\u0244",
"\1\u0245",
- "\1\u0246",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "",
"\1\u0247",
"",
"\1\u0248",
+ "\1\u0249",
+ "\1\u024a",
+ "\1\u024b",
+ "",
+ "\1\u024c",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
@@ -4331,90 +4365,83 @@ public class InternalRoomLexer extends Lexer {
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
- "\1\u024c",
- "\1\u024d",
- "\1\u024e",
- "\1\u024f",
"\1\u0250",
- "",
"\1\u0251",
"\1\u0252",
- "",
"\1\u0253",
"\1\u0254",
+ "",
"\1\u0255",
- "\12\70\7\uffff\17\70\1\u0256\12\70\4\uffff\1\70\1\uffff\32"+
+ "\1\u0256",
+ "",
+ "\1\u0257",
+ "\1\u0258",
+ "\1\u0259",
+ "\12\70\7\uffff\17\70\1\u025a\12\70\4\uffff\1\70\1\uffff\32"+
"\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
- "\1\u025a",
- "\1\u025b",
- "\1\u025c",
- "\1\u025d",
"\1\u025e",
- "",
- "",
- "",
"\1\u025f",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0260",
+ "\1\u0261",
"\1\u0262",
"\1\u0263",
- "\1\u0264",
- "\1\u0265",
- "\1\u0266",
- "\1\u0267",
- "\1\u0268",
- "\1\u0269",
"",
"",
"",
+ "\1\u0264",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0267",
+ "\1\u0268",
+ "\1\u0269",
+ "\1\u026a",
+ "\1\u026b",
"\1\u026c",
"\1\u026d",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u026f",
+ "\1\u026e",
+ "",
"",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u0271",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0271",
+ "\1\u0272",
"\1\u0273",
- "\1\u0274",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\1\u0275",
- "\1\u0276",
- "\1\u0277",
"",
"",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0277",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "",
+ "\1\u0279",
"\1\u027a",
- "",
"\1\u027b",
- "",
"\1\u027c",
+ "\1\u027d",
+ "",
+ "",
+ "\1\u027e",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u027f",
- "\1\u0280",
- "",
"",
"\1\u0281",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u0283",
"",
+ "\1\u0282",
"",
- "\1\u0284",
- "\1\u0285",
+ "\1\u0283",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\1\u0286",
- "",
"\1\u0287",
+ "\1\u0288",
+ "",
+ "",
+ "\1\u0289",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
- "\1\u028a",
"\1\u028b",
"",
"",
@@ -4422,10 +4449,25 @@ public class InternalRoomLexer extends Lexer {
"\1\u028d",
"\1\u028e",
"\1\u028f",
+ "",
"\1\u0290",
- "\1\u0291",
- "\1\u0292",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\1\u0293",
+ "\1\u0294",
+ "\1\u0295",
+ "",
+ "",
+ "\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
+ "\1\u0297",
+ "\1\u0298",
+ "",
+ "\1\u0299",
+ "\1\u029a",
+ "\1\u029b",
+ "\1\u029c",
+ "\1\u029d",
+ "\1\u029e",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"\12\70\7\uffff\32\70\4\uffff\1\70\1\uffff\32\70",
"",
@@ -4462,7 +4504,7 @@ public class InternalRoomLexer extends Lexer {
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 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
+ 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 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | 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;
@@ -4583,20 +4625,20 @@ public class InternalRoomLexer extends Lexer {
if ( s>=0 ) return s;
break;
case 1 :
- int LA12_50 = input.LA(1);
+ int LA12_51 = input.LA(1);
s = -1;
- if ( ((LA12_50>='\u0000' && LA12_50<='\uFFFF')) ) {s = 131;}
+ if ( ((LA12_51>='\u0000' && LA12_51<='\uFFFF')) ) {s = 131;}
else s = 54;
if ( s>=0 ) return s;
break;
case 2 :
- int LA12_51 = input.LA(1);
+ int LA12_50 = input.LA(1);
s = -1;
- if ( ((LA12_51>='\u0000' && LA12_51<='\uFFFF')) ) {s = 131;}
+ if ( ((LA12_50>='\u0000' && LA12_50<='\uFFFF')) ) {s = 131;}
else s = 54;
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomParser.java b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomParser.java
index 98f41ad3d..76808a0f5 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomParser.java
+++ b/plugins/org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoomParser.java
@@ -22,7 +22,7 @@ import java.util.ArrayList;
@SuppressWarnings("all")
public class InternalRoomParser extends AbstractInternalContentAssistParser {
public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_ID", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'void'", "'model'", "'*'", "'ptBoolean'", "'ptInteger'", "'ptReal'", "'ptCharacter'", "'eventdriven'", "'datadriven'", "'sync'", "'async'", "'RoomModel'", "'{'", "'}'", "':'", "'PrimitiveType'", "'->'", "'default'", "'('", "')'", "'ExternalType'", "'DataClass'", "'extends'", "'usercode1'", "'usercode2'", "'usercode3'", "'Attribute'", "'['", "']'", "'='", "'Operation'", "','", "'sends'", "'ProtocolClass'", "'incoming'", "'outgoing'", "'regular'", "'PortClass'", "'conjugate'", "'CompoundProtocolClass'", "'SubProtocol'", "'Message'", "'usercode'", "'handle'", "'semantics'", "'in'", "'out'", "'ActorClass'", "'Interface'", "'Structure'", "'Behavior'", "'Port'", "'external'", "'SAP'", "'SPP'", "'ServiceImplementation'", "'of'", "'LogicalSystem'", "'SubSystemRef'", "'SubSystemClass'", "'LogicalThread'", "'prio'", "'.'", "'Binding'", "'and'", "'sub'", "'LayerConnection'", "'satisfied_by'", "'ref'", "'relay_sap'", "'ActorRef'", "'StateMachine'", "'State'", "'entry'", "'exit'", "'do'", "'subgraph'", "'RefinedState'", "'TransitionPoint'", "'EntryPoint'", "'ExitPoint'", "'ChoicePoint'", "'Transition'", "'initial'", "'action'", "'triggers'", "'or'", "'guard'", "'cond'", "'my'", "'cp'", "'<'", "'>'", "'|'", "'@'", "'import'", "'from'", "'.*'", "'~'", "'private'", "'abstract'", "'conjugated'", "'handler'"
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_ID", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'void'", "'model'", "'*'", "'ptBoolean'", "'ptInteger'", "'ptReal'", "'ptCharacter'", "'eventdriven'", "'datadriven'", "'sync'", "'async'", "'RoomModel'", "'{'", "'}'", "':'", "'PrimitiveType'", "'->'", "'default'", "'('", "')'", "'ExternalType'", "'DataClass'", "'extends'", "'usercode1'", "'usercode2'", "'usercode3'", "'Attribute'", "'['", "']'", "'='", "'Operation'", "','", "'sends'", "'ProtocolClass'", "'incoming'", "'outgoing'", "'regular'", "'PortClass'", "'conjugate'", "'CompoundProtocolClass'", "'SubProtocol'", "'Message'", "'usercode'", "'handle'", "'semantics'", "'in'", "'out'", "'ActorClass'", "'Interface'", "'Structure'", "'Behavior'", "'Port'", "'external'", "'SAP'", "'SPP'", "'ServiceImplementation'", "'of'", "'LogicalSystem'", "'SubSystemRef'", "'SubSystemClass'", "'LogicalThread'", "'prio'", "'.'", "'Binding'", "'and'", "'sub'", "'LayerConnection'", "'satisfied_by'", "'ref'", "'relay_sap'", "'ActorRef'", "'StateMachine'", "'State'", "'entry'", "'exit'", "'do'", "'subgraph'", "'RefinedState'", "'TransitionPoint'", "'EntryPoint'", "'ExitPoint'", "'ChoicePoint'", "'Transition'", "'initial'", "'action'", "'triggers'", "'or'", "'guard'", "'cond'", "'RefinedTransition'", "'my'", "'cp'", "'<'", "'>'", "'|'", "'@'", "'import'", "'from'", "'.*'", "'~'", "'private'", "'abstract'", "'conjugated'", "'handler'"
};
public static final int RULE_ID=5;
public static final int T__29=29;
@@ -86,6 +86,7 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
public static final int T__65=65;
public static final int T__62=62;
public static final int T__63=63;
+ public static final int T__114=114;
public static final int T__61=61;
public static final int T__60=60;
public static final int T__55=55;
@@ -5178,21 +5179,98 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR end "ruleCPBranchTransition"
+ // $ANTLR start "entryRuleRefinedTransition"
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1890:1: entryRuleRefinedTransition : ruleRefinedTransition EOF ;
+ public final void entryRuleRefinedTransition() throws RecognitionException {
+ try {
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1891:1: ( ruleRefinedTransition EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1892:1: ruleRefinedTransition EOF
+ {
+ before(grammarAccess.getRefinedTransitionRule());
+ pushFollow(FOLLOW_ruleRefinedTransition_in_entryRuleRefinedTransition3971);
+ ruleRefinedTransition();
+
+ state._fsp--;
+
+ after(grammarAccess.getRefinedTransitionRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRefinedTransition3978);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleRefinedTransition"
+
+
+ // $ANTLR start "ruleRefinedTransition"
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1899:1: ruleRefinedTransition : ( ( rule__RefinedTransition__Group__0 ) ) ;
+ public final void ruleRefinedTransition() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1903:2: ( ( ( rule__RefinedTransition__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1904:1: ( ( rule__RefinedTransition__Group__0 ) )
+ {
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1904:1: ( ( rule__RefinedTransition__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1905:1: ( rule__RefinedTransition__Group__0 )
+ {
+ before(grammarAccess.getRefinedTransitionAccess().getGroup());
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1906:1: ( rule__RefinedTransition__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1906:2: rule__RefinedTransition__Group__0
+ {
+ pushFollow(FOLLOW_rule__RefinedTransition__Group__0_in_ruleRefinedTransition4004);
+ rule__RefinedTransition__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRefinedTransitionAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleRefinedTransition"
+
+
// $ANTLR start "entryRuleTransitionTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1890:1: entryRuleTransitionTerminal : ruleTransitionTerminal EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1918:1: entryRuleTransitionTerminal : ruleTransitionTerminal EOF ;
public final void entryRuleTransitionTerminal() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1891:1: ( ruleTransitionTerminal EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1892:1: ruleTransitionTerminal EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1919:1: ( ruleTransitionTerminal EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1920:1: ruleTransitionTerminal EOF
{
before(grammarAccess.getTransitionTerminalRule());
- pushFollow(FOLLOW_ruleTransitionTerminal_in_entryRuleTransitionTerminal3971);
+ pushFollow(FOLLOW_ruleTransitionTerminal_in_entryRuleTransitionTerminal4031);
ruleTransitionTerminal();
state._fsp--;
after(grammarAccess.getTransitionTerminalRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleTransitionTerminal3978);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTransitionTerminal4038);
}
@@ -5209,23 +5287,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleTransitionTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1899:1: ruleTransitionTerminal : ( ( rule__TransitionTerminal__Alternatives ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1927:1: ruleTransitionTerminal : ( ( rule__TransitionTerminal__Alternatives ) ) ;
public final void ruleTransitionTerminal() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1903:2: ( ( ( rule__TransitionTerminal__Alternatives ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1904:1: ( ( rule__TransitionTerminal__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1931:2: ( ( ( rule__TransitionTerminal__Alternatives ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1932:1: ( ( rule__TransitionTerminal__Alternatives ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1904:1: ( ( rule__TransitionTerminal__Alternatives ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1905:1: ( rule__TransitionTerminal__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1932:1: ( ( rule__TransitionTerminal__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1933:1: ( rule__TransitionTerminal__Alternatives )
{
before(grammarAccess.getTransitionTerminalAccess().getAlternatives());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1906:1: ( rule__TransitionTerminal__Alternatives )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1906:2: rule__TransitionTerminal__Alternatives
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1934:1: ( rule__TransitionTerminal__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1934:2: rule__TransitionTerminal__Alternatives
{
- pushFollow(FOLLOW_rule__TransitionTerminal__Alternatives_in_ruleTransitionTerminal4004);
+ pushFollow(FOLLOW_rule__TransitionTerminal__Alternatives_in_ruleTransitionTerminal4064);
rule__TransitionTerminal__Alternatives();
state._fsp--;
@@ -5256,20 +5334,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleStateTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1918:1: entryRuleStateTerminal : ruleStateTerminal EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1946:1: entryRuleStateTerminal : ruleStateTerminal EOF ;
public final void entryRuleStateTerminal() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1919:1: ( ruleStateTerminal EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1920:1: ruleStateTerminal EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1947:1: ( ruleStateTerminal EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1948:1: ruleStateTerminal EOF
{
before(grammarAccess.getStateTerminalRule());
- pushFollow(FOLLOW_ruleStateTerminal_in_entryRuleStateTerminal4031);
+ pushFollow(FOLLOW_ruleStateTerminal_in_entryRuleStateTerminal4091);
ruleStateTerminal();
state._fsp--;
after(grammarAccess.getStateTerminalRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleStateTerminal4038);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStateTerminal4098);
}
@@ -5286,23 +5364,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleStateTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1927:1: ruleStateTerminal : ( ( rule__StateTerminal__StateAssignment ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1955:1: ruleStateTerminal : ( ( rule__StateTerminal__StateAssignment ) ) ;
public final void ruleStateTerminal() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1931:2: ( ( ( rule__StateTerminal__StateAssignment ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1932:1: ( ( rule__StateTerminal__StateAssignment ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1959:2: ( ( ( rule__StateTerminal__StateAssignment ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1960:1: ( ( rule__StateTerminal__StateAssignment ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1932:1: ( ( rule__StateTerminal__StateAssignment ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1933:1: ( rule__StateTerminal__StateAssignment )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1960:1: ( ( rule__StateTerminal__StateAssignment ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1961:1: ( rule__StateTerminal__StateAssignment )
{
before(grammarAccess.getStateTerminalAccess().getStateAssignment());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1934:1: ( rule__StateTerminal__StateAssignment )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1934:2: rule__StateTerminal__StateAssignment
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1962:1: ( rule__StateTerminal__StateAssignment )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1962:2: rule__StateTerminal__StateAssignment
{
- pushFollow(FOLLOW_rule__StateTerminal__StateAssignment_in_ruleStateTerminal4064);
+ pushFollow(FOLLOW_rule__StateTerminal__StateAssignment_in_ruleStateTerminal4124);
rule__StateTerminal__StateAssignment();
state._fsp--;
@@ -5333,20 +5411,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleTrPointTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1946:1: entryRuleTrPointTerminal : ruleTrPointTerminal EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1974:1: entryRuleTrPointTerminal : ruleTrPointTerminal EOF ;
public final void entryRuleTrPointTerminal() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1947:1: ( ruleTrPointTerminal EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1948:1: ruleTrPointTerminal EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1975:1: ( ruleTrPointTerminal EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1976:1: ruleTrPointTerminal EOF
{
before(grammarAccess.getTrPointTerminalRule());
- pushFollow(FOLLOW_ruleTrPointTerminal_in_entryRuleTrPointTerminal4091);
+ pushFollow(FOLLOW_ruleTrPointTerminal_in_entryRuleTrPointTerminal4151);
ruleTrPointTerminal();
state._fsp--;
after(grammarAccess.getTrPointTerminalRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleTrPointTerminal4098);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTrPointTerminal4158);
}
@@ -5363,23 +5441,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleTrPointTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1955:1: ruleTrPointTerminal : ( ( rule__TrPointTerminal__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1983:1: ruleTrPointTerminal : ( ( rule__TrPointTerminal__Group__0 ) ) ;
public final void ruleTrPointTerminal() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1959:2: ( ( ( rule__TrPointTerminal__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1960:1: ( ( rule__TrPointTerminal__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1987:2: ( ( ( rule__TrPointTerminal__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1988:1: ( ( rule__TrPointTerminal__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1960:1: ( ( rule__TrPointTerminal__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1961:1: ( rule__TrPointTerminal__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1988:1: ( ( rule__TrPointTerminal__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1989:1: ( rule__TrPointTerminal__Group__0 )
{
before(grammarAccess.getTrPointTerminalAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1962:1: ( rule__TrPointTerminal__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1962:2: rule__TrPointTerminal__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1990:1: ( rule__TrPointTerminal__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1990:2: rule__TrPointTerminal__Group__0
{
- pushFollow(FOLLOW_rule__TrPointTerminal__Group__0_in_ruleTrPointTerminal4124);
+ pushFollow(FOLLOW_rule__TrPointTerminal__Group__0_in_ruleTrPointTerminal4184);
rule__TrPointTerminal__Group__0();
state._fsp--;
@@ -5410,20 +5488,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleSubStateTrPointTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1974:1: entryRuleSubStateTrPointTerminal : ruleSubStateTrPointTerminal EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2002:1: entryRuleSubStateTrPointTerminal : ruleSubStateTrPointTerminal EOF ;
public final void entryRuleSubStateTrPointTerminal() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1975:1: ( ruleSubStateTrPointTerminal EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1976:1: ruleSubStateTrPointTerminal EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2003:1: ( ruleSubStateTrPointTerminal EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2004:1: ruleSubStateTrPointTerminal EOF
{
before(grammarAccess.getSubStateTrPointTerminalRule());
- pushFollow(FOLLOW_ruleSubStateTrPointTerminal_in_entryRuleSubStateTrPointTerminal4151);
+ pushFollow(FOLLOW_ruleSubStateTrPointTerminal_in_entryRuleSubStateTrPointTerminal4211);
ruleSubStateTrPointTerminal();
state._fsp--;
after(grammarAccess.getSubStateTrPointTerminalRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleSubStateTrPointTerminal4158);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSubStateTrPointTerminal4218);
}
@@ -5440,23 +5518,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleSubStateTrPointTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1983:1: ruleSubStateTrPointTerminal : ( ( rule__SubStateTrPointTerminal__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2011:1: ruleSubStateTrPointTerminal : ( ( rule__SubStateTrPointTerminal__Group__0 ) ) ;
public final void ruleSubStateTrPointTerminal() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1987:2: ( ( ( rule__SubStateTrPointTerminal__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1988:1: ( ( rule__SubStateTrPointTerminal__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2015:2: ( ( ( rule__SubStateTrPointTerminal__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2016:1: ( ( rule__SubStateTrPointTerminal__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1988:1: ( ( rule__SubStateTrPointTerminal__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1989:1: ( rule__SubStateTrPointTerminal__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2016:1: ( ( rule__SubStateTrPointTerminal__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2017:1: ( rule__SubStateTrPointTerminal__Group__0 )
{
before(grammarAccess.getSubStateTrPointTerminalAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1990:1: ( rule__SubStateTrPointTerminal__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:1990:2: rule__SubStateTrPointTerminal__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2018:1: ( rule__SubStateTrPointTerminal__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2018:2: rule__SubStateTrPointTerminal__Group__0
{
- pushFollow(FOLLOW_rule__SubStateTrPointTerminal__Group__0_in_ruleSubStateTrPointTerminal4184);
+ pushFollow(FOLLOW_rule__SubStateTrPointTerminal__Group__0_in_ruleSubStateTrPointTerminal4244);
rule__SubStateTrPointTerminal__Group__0();
state._fsp--;
@@ -5487,20 +5565,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleChoicepointTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2002:1: entryRuleChoicepointTerminal : ruleChoicepointTerminal EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2030:1: entryRuleChoicepointTerminal : ruleChoicepointTerminal EOF ;
public final void entryRuleChoicepointTerminal() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2003:1: ( ruleChoicepointTerminal EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2004:1: ruleChoicepointTerminal EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2031:1: ( ruleChoicepointTerminal EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2032:1: ruleChoicepointTerminal EOF
{
before(grammarAccess.getChoicepointTerminalRule());
- pushFollow(FOLLOW_ruleChoicepointTerminal_in_entryRuleChoicepointTerminal4211);
+ pushFollow(FOLLOW_ruleChoicepointTerminal_in_entryRuleChoicepointTerminal4271);
ruleChoicepointTerminal();
state._fsp--;
after(grammarAccess.getChoicepointTerminalRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleChoicepointTerminal4218);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleChoicepointTerminal4278);
}
@@ -5517,23 +5595,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleChoicepointTerminal"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2011:1: ruleChoicepointTerminal : ( ( rule__ChoicepointTerminal__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2039:1: ruleChoicepointTerminal : ( ( rule__ChoicepointTerminal__Group__0 ) ) ;
public final void ruleChoicepointTerminal() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2015:2: ( ( ( rule__ChoicepointTerminal__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2016:1: ( ( rule__ChoicepointTerminal__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2043:2: ( ( ( rule__ChoicepointTerminal__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2044:1: ( ( rule__ChoicepointTerminal__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2016:1: ( ( rule__ChoicepointTerminal__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2017:1: ( rule__ChoicepointTerminal__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2044:1: ( ( rule__ChoicepointTerminal__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2045:1: ( rule__ChoicepointTerminal__Group__0 )
{
before(grammarAccess.getChoicepointTerminalAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2018:1: ( rule__ChoicepointTerminal__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2018:2: rule__ChoicepointTerminal__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2046:1: ( rule__ChoicepointTerminal__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2046:2: rule__ChoicepointTerminal__Group__0
{
- pushFollow(FOLLOW_rule__ChoicepointTerminal__Group__0_in_ruleChoicepointTerminal4244);
+ pushFollow(FOLLOW_rule__ChoicepointTerminal__Group__0_in_ruleChoicepointTerminal4304);
rule__ChoicepointTerminal__Group__0();
state._fsp--;
@@ -5564,20 +5642,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleTrigger"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2030:1: entryRuleTrigger : ruleTrigger EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2058:1: entryRuleTrigger : ruleTrigger EOF ;
public final void entryRuleTrigger() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2031:1: ( ruleTrigger EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2032:1: ruleTrigger EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2059:1: ( ruleTrigger EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2060:1: ruleTrigger EOF
{
before(grammarAccess.getTriggerRule());
- pushFollow(FOLLOW_ruleTrigger_in_entryRuleTrigger4271);
+ pushFollow(FOLLOW_ruleTrigger_in_entryRuleTrigger4331);
ruleTrigger();
state._fsp--;
after(grammarAccess.getTriggerRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleTrigger4278);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTrigger4338);
}
@@ -5594,23 +5672,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleTrigger"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2039:1: ruleTrigger : ( ( rule__Trigger__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2067:1: ruleTrigger : ( ( rule__Trigger__Group__0 ) ) ;
public final void ruleTrigger() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2043:2: ( ( ( rule__Trigger__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2044:1: ( ( rule__Trigger__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2071:2: ( ( ( rule__Trigger__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2072:1: ( ( rule__Trigger__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2044:1: ( ( rule__Trigger__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2045:1: ( rule__Trigger__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2072:1: ( ( rule__Trigger__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2073:1: ( rule__Trigger__Group__0 )
{
before(grammarAccess.getTriggerAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2046:1: ( rule__Trigger__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2046:2: rule__Trigger__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2074:1: ( rule__Trigger__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2074:2: rule__Trigger__Group__0
{
- pushFollow(FOLLOW_rule__Trigger__Group__0_in_ruleTrigger4304);
+ pushFollow(FOLLOW_rule__Trigger__Group__0_in_ruleTrigger4364);
rule__Trigger__Group__0();
state._fsp--;
@@ -5641,20 +5719,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleMessageFromIf"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2058:1: entryRuleMessageFromIf : ruleMessageFromIf EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2086:1: entryRuleMessageFromIf : ruleMessageFromIf EOF ;
public final void entryRuleMessageFromIf() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2059:1: ( ruleMessageFromIf EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2060:1: ruleMessageFromIf EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2087:1: ( ruleMessageFromIf EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2088:1: ruleMessageFromIf EOF
{
before(grammarAccess.getMessageFromIfRule());
- pushFollow(FOLLOW_ruleMessageFromIf_in_entryRuleMessageFromIf4331);
+ pushFollow(FOLLOW_ruleMessageFromIf_in_entryRuleMessageFromIf4391);
ruleMessageFromIf();
state._fsp--;
after(grammarAccess.getMessageFromIfRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleMessageFromIf4338);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMessageFromIf4398);
}
@@ -5671,23 +5749,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleMessageFromIf"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2067:1: ruleMessageFromIf : ( ( rule__MessageFromIf__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2095:1: ruleMessageFromIf : ( ( rule__MessageFromIf__Group__0 ) ) ;
public final void ruleMessageFromIf() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2071:2: ( ( ( rule__MessageFromIf__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2072:1: ( ( rule__MessageFromIf__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2099:2: ( ( ( rule__MessageFromIf__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2100:1: ( ( rule__MessageFromIf__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2072:1: ( ( rule__MessageFromIf__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2073:1: ( rule__MessageFromIf__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2100:1: ( ( rule__MessageFromIf__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2101:1: ( rule__MessageFromIf__Group__0 )
{
before(grammarAccess.getMessageFromIfAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2074:1: ( rule__MessageFromIf__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2074:2: rule__MessageFromIf__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2102:1: ( rule__MessageFromIf__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2102:2: rule__MessageFromIf__Group__0
{
- pushFollow(FOLLOW_rule__MessageFromIf__Group__0_in_ruleMessageFromIf4364);
+ pushFollow(FOLLOW_rule__MessageFromIf__Group__0_in_ruleMessageFromIf4424);
rule__MessageFromIf__Group__0();
state._fsp--;
@@ -5718,20 +5796,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleGuard"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2086:1: entryRuleGuard : ruleGuard EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2114:1: entryRuleGuard : ruleGuard EOF ;
public final void entryRuleGuard() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2087:1: ( ruleGuard EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2088:1: ruleGuard EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2115:1: ( ruleGuard EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2116:1: ruleGuard EOF
{
before(grammarAccess.getGuardRule());
- pushFollow(FOLLOW_ruleGuard_in_entryRuleGuard4391);
+ pushFollow(FOLLOW_ruleGuard_in_entryRuleGuard4451);
ruleGuard();
state._fsp--;
after(grammarAccess.getGuardRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleGuard4398);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleGuard4458);
}
@@ -5748,23 +5826,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleGuard"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2095:1: ruleGuard : ( ( rule__Guard__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2123:1: ruleGuard : ( ( rule__Guard__Group__0 ) ) ;
public final void ruleGuard() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2099:2: ( ( ( rule__Guard__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2100:1: ( ( rule__Guard__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2127:2: ( ( ( rule__Guard__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2128:1: ( ( rule__Guard__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2100:1: ( ( rule__Guard__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2101:1: ( rule__Guard__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2128:1: ( ( rule__Guard__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2129:1: ( rule__Guard__Group__0 )
{
before(grammarAccess.getGuardAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2102:1: ( rule__Guard__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2102:2: rule__Guard__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2130:1: ( rule__Guard__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2130:2: rule__Guard__Group__0
{
- pushFollow(FOLLOW_rule__Guard__Group__0_in_ruleGuard4424);
+ pushFollow(FOLLOW_rule__Guard__Group__0_in_ruleGuard4484);
rule__Guard__Group__0();
state._fsp--;
@@ -5795,20 +5873,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleDocumentation"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2114:1: entryRuleDocumentation : ruleDocumentation EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2142:1: entryRuleDocumentation : ruleDocumentation EOF ;
public final void entryRuleDocumentation() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2115:1: ( ruleDocumentation EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2116:1: ruleDocumentation EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2143:1: ( ruleDocumentation EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2144:1: ruleDocumentation EOF
{
before(grammarAccess.getDocumentationRule());
- pushFollow(FOLLOW_ruleDocumentation_in_entryRuleDocumentation4451);
+ pushFollow(FOLLOW_ruleDocumentation_in_entryRuleDocumentation4511);
ruleDocumentation();
state._fsp--;
after(grammarAccess.getDocumentationRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleDocumentation4458);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDocumentation4518);
}
@@ -5825,23 +5903,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleDocumentation"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2123:1: ruleDocumentation : ( ( rule__Documentation__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2151:1: ruleDocumentation : ( ( rule__Documentation__Group__0 ) ) ;
public final void ruleDocumentation() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2127:2: ( ( ( rule__Documentation__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2128:1: ( ( rule__Documentation__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2155:2: ( ( ( rule__Documentation__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2156:1: ( ( rule__Documentation__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2128:1: ( ( rule__Documentation__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2129:1: ( rule__Documentation__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2156:1: ( ( rule__Documentation__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2157:1: ( rule__Documentation__Group__0 )
{
before(grammarAccess.getDocumentationAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2130:1: ( rule__Documentation__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2130:2: rule__Documentation__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2158:1: ( rule__Documentation__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2158:2: rule__Documentation__Group__0
{
- pushFollow(FOLLOW_rule__Documentation__Group__0_in_ruleDocumentation4484);
+ pushFollow(FOLLOW_rule__Documentation__Group__0_in_ruleDocumentation4544);
rule__Documentation__Group__0();
state._fsp--;
@@ -5872,20 +5950,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleAnnotation"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2142:1: entryRuleAnnotation : ruleAnnotation EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2170:1: entryRuleAnnotation : ruleAnnotation EOF ;
public final void entryRuleAnnotation() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2143:1: ( ruleAnnotation EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2144:1: ruleAnnotation EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2171:1: ( ruleAnnotation EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2172:1: ruleAnnotation EOF
{
before(grammarAccess.getAnnotationRule());
- pushFollow(FOLLOW_ruleAnnotation_in_entryRuleAnnotation4511);
+ pushFollow(FOLLOW_ruleAnnotation_in_entryRuleAnnotation4571);
ruleAnnotation();
state._fsp--;
after(grammarAccess.getAnnotationRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleAnnotation4518);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAnnotation4578);
}
@@ -5902,23 +5980,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleAnnotation"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2151:1: ruleAnnotation : ( ( rule__Annotation__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2179:1: ruleAnnotation : ( ( rule__Annotation__Group__0 ) ) ;
public final void ruleAnnotation() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2155:2: ( ( ( rule__Annotation__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2156:1: ( ( rule__Annotation__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2183:2: ( ( ( rule__Annotation__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2184:1: ( ( rule__Annotation__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2156:1: ( ( rule__Annotation__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2157:1: ( rule__Annotation__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2184:1: ( ( rule__Annotation__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2185:1: ( rule__Annotation__Group__0 )
{
before(grammarAccess.getAnnotationAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2158:1: ( rule__Annotation__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2158:2: rule__Annotation__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2186:1: ( rule__Annotation__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2186:2: rule__Annotation__Group__0
{
- pushFollow(FOLLOW_rule__Annotation__Group__0_in_ruleAnnotation4544);
+ pushFollow(FOLLOW_rule__Annotation__Group__0_in_ruleAnnotation4604);
rule__Annotation__Group__0();
state._fsp--;
@@ -5949,20 +6027,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleKeyValue"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2170:1: entryRuleKeyValue : ruleKeyValue EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2198:1: entryRuleKeyValue : ruleKeyValue EOF ;
public final void entryRuleKeyValue() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2171:1: ( ruleKeyValue EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2172:1: ruleKeyValue EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2199:1: ( ruleKeyValue EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2200:1: ruleKeyValue EOF
{
before(grammarAccess.getKeyValueRule());
- pushFollow(FOLLOW_ruleKeyValue_in_entryRuleKeyValue4571);
+ pushFollow(FOLLOW_ruleKeyValue_in_entryRuleKeyValue4631);
ruleKeyValue();
state._fsp--;
after(grammarAccess.getKeyValueRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleKeyValue4578);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleKeyValue4638);
}
@@ -5979,23 +6057,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleKeyValue"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2179:1: ruleKeyValue : ( ( rule__KeyValue__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2207:1: ruleKeyValue : ( ( rule__KeyValue__Group__0 ) ) ;
public final void ruleKeyValue() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2183:2: ( ( ( rule__KeyValue__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2184:1: ( ( rule__KeyValue__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2211:2: ( ( ( rule__KeyValue__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2212:1: ( ( rule__KeyValue__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2184:1: ( ( rule__KeyValue__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2185:1: ( rule__KeyValue__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2212:1: ( ( rule__KeyValue__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2213:1: ( rule__KeyValue__Group__0 )
{
before(grammarAccess.getKeyValueAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2186:1: ( rule__KeyValue__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2186:2: rule__KeyValue__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2214:1: ( rule__KeyValue__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2214:2: rule__KeyValue__Group__0
{
- pushFollow(FOLLOW_rule__KeyValue__Group__0_in_ruleKeyValue4604);
+ pushFollow(FOLLOW_rule__KeyValue__Group__0_in_ruleKeyValue4664);
rule__KeyValue__Group__0();
state._fsp--;
@@ -6026,20 +6104,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleImport"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2198:1: entryRuleImport : ruleImport EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2226:1: entryRuleImport : ruleImport EOF ;
public final void entryRuleImport() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2199:1: ( ruleImport EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2200:1: ruleImport EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2227:1: ( ruleImport EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2228:1: ruleImport EOF
{
before(grammarAccess.getImportRule());
- pushFollow(FOLLOW_ruleImport_in_entryRuleImport4631);
+ pushFollow(FOLLOW_ruleImport_in_entryRuleImport4691);
ruleImport();
state._fsp--;
after(grammarAccess.getImportRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleImport4638);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleImport4698);
}
@@ -6056,23 +6134,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleImport"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2207:1: ruleImport : ( ( rule__Import__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2235:1: ruleImport : ( ( rule__Import__Group__0 ) ) ;
public final void ruleImport() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2211:2: ( ( ( rule__Import__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2212:1: ( ( rule__Import__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2239:2: ( ( ( rule__Import__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2240:1: ( ( rule__Import__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2212:1: ( ( rule__Import__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2213:1: ( rule__Import__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2240:1: ( ( rule__Import__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2241:1: ( rule__Import__Group__0 )
{
before(grammarAccess.getImportAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2214:1: ( rule__Import__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2214:2: rule__Import__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2242:1: ( rule__Import__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2242:2: rule__Import__Group__0
{
- pushFollow(FOLLOW_rule__Import__Group__0_in_ruleImport4664);
+ pushFollow(FOLLOW_rule__Import__Group__0_in_ruleImport4724);
rule__Import__Group__0();
state._fsp--;
@@ -6103,20 +6181,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleImportedFQN"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2226:1: entryRuleImportedFQN : ruleImportedFQN EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2254:1: entryRuleImportedFQN : ruleImportedFQN EOF ;
public final void entryRuleImportedFQN() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2227:1: ( ruleImportedFQN EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2228:1: ruleImportedFQN EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2255:1: ( ruleImportedFQN EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2256:1: ruleImportedFQN EOF
{
before(grammarAccess.getImportedFQNRule());
- pushFollow(FOLLOW_ruleImportedFQN_in_entryRuleImportedFQN4691);
+ pushFollow(FOLLOW_ruleImportedFQN_in_entryRuleImportedFQN4751);
ruleImportedFQN();
state._fsp--;
after(grammarAccess.getImportedFQNRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleImportedFQN4698);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleImportedFQN4758);
}
@@ -6133,23 +6211,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleImportedFQN"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2235:1: ruleImportedFQN : ( ( rule__ImportedFQN__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2263:1: ruleImportedFQN : ( ( rule__ImportedFQN__Group__0 ) ) ;
public final void ruleImportedFQN() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2239:2: ( ( ( rule__ImportedFQN__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2240:1: ( ( rule__ImportedFQN__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2267:2: ( ( ( rule__ImportedFQN__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2268:1: ( ( rule__ImportedFQN__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2240:1: ( ( rule__ImportedFQN__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2241:1: ( rule__ImportedFQN__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2268:1: ( ( rule__ImportedFQN__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2269:1: ( rule__ImportedFQN__Group__0 )
{
before(grammarAccess.getImportedFQNAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2242:1: ( rule__ImportedFQN__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2242:2: rule__ImportedFQN__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2270:1: ( rule__ImportedFQN__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2270:2: rule__ImportedFQN__Group__0
{
- pushFollow(FOLLOW_rule__ImportedFQN__Group__0_in_ruleImportedFQN4724);
+ pushFollow(FOLLOW_rule__ImportedFQN__Group__0_in_ruleImportedFQN4784);
rule__ImportedFQN__Group__0();
state._fsp--;
@@ -6180,20 +6258,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleFQN"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2254:1: entryRuleFQN : ruleFQN EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2282:1: entryRuleFQN : ruleFQN EOF ;
public final void entryRuleFQN() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2255:1: ( ruleFQN EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2256:1: ruleFQN EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2283:1: ( ruleFQN EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2284:1: ruleFQN EOF
{
before(grammarAccess.getFQNRule());
- pushFollow(FOLLOW_ruleFQN_in_entryRuleFQN4751);
+ pushFollow(FOLLOW_ruleFQN_in_entryRuleFQN4811);
ruleFQN();
state._fsp--;
after(grammarAccess.getFQNRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleFQN4758);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleFQN4818);
}
@@ -6210,23 +6288,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleFQN"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2263:1: ruleFQN : ( ( rule__FQN__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2291:1: ruleFQN : ( ( rule__FQN__Group__0 ) ) ;
public final void ruleFQN() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2267:2: ( ( ( rule__FQN__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2268:1: ( ( rule__FQN__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2295:2: ( ( ( rule__FQN__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2296:1: ( ( rule__FQN__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2268:1: ( ( rule__FQN__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2269:1: ( rule__FQN__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2296:1: ( ( rule__FQN__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2297:1: ( rule__FQN__Group__0 )
{
before(grammarAccess.getFQNAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2270:1: ( rule__FQN__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2270:2: rule__FQN__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2298:1: ( rule__FQN__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2298:2: rule__FQN__Group__0
{
- pushFollow(FOLLOW_rule__FQN__Group__0_in_ruleFQN4784);
+ pushFollow(FOLLOW_rule__FQN__Group__0_in_ruleFQN4844);
rule__FQN__Group__0();
state._fsp--;
@@ -6257,20 +6335,20 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "entryRuleMULTIPLICITY"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2282:1: entryRuleMULTIPLICITY : ruleMULTIPLICITY EOF ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2310:1: entryRuleMULTIPLICITY : ruleMULTIPLICITY EOF ;
public final void entryRuleMULTIPLICITY() throws RecognitionException {
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2283:1: ( ruleMULTIPLICITY EOF )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2284:1: ruleMULTIPLICITY EOF
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2311:1: ( ruleMULTIPLICITY EOF )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2312:1: ruleMULTIPLICITY EOF
{
before(grammarAccess.getMULTIPLICITYRule());
- pushFollow(FOLLOW_ruleMULTIPLICITY_in_entryRuleMULTIPLICITY4811);
+ pushFollow(FOLLOW_ruleMULTIPLICITY_in_entryRuleMULTIPLICITY4871);
ruleMULTIPLICITY();
state._fsp--;
after(grammarAccess.getMULTIPLICITYRule());
- match(input,EOF,FOLLOW_EOF_in_entryRuleMULTIPLICITY4818);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMULTIPLICITY4878);
}
@@ -6287,23 +6365,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleMULTIPLICITY"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2291:1: ruleMULTIPLICITY : ( ( rule__MULTIPLICITY__Group__0 ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2319:1: ruleMULTIPLICITY : ( ( rule__MULTIPLICITY__Group__0 ) ) ;
public final void ruleMULTIPLICITY() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2295:2: ( ( ( rule__MULTIPLICITY__Group__0 ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2296:1: ( ( rule__MULTIPLICITY__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2323:2: ( ( ( rule__MULTIPLICITY__Group__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2324:1: ( ( rule__MULTIPLICITY__Group__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2296:1: ( ( rule__MULTIPLICITY__Group__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2297:1: ( rule__MULTIPLICITY__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2324:1: ( ( rule__MULTIPLICITY__Group__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2325:1: ( rule__MULTIPLICITY__Group__0 )
{
before(grammarAccess.getMULTIPLICITYAccess().getGroup());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2298:1: ( rule__MULTIPLICITY__Group__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2298:2: rule__MULTIPLICITY__Group__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2326:1: ( rule__MULTIPLICITY__Group__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2326:2: rule__MULTIPLICITY__Group__0
{
- pushFollow(FOLLOW_rule__MULTIPLICITY__Group__0_in_ruleMULTIPLICITY4844);
+ pushFollow(FOLLOW_rule__MULTIPLICITY__Group__0_in_ruleMULTIPLICITY4904);
rule__MULTIPLICITY__Group__0();
state._fsp--;
@@ -6334,23 +6412,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleLiteralType"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2311:1: ruleLiteralType : ( ( rule__LiteralType__Alternatives ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2339:1: ruleLiteralType : ( ( rule__LiteralType__Alternatives ) ) ;
public final void ruleLiteralType() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2315:1: ( ( ( rule__LiteralType__Alternatives ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2316:1: ( ( rule__LiteralType__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2343:1: ( ( ( rule__LiteralType__Alternatives ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2344:1: ( ( rule__LiteralType__Alternatives ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2316:1: ( ( rule__LiteralType__Alternatives ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2317:1: ( rule__LiteralType__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2344:1: ( ( rule__LiteralType__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2345:1: ( rule__LiteralType__Alternatives )
{
before(grammarAccess.getLiteralTypeAccess().getAlternatives());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2318:1: ( rule__LiteralType__Alternatives )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2318:2: rule__LiteralType__Alternatives
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2346:1: ( rule__LiteralType__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2346:2: rule__LiteralType__Alternatives
{
- pushFollow(FOLLOW_rule__LiteralType__Alternatives_in_ruleLiteralType4881);
+ pushFollow(FOLLOW_rule__LiteralType__Alternatives_in_ruleLiteralType4941);
rule__LiteralType__Alternatives();
state._fsp--;
@@ -6381,23 +6459,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleCommunicationType"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2330:1: ruleCommunicationType : ( ( rule__CommunicationType__Alternatives ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2358:1: ruleCommunicationType : ( ( rule__CommunicationType__Alternatives ) ) ;
public final void ruleCommunicationType() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2334:1: ( ( ( rule__CommunicationType__Alternatives ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2335:1: ( ( rule__CommunicationType__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2362:1: ( ( ( rule__CommunicationType__Alternatives ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2363:1: ( ( rule__CommunicationType__Alternatives ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2335:1: ( ( rule__CommunicationType__Alternatives ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2336:1: ( rule__CommunicationType__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2363:1: ( ( rule__CommunicationType__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2364:1: ( rule__CommunicationType__Alternatives )
{
before(grammarAccess.getCommunicationTypeAccess().getAlternatives());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2337:1: ( rule__CommunicationType__Alternatives )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2337:2: rule__CommunicationType__Alternatives
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2365:1: ( rule__CommunicationType__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2365:2: rule__CommunicationType__Alternatives
{
- pushFollow(FOLLOW_rule__CommunicationType__Alternatives_in_ruleCommunicationType4917);
+ pushFollow(FOLLOW_rule__CommunicationType__Alternatives_in_ruleCommunicationType4977);
rule__CommunicationType__Alternatives();
state._fsp--;
@@ -6428,23 +6506,23 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "ruleActorCommunicationType"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2349:1: ruleActorCommunicationType : ( ( rule__ActorCommunicationType__Alternatives ) ) ;
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2377:1: ruleActorCommunicationType : ( ( rule__ActorCommunicationType__Alternatives ) ) ;
public final void ruleActorCommunicationType() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2353:1: ( ( ( rule__ActorCommunicationType__Alternatives ) ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2354:1: ( ( rule__ActorCommunicationType__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2381:1: ( ( ( rule__ActorCommunicationType__Alternatives ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2382:1: ( ( rule__ActorCommunicationType__Alternatives ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2354:1: ( ( rule__ActorCommunicationType__Alternatives ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2355:1: ( rule__ActorCommunicationType__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2382:1: ( ( rule__ActorCommunicationType__Alternatives ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2383:1: ( rule__ActorCommunicationType__Alternatives )
{
before(grammarAccess.getActorCommunicationTypeAccess().getAlternatives());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2356:1: ( rule__ActorCommunicationType__Alternatives )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2356:2: rule__ActorCommunicationType__Alternatives
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2384:1: ( rule__ActorCommunicationType__Alternatives )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2384:2: rule__ActorCommunicationType__Alternatives
{
- pushFollow(FOLLOW_rule__ActorCommunicationType__Alternatives_in_ruleActorCommunicationType4953);
+ pushFollow(FOLLOW_rule__ActorCommunicationType__Alternatives_in_ruleActorCommunicationType5013);
rule__ActorCommunicationType__Alternatives();
state._fsp--;
@@ -6475,27 +6553,27 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__RoomModel__Alternatives_5"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2367:1: rule__RoomModel__Alternatives_5 : ( ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) ) | ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) ) | ( ( rule__RoomModel__DataClassesAssignment_5_2 ) ) | ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) ) | ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) ) | ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) ) | ( ( rule__RoomModel__SystemsAssignment_5_6 ) ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2395:1: rule__RoomModel__Alternatives_5 : ( ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) ) | ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) ) | ( ( rule__RoomModel__DataClassesAssignment_5_2 ) ) | ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) ) | ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) ) | ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) ) | ( ( rule__RoomModel__SystemsAssignment_5_6 ) ) );
public final void rule__RoomModel__Alternatives_5() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2371:1: ( ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) ) | ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) ) | ( ( rule__RoomModel__DataClassesAssignment_5_2 ) ) | ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) ) | ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) ) | ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) ) | ( ( rule__RoomModel__SystemsAssignment_5_6 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2399:1: ( ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) ) | ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) ) | ( ( rule__RoomModel__DataClassesAssignment_5_2 ) ) | ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) ) | ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) ) | ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) ) | ( ( rule__RoomModel__SystemsAssignment_5_6 ) ) )
int alt1=7;
alt1 = dfa1.predict(input);
switch (alt1) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2372:1: ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2400:1: ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2372:1: ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2373:1: ( rule__RoomModel__PrimitiveTypesAssignment_5_0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2400:1: ( ( rule__RoomModel__PrimitiveTypesAssignment_5_0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2401:1: ( rule__RoomModel__PrimitiveTypesAssignment_5_0 )
{
before(grammarAccess.getRoomModelAccess().getPrimitiveTypesAssignment_5_0());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2374:1: ( rule__RoomModel__PrimitiveTypesAssignment_5_0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2374:2: rule__RoomModel__PrimitiveTypesAssignment_5_0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2402:1: ( rule__RoomModel__PrimitiveTypesAssignment_5_0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2402:2: rule__RoomModel__PrimitiveTypesAssignment_5_0
{
- pushFollow(FOLLOW_rule__RoomModel__PrimitiveTypesAssignment_5_0_in_rule__RoomModel__Alternatives_54988);
+ pushFollow(FOLLOW_rule__RoomModel__PrimitiveTypesAssignment_5_0_in_rule__RoomModel__Alternatives_55048);
rule__RoomModel__PrimitiveTypesAssignment_5_0();
state._fsp--;
@@ -6511,16 +6589,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2378:6: ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2406:6: ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2378:6: ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2379:1: ( rule__RoomModel__ExternalTypesAssignment_5_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2406:6: ( ( rule__RoomModel__ExternalTypesAssignment_5_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2407:1: ( rule__RoomModel__ExternalTypesAssignment_5_1 )
{
before(grammarAccess.getRoomModelAccess().getExternalTypesAssignment_5_1());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2380:1: ( rule__RoomModel__ExternalTypesAssignment_5_1 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2380:2: rule__RoomModel__ExternalTypesAssignment_5_1
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2408:1: ( rule__RoomModel__ExternalTypesAssignment_5_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2408:2: rule__RoomModel__ExternalTypesAssignment_5_1
{
- pushFollow(FOLLOW_rule__RoomModel__ExternalTypesAssignment_5_1_in_rule__RoomModel__Alternatives_55006);
+ pushFollow(FOLLOW_rule__RoomModel__ExternalTypesAssignment_5_1_in_rule__RoomModel__Alternatives_55066);
rule__RoomModel__ExternalTypesAssignment_5_1();
state._fsp--;
@@ -6536,16 +6614,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 3 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2384:6: ( ( rule__RoomModel__DataClassesAssignment_5_2 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2412:6: ( ( rule__RoomModel__DataClassesAssignment_5_2 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2384:6: ( ( rule__RoomModel__DataClassesAssignment_5_2 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2385:1: ( rule__RoomModel__DataClassesAssignment_5_2 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2412:6: ( ( rule__RoomModel__DataClassesAssignment_5_2 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2413:1: ( rule__RoomModel__DataClassesAssignment_5_2 )
{
before(grammarAccess.getRoomModelAccess().getDataClassesAssignment_5_2());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2386:1: ( rule__RoomModel__DataClassesAssignment_5_2 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2386:2: rule__RoomModel__DataClassesAssignment_5_2
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2414:1: ( rule__RoomModel__DataClassesAssignment_5_2 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2414:2: rule__RoomModel__DataClassesAssignment_5_2
{
- pushFollow(FOLLOW_rule__RoomModel__DataClassesAssignment_5_2_in_rule__RoomModel__Alternatives_55024);
+ pushFollow(FOLLOW_rule__RoomModel__DataClassesAssignment_5_2_in_rule__RoomModel__Alternatives_55084);
rule__RoomModel__DataClassesAssignment_5_2();
state._fsp--;
@@ -6561,16 +6639,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 4 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2390:6: ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2418:6: ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2390:6: ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2391:1: ( rule__RoomModel__ProtocolClassesAssignment_5_3 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2418:6: ( ( rule__RoomModel__ProtocolClassesAssignment_5_3 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2419:1: ( rule__RoomModel__ProtocolClassesAssignment_5_3 )
{
before(grammarAccess.getRoomModelAccess().getProtocolClassesAssignment_5_3());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2392:1: ( rule__RoomModel__ProtocolClassesAssignment_5_3 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2392:2: rule__RoomModel__ProtocolClassesAssignment_5_3
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2420:1: ( rule__RoomModel__ProtocolClassesAssignment_5_3 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2420:2: rule__RoomModel__ProtocolClassesAssignment_5_3
{
- pushFollow(FOLLOW_rule__RoomModel__ProtocolClassesAssignment_5_3_in_rule__RoomModel__Alternatives_55042);
+ pushFollow(FOLLOW_rule__RoomModel__ProtocolClassesAssignment_5_3_in_rule__RoomModel__Alternatives_55102);
rule__RoomModel__ProtocolClassesAssignment_5_3();
state._fsp--;
@@ -6586,16 +6664,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 5 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2396:6: ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2424:6: ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2396:6: ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2397:1: ( rule__RoomModel__ActorClassesAssignment_5_4 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2424:6: ( ( rule__RoomModel__ActorClassesAssignment_5_4 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2425:1: ( rule__RoomModel__ActorClassesAssignment_5_4 )
{
before(grammarAccess.getRoomModelAccess().getActorClassesAssignment_5_4());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2398:1: ( rule__RoomModel__ActorClassesAssignment_5_4 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2398:2: rule__RoomModel__ActorClassesAssignment_5_4
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2426:1: ( rule__RoomModel__ActorClassesAssignment_5_4 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2426:2: rule__RoomModel__ActorClassesAssignment_5_4
{
- pushFollow(FOLLOW_rule__RoomModel__ActorClassesAssignment_5_4_in_rule__RoomModel__Alternatives_55060);
+ pushFollow(FOLLOW_rule__RoomModel__ActorClassesAssignment_5_4_in_rule__RoomModel__Alternatives_55120);
rule__RoomModel__ActorClassesAssignment_5_4();
state._fsp--;
@@ -6611,16 +6689,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 6 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2402:6: ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2430:6: ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2402:6: ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2403:1: ( rule__RoomModel__SubSystemClassesAssignment_5_5 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2430:6: ( ( rule__RoomModel__SubSystemClassesAssignment_5_5 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2431:1: ( rule__RoomModel__SubSystemClassesAssignment_5_5 )
{
before(grammarAccess.getRoomModelAccess().getSubSystemClassesAssignment_5_5());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2404:1: ( rule__RoomModel__SubSystemClassesAssignment_5_5 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2404:2: rule__RoomModel__SubSystemClassesAssignment_5_5
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2432:1: ( rule__RoomModel__SubSystemClassesAssignment_5_5 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2432:2: rule__RoomModel__SubSystemClassesAssignment_5_5
{
- pushFollow(FOLLOW_rule__RoomModel__SubSystemClassesAssignment_5_5_in_rule__RoomModel__Alternatives_55078);
+ pushFollow(FOLLOW_rule__RoomModel__SubSystemClassesAssignment_5_5_in_rule__RoomModel__Alternatives_55138);
rule__RoomModel__SubSystemClassesAssignment_5_5();
state._fsp--;
@@ -6636,16 +6714,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 7 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2408:6: ( ( rule__RoomModel__SystemsAssignment_5_6 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2436:6: ( ( rule__RoomModel__SystemsAssignment_5_6 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2408:6: ( ( rule__RoomModel__SystemsAssignment_5_6 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2409:1: ( rule__RoomModel__SystemsAssignment_5_6 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2436:6: ( ( rule__RoomModel__SystemsAssignment_5_6 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2437:1: ( rule__RoomModel__SystemsAssignment_5_6 )
{
before(grammarAccess.getRoomModelAccess().getSystemsAssignment_5_6());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2410:1: ( rule__RoomModel__SystemsAssignment_5_6 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2410:2: rule__RoomModel__SystemsAssignment_5_6
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2438:1: ( rule__RoomModel__SystemsAssignment_5_6 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2438:2: rule__RoomModel__SystemsAssignment_5_6
{
- pushFollow(FOLLOW_rule__RoomModel__SystemsAssignment_5_6_in_rule__RoomModel__Alternatives_55096);
+ pushFollow(FOLLOW_rule__RoomModel__SystemsAssignment_5_6_in_rule__RoomModel__Alternatives_55156);
rule__RoomModel__SystemsAssignment_5_6();
state._fsp--;
@@ -6678,17 +6756,17 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__StructureClass__Alternatives"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2420:1: rule__StructureClass__Alternatives : ( ( ruleActorContainerClass ) | ( ruleLogicalSystem ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2448:1: rule__StructureClass__Alternatives : ( ( ruleActorContainerClass ) | ( ruleLogicalSystem ) );
public final void rule__StructureClass__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2424:1: ( ( ruleActorContainerClass ) | ( ruleLogicalSystem ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2452:1: ( ( ruleActorContainerClass ) | ( ruleLogicalSystem ) )
int alt2=2;
int LA2_0 = input.LA(1);
- if ( ((LA2_0>=18 && LA2_0<=21)||LA2_0==58||LA2_0==70||LA2_0==111) ) {
+ if ( ((LA2_0>=18 && LA2_0<=21)||LA2_0==58||LA2_0==70||LA2_0==112) ) {
alt2=1;
}
else if ( (LA2_0==68) ) {
@@ -6702,13 +6780,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt2) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2425:1: ( ruleActorContainerClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2453:1: ( ruleActorContainerClass )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2425:1: ( ruleActorContainerClass )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2426:1: ruleActorContainerClass
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2453:1: ( ruleActorContainerClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2454:1: ruleActorContainerClass
{
before(grammarAccess.getStructureClassAccess().getActorContainerClassParserRuleCall_0());
- pushFollow(FOLLOW_ruleActorContainerClass_in_rule__StructureClass__Alternatives5130);
+ pushFollow(FOLLOW_ruleActorContainerClass_in_rule__StructureClass__Alternatives5190);
ruleActorContainerClass();
state._fsp--;
@@ -6721,13 +6799,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2431:6: ( ruleLogicalSystem )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2459:6: ( ruleLogicalSystem )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2431:6: ( ruleLogicalSystem )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2432:1: ruleLogicalSystem
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2459:6: ( ruleLogicalSystem )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2460:1: ruleLogicalSystem
{
before(grammarAccess.getStructureClassAccess().getLogicalSystemParserRuleCall_1());
- pushFollow(FOLLOW_ruleLogicalSystem_in_rule__StructureClass__Alternatives5147);
+ pushFollow(FOLLOW_ruleLogicalSystem_in_rule__StructureClass__Alternatives5207);
ruleLogicalSystem();
state._fsp--;
@@ -6757,17 +6835,17 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__ActorContainerClass__Alternatives"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2442:1: rule__ActorContainerClass__Alternatives : ( ( ruleActorClass ) | ( ruleSubSystemClass ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2470:1: rule__ActorContainerClass__Alternatives : ( ( ruleActorClass ) | ( ruleSubSystemClass ) );
public final void rule__ActorContainerClass__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2446:1: ( ( ruleActorClass ) | ( ruleSubSystemClass ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2474:1: ( ( ruleActorClass ) | ( ruleSubSystemClass ) )
int alt3=2;
int LA3_0 = input.LA(1);
- if ( ((LA3_0>=18 && LA3_0<=21)||LA3_0==58||LA3_0==111) ) {
+ if ( ((LA3_0>=18 && LA3_0<=21)||LA3_0==58||LA3_0==112) ) {
alt3=1;
}
else if ( (LA3_0==70) ) {
@@ -6781,13 +6859,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt3) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2447:1: ( ruleActorClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2475:1: ( ruleActorClass )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2447:1: ( ruleActorClass )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2448:1: ruleActorClass
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2475:1: ( ruleActorClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2476:1: ruleActorClass
{
before(grammarAccess.getActorContainerClassAccess().getActorClassParserRuleCall_0());
- pushFollow(FOLLOW_ruleActorClass_in_rule__ActorContainerClass__Alternatives5179);
+ pushFollow(FOLLOW_ruleActorClass_in_rule__ActorContainerClass__Alternatives5239);
ruleActorClass();
state._fsp--;
@@ -6800,13 +6878,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2453:6: ( ruleSubSystemClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2481:6: ( ruleSubSystemClass )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2453:6: ( ruleSubSystemClass )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2454:1: ruleSubSystemClass
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2481:6: ( ruleSubSystemClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2482:1: ruleSubSystemClass
{
before(grammarAccess.getActorContainerClassAccess().getSubSystemClassParserRuleCall_1());
- pushFollow(FOLLOW_ruleSubSystemClass_in_rule__ActorContainerClass__Alternatives5196);
+ pushFollow(FOLLOW_ruleSubSystemClass_in_rule__ActorContainerClass__Alternatives5256);
ruleSubSystemClass();
state._fsp--;
@@ -6836,13 +6914,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__DataType__Alternatives"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2464:1: rule__DataType__Alternatives : ( ( rulePrimitiveType ) | ( ruleComplexType ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2492:1: rule__DataType__Alternatives : ( ( rulePrimitiveType ) | ( ruleComplexType ) );
public final void rule__DataType__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2468:1: ( ( rulePrimitiveType ) | ( ruleComplexType ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2496:1: ( ( rulePrimitiveType ) | ( ruleComplexType ) )
int alt4=2;
int LA4_0 = input.LA(1);
@@ -6860,13 +6938,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt4) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2469:1: ( rulePrimitiveType )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2497:1: ( rulePrimitiveType )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2469:1: ( rulePrimitiveType )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2470:1: rulePrimitiveType
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2497:1: ( rulePrimitiveType )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2498:1: rulePrimitiveType
{
before(grammarAccess.getDataTypeAccess().getPrimitiveTypeParserRuleCall_0());
- pushFollow(FOLLOW_rulePrimitiveType_in_rule__DataType__Alternatives5228);
+ pushFollow(FOLLOW_rulePrimitiveType_in_rule__DataType__Alternatives5288);
rulePrimitiveType();
state._fsp--;
@@ -6879,13 +6957,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2475:6: ( ruleComplexType )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2503:6: ( ruleComplexType )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2475:6: ( ruleComplexType )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2476:1: ruleComplexType
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2503:6: ( ruleComplexType )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2504:1: ruleComplexType
{
before(grammarAccess.getDataTypeAccess().getComplexTypeParserRuleCall_1());
- pushFollow(FOLLOW_ruleComplexType_in_rule__DataType__Alternatives5245);
+ pushFollow(FOLLOW_ruleComplexType_in_rule__DataType__Alternatives5305);
ruleComplexType();
state._fsp--;
@@ -6915,13 +6993,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__ComplexType__Alternatives"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2486:1: rule__ComplexType__Alternatives : ( ( ruleDataClass ) | ( ruleExternalType ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2514:1: rule__ComplexType__Alternatives : ( ( ruleDataClass ) | ( ruleExternalType ) );
public final void rule__ComplexType__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2490:1: ( ( ruleDataClass ) | ( ruleExternalType ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2518:1: ( ( ruleDataClass ) | ( ruleExternalType ) )
int alt5=2;
int LA5_0 = input.LA(1);
@@ -6939,13 +7017,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt5) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2491:1: ( ruleDataClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2519:1: ( ruleDataClass )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2491:1: ( ruleDataClass )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2492:1: ruleDataClass
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2519:1: ( ruleDataClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2520:1: ruleDataClass
{
before(grammarAccess.getComplexTypeAccess().getDataClassParserRuleCall_0());
- pushFollow(FOLLOW_ruleDataClass_in_rule__ComplexType__Alternatives5277);
+ pushFollow(FOLLOW_ruleDataClass_in_rule__ComplexType__Alternatives5337);
ruleDataClass();
state._fsp--;
@@ -6958,13 +7036,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2497:6: ( ruleExternalType )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2525:6: ( ruleExternalType )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2497:6: ( ruleExternalType )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2498:1: ruleExternalType
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2525:6: ( ruleExternalType )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2526:1: ruleExternalType
{
before(grammarAccess.getComplexTypeAccess().getExternalTypeParserRuleCall_1());
- pushFollow(FOLLOW_ruleExternalType_in_rule__ComplexType__Alternatives5294);
+ pushFollow(FOLLOW_ruleExternalType_in_rule__ComplexType__Alternatives5354);
ruleExternalType();
state._fsp--;
@@ -6994,13 +7072,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__StandardOperation__Alternatives_6_1"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2509:1: rule__StandardOperation__Alternatives_6_1 : ( ( 'void' ) | ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2537:1: rule__StandardOperation__Alternatives_6_1 : ( ( 'void' ) | ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) ) );
public final void rule__StandardOperation__Alternatives_6_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2513:1: ( ( 'void' ) | ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2541:1: ( ( 'void' ) | ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) ) )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -7018,13 +7096,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt6) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2514:1: ( 'void' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2542:1: ( 'void' )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2514:1: ( 'void' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2515:1: 'void'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2542:1: ( 'void' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2543:1: 'void'
{
before(grammarAccess.getStandardOperationAccess().getVoidKeyword_6_1_0());
- match(input,11,FOLLOW_11_in_rule__StandardOperation__Alternatives_6_15328);
+ match(input,11,FOLLOW_11_in_rule__StandardOperation__Alternatives_6_15388);
after(grammarAccess.getStandardOperationAccess().getVoidKeyword_6_1_0());
}
@@ -7033,16 +7111,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2522:6: ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2550:6: ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2522:6: ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2523:1: ( rule__StandardOperation__ReturntypeAssignment_6_1_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2550:6: ( ( rule__StandardOperation__ReturntypeAssignment_6_1_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2551:1: ( rule__StandardOperation__ReturntypeAssignment_6_1_1 )
{
before(grammarAccess.getStandardOperationAccess().getReturntypeAssignment_6_1_1());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2524:1: ( rule__StandardOperation__ReturntypeAssignment_6_1_1 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2524:2: rule__StandardOperation__ReturntypeAssignment_6_1_1
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2552:1: ( rule__StandardOperation__ReturntypeAssignment_6_1_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2552:2: rule__StandardOperation__ReturntypeAssignment_6_1_1
{
- pushFollow(FOLLOW_rule__StandardOperation__ReturntypeAssignment_6_1_1_in_rule__StandardOperation__Alternatives_6_15347);
+ pushFollow(FOLLOW_rule__StandardOperation__ReturntypeAssignment_6_1_1_in_rule__StandardOperation__Alternatives_6_15407);
rule__StandardOperation__ReturntypeAssignment_6_1_1();
state._fsp--;
@@ -7075,13 +7153,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__PortOperation__Alternatives_5"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2533:1: rule__PortOperation__Alternatives_5 : ( ( ( rule__PortOperation__Group_5_0__0 ) ) | ( ( rule__PortOperation__Group_5_1__0 ) ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2561:1: rule__PortOperation__Alternatives_5 : ( ( ( rule__PortOperation__Group_5_0__0 ) ) | ( ( rule__PortOperation__Group_5_1__0 ) ) );
public final void rule__PortOperation__Alternatives_5() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2537:1: ( ( ( rule__PortOperation__Group_5_0__0 ) ) | ( ( rule__PortOperation__Group_5_1__0 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2565:1: ( ( ( rule__PortOperation__Group_5_0__0 ) ) | ( ( rule__PortOperation__Group_5_1__0 ) ) )
int alt7=2;
int LA7_0 = input.LA(1);
@@ -7099,16 +7177,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt7) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2538:1: ( ( rule__PortOperation__Group_5_0__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2566:1: ( ( rule__PortOperation__Group_5_0__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2538:1: ( ( rule__PortOperation__Group_5_0__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2539:1: ( rule__PortOperation__Group_5_0__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2566:1: ( ( rule__PortOperation__Group_5_0__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2567:1: ( rule__PortOperation__Group_5_0__0 )
{
before(grammarAccess.getPortOperationAccess().getGroup_5_0());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2540:1: ( rule__PortOperation__Group_5_0__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2540:2: rule__PortOperation__Group_5_0__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2568:1: ( rule__PortOperation__Group_5_0__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2568:2: rule__PortOperation__Group_5_0__0
{
- pushFollow(FOLLOW_rule__PortOperation__Group_5_0__0_in_rule__PortOperation__Alternatives_55380);
+ pushFollow(FOLLOW_rule__PortOperation__Group_5_0__0_in_rule__PortOperation__Alternatives_55440);
rule__PortOperation__Group_5_0__0();
state._fsp--;
@@ -7124,16 +7202,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2544:6: ( ( rule__PortOperation__Group_5_1__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2572:6: ( ( rule__PortOperation__Group_5_1__0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2544:6: ( ( rule__PortOperation__Group_5_1__0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2545:1: ( rule__PortOperation__Group_5_1__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2572:6: ( ( rule__PortOperation__Group_5_1__0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2573:1: ( rule__PortOperation__Group_5_1__0 )
{
before(grammarAccess.getPortOperationAccess().getGroup_5_1());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2546:1: ( rule__PortOperation__Group_5_1__0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2546:2: rule__PortOperation__Group_5_1__0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2574:1: ( rule__PortOperation__Group_5_1__0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2574:2: rule__PortOperation__Group_5_1__0
{
- pushFollow(FOLLOW_rule__PortOperation__Group_5_1__0_in_rule__PortOperation__Alternatives_55398);
+ pushFollow(FOLLOW_rule__PortOperation__Group_5_1__0_in_rule__PortOperation__Alternatives_55458);
rule__PortOperation__Group_5_1__0();
state._fsp--;
@@ -7166,13 +7244,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__PortOperation__Alternatives_5_0_1"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2555:1: rule__PortOperation__Alternatives_5_0_1 : ( ( 'void' ) | ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2583:1: rule__PortOperation__Alternatives_5_0_1 : ( ( 'void' ) | ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) ) );
public final void rule__PortOperation__Alternatives_5_0_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2559:1: ( ( 'void' ) | ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2587:1: ( ( 'void' ) | ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) ) )
int alt8=2;
int LA8_0 = input.LA(1);
@@ -7190,13 +7268,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt8) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2560:1: ( 'void' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2588:1: ( 'void' )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2560:1: ( 'void' )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2561:1: 'void'
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2588:1: ( 'void' )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2589:1: 'void'
{
before(grammarAccess.getPortOperationAccess().getVoidKeyword_5_0_1_0());
- match(input,11,FOLLOW_11_in_rule__PortOperation__Alternatives_5_0_15432);
+ match(input,11,FOLLOW_11_in_rule__PortOperation__Alternatives_5_0_15492);
after(grammarAccess.getPortOperationAccess().getVoidKeyword_5_0_1_0());
}
@@ -7205,16 +7283,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2568:6: ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2596:6: ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2568:6: ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2569:1: ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2596:6: ( ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2597:1: ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 )
{
before(grammarAccess.getPortOperationAccess().getReturntypeAssignment_5_0_1_1());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2570:1: ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2570:2: rule__PortOperation__ReturntypeAssignment_5_0_1_1
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2598:1: ( rule__PortOperation__ReturntypeAssignment_5_0_1_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2598:2: rule__PortOperation__ReturntypeAssignment_5_0_1_1
{
- pushFollow(FOLLOW_rule__PortOperation__ReturntypeAssignment_5_0_1_1_in_rule__PortOperation__Alternatives_5_0_15451);
+ pushFollow(FOLLOW_rule__PortOperation__ReturntypeAssignment_5_0_1_1_in_rule__PortOperation__Alternatives_5_0_15511);
rule__PortOperation__ReturntypeAssignment_5_0_1_1();
state._fsp--;
@@ -7247,13 +7325,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__GeneralProtocolClass__Alternatives"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2579:1: rule__GeneralProtocolClass__Alternatives : ( ( ruleProtocolClass ) | ( ruleCompoundProtocolClass ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2607:1: rule__GeneralProtocolClass__Alternatives : ( ( ruleProtocolClass ) | ( ruleCompoundProtocolClass ) );
public final void rule__GeneralProtocolClass__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2583:1: ( ( ruleProtocolClass ) | ( ruleCompoundProtocolClass ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2611:1: ( ( ruleProtocolClass ) | ( ruleCompoundProtocolClass ) )
int alt9=2;
int LA9_0 = input.LA(1);
@@ -7271,13 +7349,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt9) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2584:1: ( ruleProtocolClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2612:1: ( ruleProtocolClass )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2584:1: ( ruleProtocolClass )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2585:1: ruleProtocolClass
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2612:1: ( ruleProtocolClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2613:1: ruleProtocolClass
{
before(grammarAccess.getGeneralProtocolClassAccess().getProtocolClassParserRuleCall_0());
- pushFollow(FOLLOW_ruleProtocolClass_in_rule__GeneralProtocolClass__Alternatives5484);
+ pushFollow(FOLLOW_ruleProtocolClass_in_rule__GeneralProtocolClass__Alternatives5544);
ruleProtocolClass();
state._fsp--;
@@ -7290,13 +7368,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2590:6: ( ruleCompoundProtocolClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2618:6: ( ruleCompoundProtocolClass )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2590:6: ( ruleCompoundProtocolClass )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2591:1: ruleCompoundProtocolClass
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2618:6: ( ruleCompoundProtocolClass )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2619:1: ruleCompoundProtocolClass
{
before(grammarAccess.getGeneralProtocolClassAccess().getCompoundProtocolClassParserRuleCall_1());
- pushFollow(FOLLOW_ruleCompoundProtocolClass_in_rule__GeneralProtocolClass__Alternatives5501);
+ pushFollow(FOLLOW_ruleCompoundProtocolClass_in_rule__GeneralProtocolClass__Alternatives5561);
ruleCompoundProtocolClass();
state._fsp--;
@@ -7326,13 +7404,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__PortClass__Alternatives_2"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2601:1: rule__PortClass__Alternatives_2 : ( ( ( rule__PortClass__AttributesAssignment_2_0 ) ) | ( ( rule__PortClass__OperationsAssignment_2_1 ) ) | ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2629:1: rule__PortClass__Alternatives_2 : ( ( ( rule__PortClass__AttributesAssignment_2_0 ) ) | ( ( rule__PortClass__OperationsAssignment_2_1 ) ) | ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) ) );
public final void rule__PortClass__Alternatives_2() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2605:1: ( ( ( rule__PortClass__AttributesAssignment_2_0 ) ) | ( ( rule__PortClass__OperationsAssignment_2_1 ) ) | ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2633:1: ( ( ( rule__PortClass__AttributesAssignment_2_0 ) ) | ( ( rule__PortClass__OperationsAssignment_2_1 ) ) | ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) ) )
int alt10=3;
switch ( input.LA(1) ) {
case 37:
@@ -7359,16 +7437,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
switch (alt10) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2606:1: ( ( rule__PortClass__AttributesAssignment_2_0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2634:1: ( ( rule__PortClass__AttributesAssignment_2_0 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2606:1: ( ( rule__PortClass__AttributesAssignment_2_0 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2607:1: ( rule__PortClass__AttributesAssignment_2_0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2634:1: ( ( rule__PortClass__AttributesAssignment_2_0 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2635:1: ( rule__PortClass__AttributesAssignment_2_0 )
{
before(grammarAccess.getPortClassAccess().getAttributesAssignment_2_0());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2608:1: ( rule__PortClass__AttributesAssignment_2_0 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2608:2: rule__PortClass__AttributesAssignment_2_0
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2636:1: ( rule__PortClass__AttributesAssignment_2_0 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2636:2: rule__PortClass__AttributesAssignment_2_0
{
- pushFollow(FOLLOW_rule__PortClass__AttributesAssignment_2_0_in_rule__PortClass__Alternatives_25533);
+ pushFollow(FOLLOW_rule__PortClass__AttributesAssignment_2_0_in_rule__PortClass__Alternatives_25593);
rule__PortClass__AttributesAssignment_2_0();
state._fsp--;
@@ -7384,16 +7462,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2612:6: ( ( rule__PortClass__OperationsAssignment_2_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2640:6: ( ( rule__PortClass__OperationsAssignment_2_1 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2612:6: ( ( rule__PortClass__OperationsAssignment_2_1 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2613:1: ( rule__PortClass__OperationsAssignment_2_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2640:6: ( ( rule__PortClass__OperationsAssignment_2_1 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2641:1: ( rule__PortClass__OperationsAssignment_2_1 )
{
before(grammarAccess.getPortClassAccess().getOperationsAssignment_2_1());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2614:1: ( rule__PortClass__OperationsAssignment_2_1 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2614:2: rule__PortClass__OperationsAssignment_2_1
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2642:1: ( rule__PortClass__OperationsAssignment_2_1 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2642:2: rule__PortClass__OperationsAssignment_2_1
{
- pushFollow(FOLLOW_rule__PortClass__OperationsAssignment_2_1_in_rule__PortClass__Alternatives_25551);
+ pushFollow(FOLLOW_rule__PortClass__OperationsAssignment_2_1_in_rule__PortClass__Alternatives_25611);
rule__PortClass__OperationsAssignment_2_1();
state._fsp--;
@@ -7409,16 +7487,16 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;
case 3 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2618:6: ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2646:6: ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2618:6: ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2619:1: ( rule__PortClass__MsgHandlersAssignment_2_2 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2646:6: ( ( rule__PortClass__MsgHandlersAssignment_2_2 ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2647:1: ( rule__PortClass__MsgHandlersAssignment_2_2 )
{
before(grammarAccess.getPortClassAccess().getMsgHandlersAssignment_2_2());
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2620:1: ( rule__PortClass__MsgHandlersAssignment_2_2 )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2620:2: rule__PortClass__MsgHandlersAssignment_2_2
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2648:1: ( rule__PortClass__MsgHandlersAssignment_2_2 )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2648:2: rule__PortClass__MsgHandlersAssignment_2_2
{
- pushFollow(FOLLOW_rule__PortClass__MsgHandlersAssignment_2_2_in_rule__PortClass__Alternatives_25569);
+ pushFollow(FOLLOW_rule__PortClass__MsgHandlersAssignment_2_2_in_rule__PortClass__Alternatives_25629);
rule__PortClass__MsgHandlersAssignment_2_2();
state._fsp--;
@@ -7451,13 +7529,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
// $ANTLR start "rule__MessageHandler__Alternatives"
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2629:1: rule__MessageHandler__Alternatives : ( ( ruleInMessageHandler ) | ( ruleOutMessageHandler ) );
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2657:1: rule__MessageHandler__Alternatives : ( ( ruleInMessageHandler ) | ( ruleOutMessageHandler ) );
public final void rule__MessageHandler__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2633:1: ( ( ruleInMessageHandler ) | ( ruleOutMessageHandler ) )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2661:1: ( ( ruleInMessageHandler ) | ( ruleOutMessageHandler ) )
int alt11=2;
int LA11_0 = input.LA(1);
@@ -7485,13 +7563,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
switch (alt11) {
case 1 :
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2634:1: ( ruleInMessageHandler )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2662:1: ( ruleInMessageHandler )
{
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2634:1: ( ruleInMessageHandler )
- // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2635:1: ruleInMessageHandler
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2662:1: ( ruleInMessageHandler )
+ // ../org.eclipse.etrice.core.room.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalRoom.g:2663:1: ruleInMessageHandler
{
before(grammarAccess.getMessageHandlerAccess().getInMessageHandlerParserRuleCall_0());
- pushFollow(FOLLOW_ruleInMessageHandler_in_rule__MessageHandler__Alternatives5602);
+ pushFollow(FOLLOW_ruleInMessageHandler_in_rule__MessageHandler__Alternatives5662);
ruleInMessageHandler();
state._fsp--;
@@ -7504,13 +7582,13 @@ public class InternalRoomParser extends AbstractInternalContentAssistParser {
}
break;