Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel')
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.config17
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etmap10
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etphys26
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.room359
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.config6
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etmap10
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etphys26
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.room17
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/diagrams/TrafficlightModel.TrafficLightCommands.behavior135
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.config6
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etmap10
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etphys26
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.room79
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.config6
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etmap10
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etphys26
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.room221
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.config6
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etmap10
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etphys26
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.room358
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.Application.structure749
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.SubSys.structure290
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCommands.structure229
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightController.structure51
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCoordinator.structure37
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.config17
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etmap10
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etphys26
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.room362
30 files changed, 0 insertions, 3161 deletions
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.config b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.config
deleted file mode 100644
index d0693fefe..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.config
+++ /dev/null
@@ -1,17 +0,0 @@
-ConfigModel trafficlight.example.config {
-
- import trafficlight.example.* from "trafficlight.room"
- ActorInstanceConfig TrafficlightModel.TrafficlightLogSys/subsystem/application/tsCommands {
- Attr socketConfig {
- Attr IPAddr = "localhost"
- Attr TcpPort = 4441
- }
- }
- ActorInstanceConfig TrafficlightModel.TrafficlightLogSys/subsystem/application/tlCommands2 {
- Attr socketConfig {
- Attr IPAddr = "localhost"
- Attr TcpPort = 4442
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etmap b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etmap
deleted file mode 100644
index a9a61742a..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etmap
+++ /dev/null
@@ -1,10 +0,0 @@
-MappingModel MappingModel1 {
- import TrafficlightModel.* from "trafficlight.room"
- import TrafficLightPhysicalModel.* from "trafficlight.etphys"
- Mapping TrafficlightLogSys -> PhysicalSys {
- SubSystemMapping subsystem -> node1 {
- ThreadMapping defaultThread -> PhysicalThread1
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etphys b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etphys
deleted file mode 100644
index d08e35e2e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.etphys
+++ /dev/null
@@ -1,26 +0,0 @@
-PhysicalModel TrafficLightPhysicalModel {
-
- PhysicalSystem PhysicalSys {
- NodeRef node1 : NodeClass1
- }
-
- NodeClass NodeClass1 {
- runtime = RuntimeClass1
- priomin = -10
- priomax = 10
-
- DefaultThread PhysicalThread1 {
- execmode = mixed
- interval = 100ms
- prio = 0
- stacksize = 1024
- msgblocksize = 32
- msgpoolsize = 10
- }
- }
-
- RuntimeClass RuntimeClass1 {
- model = multiThreaded
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.room b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.room
deleted file mode 100644
index d228ddd78..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/current/trafficlight.room
+++ /dev/null
@@ -1,359 +0,0 @@
-RoomModel TrafficlightModel {
-
- import room.basic.types.* from "../../../org.eclipse.etrice.modellib.java/model/Types.room"
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/model/TimingService.room"
- import room.basic.service.tcp.* from "../../../org.eclipse.etrice.modellib.java/model/TcpService.room"
-
- LogicalSystem TrafficlightLogSys {
- SubSystemRef subsystem:SubSys
- }
- SubSystemClass SubSys {
- ActorRef application:Application
- ActorRef timingService: ATimingService
- LayerConnection ref application satisfied_by timingService.timer
- LogicalThread defaultThread
- }
- ActorClass Application {
- Structure {
- ActorRef controller: TrafficLightController
- ActorRef coordinator: TrafficLightCoordinator
- ActorRef tsCommands: TrafficLightCommands
- ActorRef tlCommands2: TrafficLightCommands
- ActorRef controller2: TrafficLightController
- Binding coordinator.controller and controller.fct
- Binding controller.tlCommands and tsCommands.fct
- Binding controller2.tlCommands and tlCommands2.fct
- Binding coordinator.controller and controller2.fct
- }
- Behavior { }
- }
-
- ActorClass TrafficLightCoordinator {
- Interface {
- conjugated Port controller [*]: PTrafficLightController
- }
- Structure {
- external Port controller
- SAP timeout: PTimer
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> Idle { }
- Transition tr0: Idle -> Running {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr1: Running -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> Running {
- triggers {
- <timeout: timeout>
- }
- }
- State Idle {
- entry {
- "timeout.startTimeout(3000);"
- }
- }
- State Running {
- entry {
- "timeout.startTimeout(20000);"
- "controller.setOn();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(20000);"
- "controller.setOff();"
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightController {
- Interface {
- Port fct: PTrafficLightController
- conjugated Port tlCommands: PTrafficLightCommands
- }
- Structure {
- external Port fct
- external Port tlCommands
- SAP timeout: PTimer
- }
- Behavior {
- StateMachine {
- Transition init: initial -> InitCommands { }
- Transition tr0: InitCommands -> tp0 of Blinking {
- triggers {
- <doneInit: tlCommands>
- }
- }
- Transition tr1: Blinking -> tp0 of Working {
- triggers {
- <setOn: fct>
- }
- }
- Transition tr2: Working -> tp0 of Blinking {
- triggers {
- <setOff: fct>
- }
- }
- State InitCommands {
- entry {
- "tlCommands.startInit();"
- }
- }
- State Blinking {
- exit {
- "timeout.kill();"
- }
- subgraph {
- Transition tr0: my tp0 -> On
- Transition tr1: On -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> On {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State On {
- entry {
- "tlCommands.carYellow();"
- "tlCommands.pedRed();"
- "timeout.startTimeout(500);"
- }
- exit {
- "tlCommands.carOff();"
- "tlCommands.pedOff();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(500);"
- }
- }
- }
- }
- State Working {
- subgraph {
- Transition tr0: my tp0 -> AllRed
- Transition tr1: AllRed -> CarGreen {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: PedGreen -> AllRed {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr3: CarGreen -> CarYellow {
- triggers {
- <pressedButton: tlCommands>
- }
- }
- Transition tr4: CarYellow -> CarRed {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr5: CarRed -> PedGreen {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State AllRed {
- entry {
- "tlCommands.carRed();"
- "tlCommands.pedRed();"
- "timeout.startTimeout(1000);"
- }
- }
- State CarGreen {
- entry {
- "tlCommands.carGreen();"
- }
- }
- State CarYellow {
- entry {
- "tlCommands.carYellow();"
- "timeout.startTimeout(1000);"
- }
- }
- State CarRed {
- entry {
- "tlCommands.carRed();"
- "timeout.startTimeout(1000);"
- }
- }
- State PedGreen {
- entry {
- "tlCommands.pedGreen();"
- "timeout.startTimeout(3000);"
- }
- }
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightCommands {
- Interface {
- Port fct: PTrafficLightCommands
- }
- Structure {
- external Port fct
- conjugated Port socketControl: PTcpControl
- conjugated Port socketPayload: PTcpPayload
- ActorRef socket: ATcpClient
- Binding socketPayload and socket.PayloadPort
- Binding socketControl and socket.ControlPort
- Attribute socketConfig: DTcpControl
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> NotInitialized {
- action {
- "//socketConfig = new DTcpControl(\"localhost\", 4441);"
- }
- }
- Transition tr0: ConfigSocket -> SocketOpen {
- triggers {
- <established: socketControl>
- }
- action {
- "fct.doneInit();"
- }
- }
- Transition tr1: SocketOpen -> SocketOpen {
- triggers {
- <carRed: fct>
- }
- action {
- "String payload = new String(\"carLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr2: SocketOpen -> SocketOpen {
- triggers {
- <carYellow: fct>
- }
- action {
- "String payload = new String(\"carLights=yellow\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr3: SocketOpen -> SocketOpen {
- triggers {
- <carGreen: fct>
- }
- action {
- "String payload = new String(\"carLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr4: SocketOpen -> SocketOpen {
- triggers {
- <carOff: fct>
- }
- action {
- "String payload = new String(\"carLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr5: SocketOpen -> SocketOpen {
- triggers {
- <pedRed: fct>
- }
- action {
- "String payload = new String(\"pedLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr6: SocketOpen -> SocketOpen {
- triggers {
- <pedGreen: fct>
- }
- action {
- "String payload = new String(\"pedLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr7: SocketOpen -> SocketOpen {
- triggers {
- <pedOff: fct>
- }
- action {
- "String payload = new String(\"pedLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr8: SocketOpen -> SocketOpen {
- triggers {
- <receive: socketPayload>
- }
- action {
- "fct.pressedButton();"
- }
- }
- Transition tr9: NotInitialized -> ConfigSocket {
- triggers {
- <startInit: fct>
- }
- }
- State ConfigSocket {
- entry {
- "socketControl.open(socketConfig);"
- ""
- "System.out.println(\"ConfigSocket: open\");"
- }
- }
- State SocketOpen
- State NotInitialized
- }
- }
- }
-
- ProtocolClass PTrafficLightController {
- incoming {
- Message setOn()
- Message setOff()
- }
- }
-
- ProtocolClass PTrafficLightCommands {
- incoming {
- Message startInit()
-
- Message carRed()
- Message carYellow()
- Message carYellowRed()
- Message carGreen()
- Message carOff()
-
- Message pedRed()
- Message pedGreen()
- Message pedOff()
- Message myMessage()
-
- }
- outgoing {
- Message doneInit()
-
- Message pressedButton()
- }
- }
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.config b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.config
deleted file mode 100644
index 397967f98..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.config
+++ /dev/null
@@ -1,6 +0,0 @@
-ConfigModel trafficlight.example.config {
-
- import trafficlight.example.* from "trafficlight.room"
-
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etmap b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etmap
deleted file mode 100644
index a9a61742a..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etmap
+++ /dev/null
@@ -1,10 +0,0 @@
-MappingModel MappingModel1 {
- import TrafficlightModel.* from "trafficlight.room"
- import TrafficLightPhysicalModel.* from "trafficlight.etphys"
- Mapping TrafficlightLogSys -> PhysicalSys {
- SubSystemMapping subsystem -> node1 {
- ThreadMapping defaultThread -> PhysicalThread1
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etphys b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etphys
deleted file mode 100644
index d08e35e2e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.etphys
+++ /dev/null
@@ -1,26 +0,0 @@
-PhysicalModel TrafficLightPhysicalModel {
-
- PhysicalSystem PhysicalSys {
- NodeRef node1 : NodeClass1
- }
-
- NodeClass NodeClass1 {
- runtime = RuntimeClass1
- priomin = -10
- priomax = 10
-
- DefaultThread PhysicalThread1 {
- execmode = mixed
- interval = 100ms
- prio = 0
- stacksize = 1024
- msgblocksize = 32
- msgpoolsize = 10
- }
- }
-
- RuntimeClass RuntimeClass1 {
- model = multiThreaded
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.room b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.room
deleted file mode 100644
index 26ca58281..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/start/trafficlight.room
+++ /dev/null
@@ -1,17 +0,0 @@
-RoomModel TrafficlightModel {
-
- import room.basic.types.* from "../../../org.eclipse.etrice.modellib.java/model/Types.room"
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/model/TimingService.room"
- import room.basic.service.tcp.* from "../../../org.eclipse.etrice.modellib.java/model/TcpService.room"
-
- LogicalSystem TrafficlightLogSys {
- SubSystemRef subsystem:SubSys
- }
- SubSystemClass SubSys {
- ActorRef application:Application
- LogicalThread defaultThread
- }
- ActorClass Application {
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/diagrams/TrafficlightModel.TrafficLightCommands.behavior b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/diagrams/TrafficlightModel.TrafficLightCommands.behavior
deleted file mode 100644
index a300bd8c3..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/diagrams/TrafficlightModel.TrafficLightCommands.behavior
+++ /dev/null
@@ -1,135 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" diagramTypeId="room.behavior" name="Behavior of TrafficLightCommands" pictogramLinks="//@link //@children.0/@link //@children.0/@children.1/@link //@children.0/@children.2/@link //@children.0/@children.3/@link //@connections.0/@link //@connections.1/@link" verticalGridUnit="0" version="0.10.0">
- <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightCommands"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="sg"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="880" height="580" x="40" y="40">
- <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="4" transparency="0.5" width="800" height="500" x="40" y="40" cornerHeight="20" cornerWidth="20"/>
- <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.2" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40" cornerHeight="20" cornerWidth="20"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#StateGraph:TrafficLightCommands$sg"/>
- </link>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="800" height="80" y="40" font="//@fonts.1" horizontalAlignment="ALIGNMENT_RIGHT" verticalAlignment="ALIGNMENT_TOP" value="/"/>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="trp"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="40" height="40" x="100" y="100">
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="20" height="20" x="10" y="10"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#StateGraph:TrafficLightCommands$sg"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="40" height="20" y="10" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="I"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="state"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="147" height="90" x="193" y="120">
- <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="87" height="30" x="30" y="30" cornerHeight="20" cornerWidth="20">
- <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="15" height="8" x="62" y="3" cornerHeight="5" cornerWidth="5"/>
- <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" x="43" y="24">
- <points x="-3" y="-3"/>
- <points x="-3" y="3"/>
- <points x="-11" y="3"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="43" y="24">
- <points x="3" y="-3"/>
- <points x="3" y="3"/>
- <points x="11" y="3"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="43" y="24">
- <points x="-2" y="-3"/>
- <points x="-2" y="3"/>
- <points x="2" y="3"/>
- <points x="2" y="-3"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#SimpleState:TrafficLightCommands$ConfigSocket"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.1" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="87" height="30" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="ConfigSocket"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="state"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="142" height="90" x="193" y="245">
- <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="82" height="30" x="30" y="30" cornerHeight="20" cornerWidth="20">
- <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="15" height="8" x="57" y="3" cornerHeight="5" cornerWidth="5"/>
- <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" x="41" y="24">
- <points x="-3" y="-3"/>
- <points x="-3" y="3"/>
- <points x="-11" y="3"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="41" y="24">
- <points x="3" y="-3"/>
- <points x="3" y="3"/>
- <points x="11" y="3"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polygon" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" x="41" y="24">
- <points x="-2" y="-3"/>
- <points x="-2" y="3"/>
- <points x="2" y="3"/>
- <points x="2" y="-3"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#SimpleState:TrafficLightCommands$SocketOpen"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.1"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.2" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="82" height="30" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="SocketOpen"/>
- </children>
- </children>
- </children>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.1/@anchors.0" end="//@children.0/@children.2/@anchors.0">
- <properties key="obj-type" value="trans"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#InitialTransition:TrafficLightCommands$initial"/>
- </link>
- <connectionDecorators visible="true" locationRelative="true" location="1.0">
- <graphicsAlgorithm xsi:type="al:Polygon" background="//@colors.2" foreground="//@colors.2" lineWidth="1" filled="true" transparency="0.0">
- <points x="-15" y="5"/>
- <points/>
- <points x="-15" y="-5"/>
- </graphicsAlgorithm>
- </connectionDecorators>
- <connectionDecorators visible="true" active="true" locationRelative="true" location="0.5">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" x="10" font="//@fonts.0" value="init"/>
- </connectionDecorators>
- </connections>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.2/@anchors.0" end="//@children.0/@children.3/@anchors.0">
- <properties key="obj-type" value="trans"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#TriggeredTransition:TrafficLightCommands$tr0"/>
- </link>
- <connectionDecorators visible="true" locationRelative="true" location="1.0">
- <graphicsAlgorithm xsi:type="al:Polygon" background="//@colors.1" foreground="//@colors.2" lineWidth="1" filled="true" transparency="0.0">
- <points x="-15" y="5"/>
- <points/>
- <points x="-15" y="-5"/>
- </graphicsAlgorithm>
- </connectionDecorators>
- <connectionDecorators visible="true" active="true" locationRelative="true" location="0.5">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" x="10" font="//@fonts.0" value="tr0: &lt;established:so..."/>
- </connectionDecorators>
- </connections>
- <colors red="227" green="238" blue="249"/>
- <colors red="255" green="255" blue="255"/>
- <colors/>
- <colors red="200" green="200" blue="200"/>
- <fonts name="Arial" size="8"/>
- <fonts name="Arial" size="9" bold="true"/>
-</pi:Diagram>
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.config b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.config
deleted file mode 100644
index 397967f98..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.config
+++ /dev/null
@@ -1,6 +0,0 @@
-ConfigModel trafficlight.example.config {
-
- import trafficlight.example.* from "trafficlight.room"
-
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etmap b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etmap
deleted file mode 100644
index a9a61742a..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etmap
+++ /dev/null
@@ -1,10 +0,0 @@
-MappingModel MappingModel1 {
- import TrafficlightModel.* from "trafficlight.room"
- import TrafficLightPhysicalModel.* from "trafficlight.etphys"
- Mapping TrafficlightLogSys -> PhysicalSys {
- SubSystemMapping subsystem -> node1 {
- ThreadMapping defaultThread -> PhysicalThread1
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etphys b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etphys
deleted file mode 100644
index d08e35e2e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.etphys
+++ /dev/null
@@ -1,26 +0,0 @@
-PhysicalModel TrafficLightPhysicalModel {
-
- PhysicalSystem PhysicalSys {
- NodeRef node1 : NodeClass1
- }
-
- NodeClass NodeClass1 {
- runtime = RuntimeClass1
- priomin = -10
- priomax = 10
-
- DefaultThread PhysicalThread1 {
- execmode = mixed
- interval = 100ms
- prio = 0
- stacksize = 1024
- msgblocksize = 32
- msgpoolsize = 10
- }
- }
-
- RuntimeClass RuntimeClass1 {
- model = multiThreaded
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.room b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.room
deleted file mode 100644
index 943f487da..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step1/trafficlight.room
+++ /dev/null
@@ -1,79 +0,0 @@
-RoomModel TrafficlightModel {
-
- import room.basic.types.* from "../../../org.eclipse.etrice.modellib.java/model/Types.room"
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/model/TimingService.room"
- import room.basic.service.tcp.* from "../../../org.eclipse.etrice.modellib.java/model/TcpService.room"
-
- LogicalSystem TrafficlightLogSys {
- SubSystemRef subsystem:SubSys
- }
- SubSystemClass SubSys {
- ActorRef application:Application
- LogicalThread defaultThread
- }
- ActorClass Application {
- Structure {
- ActorRef commands: TrafficLightCommands
- }
- Behavior { }
- }
-
- ActorClass TrafficLightCommands {
- Interface {
- Port fct: PTrafficLightCommands
- }
- Structure {
- external Port fct
- conjugated Port socketControl: PTcpControl
- conjugated Port socketPayload: PTcpPayload
- ActorRef socket: ATcpClient
- Binding socketControl and socket.ControlPort
- Binding socketPayload and socket.PayloadPort
- Attribute socketConfig: DTcpControl
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> ConfigSocket {
- action {
- "socketConfig = new DTcpControl(\"localhost\", 4441);"
- }
- }
- Transition tr0: ConfigSocket -> SocketOpen {
- triggers {
- <established: socketControl>
- }
- }
- State ConfigSocket {
- entry {
- "socketControl.open(socketConfig);"
- }
- }
- State SocketOpen {
- entry {
- "String payload = new String(\"carLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- }
- }
- }
-
- ProtocolClass PTrafficLightCommands {
- incoming {
- Message carRed()
- Message carYellow()
- Message carYellowRed()
- Message carGreen()
- Message carOff()
-
- Message pedRed()
- Message pedGreen()
- Message pedOff()
-
- }
- outgoing {
- Message pressedButton()
- }
- }
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.config b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.config
deleted file mode 100644
index 397967f98..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.config
+++ /dev/null
@@ -1,6 +0,0 @@
-ConfigModel trafficlight.example.config {
-
- import trafficlight.example.* from "trafficlight.room"
-
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etmap b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etmap
deleted file mode 100644
index a9a61742a..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etmap
+++ /dev/null
@@ -1,10 +0,0 @@
-MappingModel MappingModel1 {
- import TrafficlightModel.* from "trafficlight.room"
- import TrafficLightPhysicalModel.* from "trafficlight.etphys"
- Mapping TrafficlightLogSys -> PhysicalSys {
- SubSystemMapping subsystem -> node1 {
- ThreadMapping defaultThread -> PhysicalThread1
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etphys b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etphys
deleted file mode 100644
index d08e35e2e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.etphys
+++ /dev/null
@@ -1,26 +0,0 @@
-PhysicalModel TrafficLightPhysicalModel {
-
- PhysicalSystem PhysicalSys {
- NodeRef node1 : NodeClass1
- }
-
- NodeClass NodeClass1 {
- runtime = RuntimeClass1
- priomin = -10
- priomax = 10
-
- DefaultThread PhysicalThread1 {
- execmode = mixed
- interval = 100ms
- prio = 0
- stacksize = 1024
- msgblocksize = 32
- msgpoolsize = 10
- }
- }
-
- RuntimeClass RuntimeClass1 {
- model = multiThreaded
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.room b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.room
deleted file mode 100644
index a09c80c0e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step2/trafficlight.room
+++ /dev/null
@@ -1,221 +0,0 @@
-RoomModel TrafficlightModel {
-
- import room.basic.types.* from "../../../org.eclipse.etrice.modellib.java/model/Types.room"
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/model/TimingService.room"
- import room.basic.service.tcp.* from "../../../org.eclipse.etrice.modellib.java/model/TcpService.room"
-
- LogicalSystem TrafficlightLogSys {
- SubSystemRef subsystem:SubSys
- }
- SubSystemClass SubSys {
- ActorRef application:Application
- ActorRef timingService: ATimingService
- LayerConnection ref application satisfied_by timingService.timer
- LogicalThread defaultThread
- }
- ActorClass Application {
- Structure {
- ActorRef commands: TrafficLightCommands
- ActorRef controller: TrafficLightController
- Binding controller.tlCommands and commands.fct
- }
- Behavior { }
- }
-
- ActorClass TrafficLightController {
- Interface {
- conjugated Port tlCommands: PTrafficLightCommands
- }
- Structure {
- external Port tlCommands
- SAP timeout: PTimer
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> InitCommands { }
- Transition tr0: InitCommands -> tp0 of Blinking {
- triggers {
- <doneInit: tlCommands>
- }
- }
- State InitCommands {
- entry {
- "tlCommands.startInit();"
- }
- }
- State Blinking {
- entry {
- "tlCommands.carYellow();"
- }
- subgraph {
- Transition tr0: my tp0 -> On
- Transition tr1: On -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> On {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State On {
- entry {
- "tlCommands.carYellow();"
- "timeout.startTimeout(500);"
- }
- exit {
- "tlCommands.carOff();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(500);"
- }
- }
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightCommands {
- Interface {
- Port fct: PTrafficLightCommands
- }
- Structure {
- external Port fct
- conjugated Port socketControl: PTcpControl
- conjugated Port socketPayload: PTcpPayload
- ActorRef socket: ATcpClient
- Binding socketControl and socket.ControlPort
- Binding socketPayload and socket.PayloadPort
- Attribute socketConfig: DTcpControl
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> NotInitialized {
- action {
- "socketConfig = new DTcpControl(\"localhost\", 4441);"
- }
- }
- Transition tr0: ConfigSocket -> SocketOpen {
- triggers {
- <established: socketControl>
- }
- action {
- "fct.doneInit();"
- }
- }
- Transition tr1: SocketOpen -> SocketOpen {
- triggers {
- <carRed: fct>
- }
- action {
- "String payload = new String(\"carLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr2: SocketOpen -> SocketOpen {
- triggers {
- <carYellow: fct>
- }
- action {
- "String payload = new String(\"carLights=yellow\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr3: SocketOpen -> SocketOpen {
- triggers {
- <carGreen: fct>
- }
- action {
- "String payload = new String(\"carLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr4: SocketOpen -> SocketOpen {
- triggers {
- <carOff: fct>
- }
- action {
- "String payload = new String(\"carLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr5: SocketOpen -> SocketOpen {
- triggers {
- <pedRed: fct>
- }
- action {
- "String payload = new String(\"pedLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr6: SocketOpen -> SocketOpen {
- triggers {
- <pedGreen: fct>
- }
- action {
- "String payload = new String(\"pedLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr7: SocketOpen -> SocketOpen {
- triggers {
- <pedOff: fct>
- }
- action {
- "String payload = new String(\"pedLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr8: SocketOpen -> SocketOpen {
- triggers {
- <receive: socketPayload>
- }
- action {
- "fct.pressedButton();"
- }
- }
- Transition tr9: NotInitialized -> ConfigSocket {
- triggers {
- <startInit: fct>
- }
- }
- State ConfigSocket {
- entry {
- "socketControl.open(socketConfig);"
- }
- }
- State SocketOpen
- State NotInitialized
- }
- }
- }
-
- ProtocolClass PTrafficLightCommands {
- incoming {
- Message startInit()
-
- Message carRed()
- Message carYellow()
- Message carYellowRed()
- Message carGreen()
- Message carOff()
-
- Message pedRed()
- Message pedGreen()
- Message pedOff()
-
- }
- outgoing {
- Message doneInit()
-
- Message pressedButton()
- }
- }
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.config b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.config
deleted file mode 100644
index 397967f98..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.config
+++ /dev/null
@@ -1,6 +0,0 @@
-ConfigModel trafficlight.example.config {
-
- import trafficlight.example.* from "trafficlight.room"
-
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etmap b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etmap
deleted file mode 100644
index a9a61742a..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etmap
+++ /dev/null
@@ -1,10 +0,0 @@
-MappingModel MappingModel1 {
- import TrafficlightModel.* from "trafficlight.room"
- import TrafficLightPhysicalModel.* from "trafficlight.etphys"
- Mapping TrafficlightLogSys -> PhysicalSys {
- SubSystemMapping subsystem -> node1 {
- ThreadMapping defaultThread -> PhysicalThread1
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etphys b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etphys
deleted file mode 100644
index d08e35e2e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.etphys
+++ /dev/null
@@ -1,26 +0,0 @@
-PhysicalModel TrafficLightPhysicalModel {
-
- PhysicalSystem PhysicalSys {
- NodeRef node1 : NodeClass1
- }
-
- NodeClass NodeClass1 {
- runtime = RuntimeClass1
- priomin = -10
- priomax = 10
-
- DefaultThread PhysicalThread1 {
- execmode = mixed
- interval = 100ms
- prio = 0
- stacksize = 1024
- msgblocksize = 32
- msgpoolsize = 10
- }
- }
-
- RuntimeClass RuntimeClass1 {
- model = multiThreaded
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.room b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.room
deleted file mode 100644
index 7aea04317..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step3/trafficlight.room
+++ /dev/null
@@ -1,358 +0,0 @@
-RoomModel TrafficlightModel {
-
- import room.basic.types.* from "../../../org.eclipse.etrice.modellib.java/model/Types.room"
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/model/TimingService.room"
- import room.basic.service.tcp.* from "../../../org.eclipse.etrice.modellib.java/model/TcpService.room"
-
- LogicalSystem TrafficlightLogSys {
- SubSystemRef subsystem:SubSys
- }
- SubSystemClass SubSys {
- ActorRef application:Application
- ActorRef timingService: ATimingService
- LayerConnection ref application satisfied_by timingService.timer
- LogicalThread defaultThread
- }
- ActorClass Application {
- Structure {
- ActorRef controller: TrafficLightController
- ActorRef coordinator: TrafficLightCoordinator
- ActorRef tsCommands: TrafficLightCommands
- Binding coordinator.controller and controller.fct
- Binding controller.tlCommands and tsCommands.fct
- }
- Behavior { }
- }
-
- ActorClass TrafficLightCoordinator {
- Interface {
- conjugated Port controller [*]: PTrafficLightController
- }
- Structure {
- external Port controller
- SAP timeout: PTimer
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> Idle { }
- Transition tr0: Idle -> Running {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr1: Running -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> Running {
- triggers {
- <timeout: timeout>
- }
- }
- State Idle {
- entry {
- "timeout.startTimeout(3000);"
- }
- }
- State Running {
- entry {
- "timeout.startTimeout(20000);"
- "controller.setOn();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(20000);"
- "controller.setOff();"
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightController {
- Interface {
- Port fct: PTrafficLightController
- conjugated Port tlCommands: PTrafficLightCommands
- }
- Structure {
- external Port fct
- external Port tlCommands
- SAP timeout: PTimer
- }
- Behavior {
- StateMachine {
- Transition init: initial -> InitCommands { }
- Transition tr0: InitCommands -> tp0 of Blinking {
- triggers {
- <doneInit: tlCommands>
- }
- }
- Transition tr1: Blinking -> tp0 of Working {
- triggers {
- <setOn: fct>
- }
- }
- Transition tr2: Working -> tp0 of Blinking {
- triggers {
- <setOff: fct>
- }
- }
- State InitCommands {
- entry {
- "tlCommands.startInit();"
- }
- }
- State Blinking {
- entry {
- "tlCommands.carYellow();"
- }
- exit {
- "timeout.kill();"
- }
- subgraph {
- Transition tr0: my tp0 -> On
- Transition tr1: On -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> On {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State On {
- entry {
- "tlCommands.carYellow();"
- "tlCommands.pedRed();"
- "timeout.startTimeout(500);"
- }
- exit {
- "tlCommands.carOff();"
- "tlCommands.pedOff();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(500);"
- }
- }
- }
- }
- State Working {
- subgraph {
- Transition tr0: my tp0 -> AllRed
- Transition tr1: AllRed -> CarGreen {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: PedGreen -> AllRed {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr3: CarGreen -> CarYellow {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr4: CarYellow -> CarRed {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr5: CarRed -> PedGreen {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State AllRed {
- entry {
- "tlCommands.carRed();"
- "tlCommands.pedRed();"
- "timeout.startTimeout(1000);"
- }
- }
- State CarGreen {
- entry {
- "tlCommands.carGreen();"
- "timeout.startTimeout(3000);"
- }
- }
- State CarYellow {
- entry {
- "tlCommands.carYellow();"
- "timeout.startTimeout(1000);"
- }
- }
- State CarRed {
- entry {
- "tlCommands.carRed();"
- "timeout.startTimeout(1000);"
- }
- }
- State PedGreen {
- entry {
- "tlCommands.pedGreen();"
- "timeout.startTimeout(3000);"
- }
- }
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightCommands {
- Interface {
- Port fct: PTrafficLightCommands
- }
- Structure {
- external Port fct
- conjugated Port socketControl: PTcpControl
- conjugated Port socketPayload: PTcpPayload
- ActorRef socket: ATcpClient
- Binding socketPayload and socket.PayloadPort
- Binding socketControl and socket.ControlPort
- Attribute socketConfig: DTcpControl
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> NotInitialized {
- action {
- "socketConfig = new DTcpControl(\"localhost\", 4441);"
- }
- }
- Transition tr0: ConfigSocket -> SocketOpen {
- triggers {
- <established: socketControl>
- }
- action {
- "fct.doneInit();"
- }
- }
- Transition tr1: SocketOpen -> SocketOpen {
- triggers {
- <carRed: fct>
- }
- action {
- "String payload = new String(\"carLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr2: SocketOpen -> SocketOpen {
- triggers {
- <carYellow: fct>
- }
- action {
- "String payload = new String(\"carLights=yellow\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr3: SocketOpen -> SocketOpen {
- triggers {
- <carGreen: fct>
- }
- action {
- "String payload = new String(\"carLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr4: SocketOpen -> SocketOpen {
- triggers {
- <carOff: fct>
- }
- action {
- "String payload = new String(\"carLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr5: SocketOpen -> SocketOpen {
- triggers {
- <pedRed: fct>
- }
- action {
- "String payload = new String(\"pedLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr6: SocketOpen -> SocketOpen {
- triggers {
- <pedGreen: fct>
- }
- action {
- "String payload = new String(\"pedLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr7: SocketOpen -> SocketOpen {
- triggers {
- <pedOff: fct>
- }
- action {
- "String payload = new String(\"pedLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr8: SocketOpen -> SocketOpen {
- triggers {
- <receive: socketPayload>
- }
- action {
- "fct.pressedButton();"
- }
- }
- Transition tr9: NotInitialized -> ConfigSocket {
- triggers {
- <startInit: fct>
- }
- }
- State ConfigSocket {
- entry {
- "socketControl.open(socketConfig);"
- ""
- "System.out.println(\"ConfigSocket: open\");"
- }
- }
- State SocketOpen
- State NotInitialized
- }
- }
- }
-
- ProtocolClass PTrafficLightController {
- incoming {
- Message setOn()
- Message setOff()
- }
- }
-
- ProtocolClass PTrafficLightCommands {
- incoming {
- Message startInit()
-
- Message carRed()
- Message carYellow()
- Message carYellowRed()
- Message carGreen()
- Message carOff()
-
- Message pedRed()
- Message pedGreen()
- Message pedOff()
-
- }
- outgoing {
- Message doneInit()
-
- Message pressedButton()
- }
- }
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.Application.structure b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.Application.structure
deleted file mode 100644
index 2fe515930..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.Application.structure
+++ /dev/null
@@ -1,749 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" diagramTypeId="room.structure" name="Structure of Application" pictogramLinks="//@link //@children.0/@link //@children.0/@children.0/@link //@children.0/@children.1/@link //@children.0/@children.2/@link //@children.0/@children.3/@link //@children.0/@children.4/@link //@children.0/@children.3/@children.2/@link //@children.0/@children.1/@children.2/@link //@children.0/@children.0/@children.2/@link //@children.0/@children.0/@children.3/@link //@children.0/@children.2/@children.2/@link //@children.0/@children.4/@children.2/@link //@children.0/@children.4/@children.3/@link //@connections.0/@link //@connections.1/@link //@connections.2/@link //@connections.3/@link" verticalGridUnit="0" version="0.10.0">
- <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:Application"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="cls"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="880" height="580" x="40" y="40">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" lineVisible="false" transparency="0.5" width="800" height="500" x="40" y="40"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:Application"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="26" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:Application$controller"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.0/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="controller&#xA;(TrafficLightController)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </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="60" height="60" x="59">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightController$fct"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.0/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="fct"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="C"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="119">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightController$tlCommands"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.0/@children.0/@children.3/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="tlCommands"/>
- </children>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="222" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:Application$coordinator"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="coordinator&#xA;(TrafficLightCoordinator)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="CM"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="90">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="23" y="19"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCoordinator$controller"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.0 //@connections.3" referencedGraphicsAlgorithm="//@children.0/@children.1/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.1"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="controller"/>
- </children>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="418" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:Application$tsCommands"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="tsCommands&#xA;(TrafficLightCommands)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </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="60" height="60" x="90">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCommands$fct"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.0/@children.2/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="fct"/>
- </children>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="614" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:Application$tlCommands2"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.3/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="tlCommands2&#xA;(TrafficLightCommands)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </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="60" height="60" x="90">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCommands$fct"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.2" referencedGraphicsAlgorithm="//@children.0/@children.3/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="fct"/>
- </children>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="320" y="270">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:Application$controller2"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.4/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="controller2&#xA;(TrafficLightController)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </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="60" height="60" x="59">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightController$fct"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.3" referencedGraphicsAlgorithm="//@children.0/@children.4/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="fct"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="C"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="60" height="60" x="119">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightController$tlCommands"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.2" referencedGraphicsAlgorithm="//@children.0/@children.4/@children.3/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="tlCommands"/>
- </children>
- </children>
- </children>
- </children>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.1/@children.2/@anchors.0" end="//@children.0/@children.0/@children.2/@anchors.0">
- <properties key="obj-type" value="bind"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#Binding:Application$controller!coordinator-fct!controller"/>
- </link>
- </connections>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.0/@children.3/@anchors.0" end="//@children.0/@children.2/@children.2/@anchors.0">
- <properties key="obj-type" value="bind"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#Binding:Application$tlCommands!controller-fct!tsCommands"/>
- </link>
- </connections>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.4/@children.3/@anchors.0" end="//@children.0/@children.3/@children.2/@anchors.0">
- <properties key="obj-type" value="bind"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#Binding:Application$tlCommands!controller2-fct!tlCommands2"/>
- </link>
- </connections>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.1/@children.2/@anchors.0" end="//@children.0/@children.4/@children.2/@anchors.0">
- <properties key="obj-type" value="bind"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#Binding:Application$controller!coordinator-fct!controller2"/>
- </link>
- </connections>
- <colors red="227" green="238" blue="249"/>
- <colors red="255" green="255" blue="255"/>
- <colors/>
- <colors red="200" green="200" blue="200"/>
- <fonts name="Arial" size="8"/>
-</pi:Diagram>
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.SubSys.structure b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.SubSys.structure
deleted file mode 100644
index 55785c311..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.SubSys.structure
+++ /dev/null
@@ -1,290 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" diagramTypeId="room.structure" name="Structure of SubSys" pictogramLinks="//@link //@children.0/@link //@children.0/@children.0/@link //@children.0/@children.1/@link //@children.0/@children.1/@children.2/@link //@connections.0/@link" verticalGridUnit="0" version="0.10.0">
- <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
- <link>
- <businessObjects href="../trafficlight.room#SubSystemClass:SubSys"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="cls"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="880" height="580" x="40" y="40">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" lineVisible="false" transparency="0.5" width="800" height="500" x="40" y="40"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#SubSystemClass:SubSys"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="155" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="true" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:SubSys$application"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.0/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="application&#xA;(Application)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="482" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:SubSys$timingService"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="timingService&#xA;(ATimingService)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </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="60" height="60">
- <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="platform:/resource/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/../../../org.eclipse.etrice.modellib.java/model/TimingService.room#SPP:ATimingService$timer"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="timer"/>
- </children>
- </children>
- </children>
- </children>
- <connections xsi:type="pi:ManhattanConnection" visible="true" active="true" start="//@children.0/@children.0/@anchors.0" end="//@children.0/@children.1/@children.2/@anchors.0">
- <properties key="obj-type" value="conn"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="2" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#LayerConnection:SubSys$application-timingService!timer"/>
- </link>
- <connectionDecorators visible="true" locationRelative="true" location="1.0">
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="2" filled="false" transparency="0.0">
- <points x="-15" y="10"/>
- <points/>
- <points x="-15" y="-10"/>
- </graphicsAlgorithm>
- </connectionDecorators>
- </connections>
- <colors red="227" green="238" blue="249"/>
- <colors red="255" green="255" blue="255"/>
- <colors/>
- <colors red="200" green="200" blue="200"/>
- <fonts name="Arial" size="8"/>
-</pi:Diagram>
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCommands.structure b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCommands.structure
deleted file mode 100644
index 12e05ad7d..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCommands.structure
+++ /dev/null
@@ -1,229 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" diagramTypeId="room.structure" name="Structure of TrafficLightCommands" pictogramLinks="//@link //@children.0/@link //@children.0/@children.0/@link //@children.0/@children.0/@children.2/@link //@children.0/@children.0/@children.3/@link //@children.0/@children.1/@link //@children.0/@children.2/@link //@children.0/@children.3/@link //@connections.0/@link //@connections.1/@link" verticalGridUnit="0" version="0.10.0">
- <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightCommands"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="cls"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="880" height="580" x="40" y="40">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" lineVisible="false" transparency="0.5" width="800" height="500" x="40" y="40"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightCommands"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="ref"/>
- <properties key="actorref_version" value="2"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="240" height="140" x="320" y="160">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="180" height="80" x="33" y="27">
- <properties key="actorref_graphic_element" value="replborder"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="180" height="80" x="30" y="30">
- <properties key="actorref_graphic_element" value="mainborder"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="150" y="50">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="20" height="10" x="145" y="65">
- <properties key="actorref_graphic_element" value="substructure"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="15"/>
- <points x="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="30"/>
- <points x="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="45"/>
- <points x="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="60"/>
- <points x="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points y="75"/>
- <points x="75"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="10" y="80"/>
- <points x="90"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="25" y="80"/>
- <points x="105"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="40" y="80"/>
- <points x="120"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="55" y="80"/>
- <points x="135"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="70" y="80"/>
- <points x="150"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="85" y="80"/>
- <points x="165"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="100" y="80"/>
- <points x="180"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="115" y="80"/>
- <points x="180" y="15"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="130" y="80"/>
- <points x="180" y="30"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="145" y="80"/>
- <points x="180" y="45"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="160" y="80"/>
- <points x="180" y="60"/>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineStyle="UNSPECIFIED" lineVisible="false" transparency="0.4">
- <properties key="actorref_graphic_element" value="hatched_line"/>
- <points x="175" y="80"/>
- <points x="180" y="75"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithmChildren>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="25" height="25" x="185" y="30">
- <properties key="actorref_graphic_element" value="sizeframe"/>
- </graphicsAlgorithmChildren>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorRef:TrafficLightCommands$socket"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.0/@graphicsAlgorithm/@graphicsAlgorithmChildren.1">
- <properties key="actorref_graphic_element" value="layerconn_anchor"/>
- </anchors>
- <children visible="true">
- <properties key="actorref_graphic_element" value="name_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="180" height="80" x="30" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="socket&#xA;(ATcpClient)"/>
- </children>
- <children>
- <properties key="actorref_graphic_element" value="size_shape"/>
- <graphicsAlgorithm xsi:type="al:Text" background="//@colors.3" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="25" height="25" x="185" y="30" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="1"/>
- </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="60" height="60">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="platform:/resource/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/../../../org.eclipse.etrice.modellib.java/model/TcpService.room#Port:ATcpClient$ControlPort"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.0/@children.0/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="ControlPort"/>
- </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="60" height="60">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="1" transparency="0.0" width="18" height="18" x="21" y="21"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="platform:/resource/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/../../../org.eclipse.etrice.modellib.java/model/TcpService.room#Port:ATcpClient$PayloadPort"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.0/@children.3/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="60" height="15" y="6" font="//@fonts.0" value="PayloadPort"/>
- </children>
- </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="80" height="80" x="400">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="20" y="20"/>
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.1" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCommands$fct"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" font="//@fonts.0" value="fct"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="C"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="80" height="80" x="265" y="60">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="20" y="20"/>
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCommands$socketControl"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.1" referencedGraphicsAlgorithm="//@children.0/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" font="//@fonts.0" value="socketControl"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="C"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="80" height="80" x="532" y="60">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="20" y="20"/>
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCommands$socketPayload"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" outgoingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.3/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" font="//@fonts.0" value="socketPayload"/>
- </children>
- </children>
- </children>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.3/@anchors.0" end="//@children.0/@children.0/@children.3/@anchors.0">
- <properties key="obj-type" value="bind"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#Binding:TrafficLightCommands$socketPayload!.-PayloadPort!socket"/>
- </link>
- </connections>
- <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@children.2/@anchors.0" end="//@children.0/@children.0/@children.2/@anchors.0">
- <properties key="obj-type" value="bind"/>
- <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0"/>
- <link>
- <businessObjects href="../trafficlight.room#Binding:TrafficLightCommands$socketControl!.-ControlPort!socket"/>
- </link>
- </connections>
- <colors red="227" green="238" blue="249"/>
- <colors red="255" green="255" blue="255"/>
- <colors/>
- <colors red="200" green="200" blue="200"/>
- <fonts name="Arial" size="8"/>
-</pi:Diagram>
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightController.structure b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightController.structure
deleted file mode 100644
index 479a3bbb8..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightController.structure
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" diagramTypeId="room.structure" name="Structure of TrafficLightController" pictogramLinks="//@link //@children.0/@link //@children.0/@children.0/@link //@children.0/@children.1/@link" verticalGridUnit="0" version="0.10.0">
- <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightController"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="cls"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="880" height="580" x="40" y="40">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" lineVisible="false" transparency="0.5" width="800" height="500" x="40" y="40"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightController"/>
- </link>
- <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="80" height="80" x="265">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.2" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="20" y="20"/>
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.1" foreground="//@colors.1" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightController$fct"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.0/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" font="//@fonts.0" value="fct"/>
- </children>
- </children>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="C"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="80" height="80" x="532">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="20" y="20"/>
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightController$tlCommands"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.1/@graphicsAlgorithm/@graphicsAlgorithmChildren.0"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" font="//@fonts.0" value="tlCommands"/>
- </children>
- </children>
- </children>
- <colors red="227" green="238" blue="249"/>
- <colors red="255" green="255" blue="255"/>
- <colors/>
- <fonts name="Arial" size="8"/>
-</pi:Diagram>
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCoordinator.structure b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCoordinator.structure
deleted file mode 100644
index 31b4cdc40..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/diagrams/TrafficlightModel.TrafficLightCoordinator.structure
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" diagramTypeId="room.structure" name="Structure of TrafficLightCoordinator" pictogramLinks="//@link //@children.0/@link //@children.0/@children.0/@link" verticalGridUnit="0" version="0.10.0">
- <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightCoordinator"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="cls"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="880" height="580" x="40" y="40">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="1" lineVisible="false" transparency="0.5" width="800" height="500" x="40" y="40"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" foreground="//@colors.2" lineWidth="4" filled="false" transparency="0.0" width="800" height="500" x="40" y="40"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#ActorClass:TrafficLightCoordinator"/>
- </link>
- <children xsi:type="pi:ContainerShape" visible="true" active="true">
- <properties key="obj-type" value="port"/>
- <properties key="item-kind" value="CM"/>
- <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="80" height="80" x="400">
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="25" y="15"/>
- <graphicsAlgorithmChildren xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="40" height="40" x="20" y="20"/>
- <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.2" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="20" height="20" x="30" y="30"/>
- </graphicsAlgorithm>
- <link>
- <businessObjects href="../trafficlight.room#Port:TrafficLightCoordinator$controller"/>
- </link>
- <anchors xsi:type="pi:ChopboxAnchor" referencedGraphicsAlgorithm="//@children.0/@children.0/@graphicsAlgorithm/@graphicsAlgorithmChildren.1"/>
- <children visible="true">
- <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.2" lineWidth="1" filled="false" transparency="0.0" width="80" height="20" font="//@fonts.0" value="controller"/>
- </children>
- </children>
- </children>
- <colors red="227" green="238" blue="249"/>
- <colors red="255" green="255" blue="255"/>
- <colors/>
- <fonts name="Arial" size="8"/>
-</pi:Diagram>
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.config b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.config
deleted file mode 100644
index d0693fefe..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.config
+++ /dev/null
@@ -1,17 +0,0 @@
-ConfigModel trafficlight.example.config {
-
- import trafficlight.example.* from "trafficlight.room"
- ActorInstanceConfig TrafficlightModel.TrafficlightLogSys/subsystem/application/tsCommands {
- Attr socketConfig {
- Attr IPAddr = "localhost"
- Attr TcpPort = 4441
- }
- }
- ActorInstanceConfig TrafficlightModel.TrafficlightLogSys/subsystem/application/tlCommands2 {
- Attr socketConfig {
- Attr IPAddr = "localhost"
- Attr TcpPort = 4442
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etmap b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etmap
deleted file mode 100644
index a9a61742a..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etmap
+++ /dev/null
@@ -1,10 +0,0 @@
-MappingModel MappingModel1 {
- import TrafficlightModel.* from "trafficlight.room"
- import TrafficLightPhysicalModel.* from "trafficlight.etphys"
- Mapping TrafficlightLogSys -> PhysicalSys {
- SubSystemMapping subsystem -> node1 {
- ThreadMapping defaultThread -> PhysicalThread1
- }
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etphys b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etphys
deleted file mode 100644
index d08e35e2e..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.etphys
+++ /dev/null
@@ -1,26 +0,0 @@
-PhysicalModel TrafficLightPhysicalModel {
-
- PhysicalSystem PhysicalSys {
- NodeRef node1 : NodeClass1
- }
-
- NodeClass NodeClass1 {
- runtime = RuntimeClass1
- priomin = -10
- priomax = 10
-
- DefaultThread PhysicalThread1 {
- execmode = mixed
- interval = 100ms
- prio = 0
- stacksize = 1024
- msgblocksize = 32
- msgpoolsize = 10
- }
- }
-
- RuntimeClass RuntimeClass1 {
- model = multiThreaded
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.room b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.room
deleted file mode 100644
index 1ff03b0d9..000000000
--- a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight.example/demomodel/step4/trafficlight.room
+++ /dev/null
@@ -1,362 +0,0 @@
-RoomModel TrafficlightModel {
-
- import room.basic.types.* from "../../../org.eclipse.etrice.modellib.java/model/Types.room"
- import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.java/model/TimingService.room"
- import room.basic.service.tcp.* from "../../../org.eclipse.etrice.modellib.java/model/TcpService.room"
-
- LogicalSystem TrafficlightLogSys {
- SubSystemRef subsystem:SubSys
- }
- SubSystemClass SubSys {
- ActorRef application:Application
- ActorRef timingService: ATimingService
- LayerConnection ref application satisfied_by timingService.timer
- LogicalThread defaultThread
- }
- ActorClass Application {
- Structure {
- ActorRef controller: TrafficLightController
- ActorRef coordinator: TrafficLightCoordinator
- ActorRef tsCommands: TrafficLightCommands
- ActorRef tlCommands2: TrafficLightCommands
- ActorRef controller2: TrafficLightController
- Binding coordinator.controller and controller.fct
- Binding controller.tlCommands and tsCommands.fct
- Binding controller2.tlCommands and tlCommands2.fct
- Binding coordinator.controller and controller2.fct
- }
- Behavior { }
- }
-
- ActorClass TrafficLightCoordinator {
- Interface {
- conjugated Port controller [*]: PTrafficLightController
- }
- Structure {
- external Port controller
- SAP timeout: PTimer
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> Idle { }
- Transition tr0: Idle -> Running {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr1: Running -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> Running {
- triggers {
- <timeout: timeout>
- }
- }
- State Idle {
- entry {
- "timeout.startTimeout(3000);"
- }
- }
- State Running {
- entry {
- "timeout.startTimeout(20000);"
- "controller.setOn();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(20000);"
- "controller.setOff();"
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightController {
- Interface {
- Port fct: PTrafficLightController
- conjugated Port tlCommands: PTrafficLightCommands
- }
- Structure {
- external Port fct
- external Port tlCommands
- SAP timeout: PTimer
- }
- Behavior {
- StateMachine {
- Transition init: initial -> InitCommands { }
- Transition tr0: InitCommands -> tp0 of Blinking {
- triggers {
- <doneInit: tlCommands>
- }
- }
- Transition tr1: Blinking -> tp0 of Working {
- triggers {
- <setOn: fct>
- }
- }
- Transition tr2: Working -> tp0 of Blinking {
- triggers {
- <setOff: fct>
- }
- }
- State InitCommands {
- entry {
- "tlCommands.startInit();"
- }
- }
- State Blinking {
- entry {
- "tlCommands.carYellow();"
- }
- exit {
- "timeout.kill();"
- }
- subgraph {
- Transition tr0: my tp0 -> On
- Transition tr1: On -> Off {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: Off -> On {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State On {
- entry {
- "tlCommands.carYellow();"
- "tlCommands.pedRed();"
- "timeout.startTimeout(500);"
- }
- exit {
- "tlCommands.carOff();"
- "tlCommands.pedOff();"
- }
- }
- State Off {
- entry {
- "timeout.startTimeout(500);"
- }
- }
- }
- }
- State Working {
- subgraph {
- Transition tr0: my tp0 -> AllRed
- Transition tr1: AllRed -> CarGreen {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr2: PedGreen -> AllRed {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr3: CarGreen -> CarYellow {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr4: CarYellow -> CarRed {
- triggers {
- <timeout: timeout>
- }
- }
- Transition tr5: CarRed -> PedGreen {
- triggers {
- <timeout: timeout>
- }
- }
- EntryPoint tp0
- State AllRed {
- entry {
- "tlCommands.carRed();"
- "tlCommands.pedRed();"
- "timeout.startTimeout(1000);"
- }
- }
- State CarGreen {
- entry {
- "tlCommands.carGreen();"
- "timeout.startTimeout(3000);"
- }
- }
- State CarYellow {
- entry {
- "tlCommands.carYellow();"
- "timeout.startTimeout(1000);"
- }
- }
- State CarRed {
- entry {
- "tlCommands.carRed();"
- "timeout.startTimeout(1000);"
- }
- }
- State PedGreen {
- entry {
- "tlCommands.pedGreen();"
- "timeout.startTimeout(3000);"
- }
- }
- }
- }
- }
- }
- }
-
- ActorClass TrafficLightCommands {
- Interface {
- Port fct: PTrafficLightCommands
- }
- Structure {
- external Port fct
- conjugated Port socketControl: PTcpControl
- conjugated Port socketPayload: PTcpPayload
- ActorRef socket: ATcpClient
- Binding socketPayload and socket.PayloadPort
- Binding socketControl and socket.ControlPort
- Attribute socketConfig: DTcpControl
-
- }
- Behavior {
- StateMachine {
- Transition init: initial -> NotInitialized {
- action {
- "//socketConfig = new DTcpControl(\"localhost\", 4441);"
- }
- }
- Transition tr0: ConfigSocket -> SocketOpen {
- triggers {
- <established: socketControl>
- }
- action {
- "fct.doneInit();"
- }
- }
- Transition tr1: SocketOpen -> SocketOpen {
- triggers {
- <carRed: fct>
- }
- action {
- "String payload = new String(\"carLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr2: SocketOpen -> SocketOpen {
- triggers {
- <carYellow: fct>
- }
- action {
- "String payload = new String(\"carLights=yellow\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr3: SocketOpen -> SocketOpen {
- triggers {
- <carGreen: fct>
- }
- action {
- "String payload = new String(\"carLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr4: SocketOpen -> SocketOpen {
- triggers {
- <carOff: fct>
- }
- action {
- "String payload = new String(\"carLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr5: SocketOpen -> SocketOpen {
- triggers {
- <pedRed: fct>
- }
- action {
- "String payload = new String(\"pedLights=red\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr6: SocketOpen -> SocketOpen {
- triggers {
- <pedGreen: fct>
- }
- action {
- "String payload = new String(\"pedLights=green\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr7: SocketOpen -> SocketOpen {
- triggers {
- <pedOff: fct>
- }
- action {
- "String payload = new String(\"pedLights=off\\n\");"
- "socketPayload.send(new DTcpPayload(0, payload.length(), payload.getBytes() ));"
- }
- }
- Transition tr8: SocketOpen -> SocketOpen {
- triggers {
- <receive: socketPayload>
- }
- action {
- "fct.pressedButton();"
- }
- }
- Transition tr9: NotInitialized -> ConfigSocket {
- triggers {
- <startInit: fct>
- }
- }
- State ConfigSocket {
- entry {
- "socketControl.open(socketConfig);"
- ""
- "System.out.println(\"ConfigSocket: open\");"
- }
- }
- State SocketOpen
- State NotInitialized
- }
- }
- }
-
- ProtocolClass PTrafficLightController {
- incoming {
- Message setOn()
- Message setOff()
- }
- }
-
- ProtocolClass PTrafficLightCommands {
- incoming {
- Message startInit()
-
- Message carRed()
- Message carYellow()
- Message carYellowRed()
- Message carGreen()
- Message carOff()
-
- Message pedRed()
- Message pedGreen()
- Message pedOff()
-
- }
- outgoing {
- Message doneInit()
-
- Message pressedButton()
- }
- }
-} \ No newline at end of file

Back to the top