Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.etrice.integration.tests/src-gen')
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTest_Top.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTester.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPUser.java9
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/SubSystem_CPTest.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ConfigText_Top.java70
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ProtocolForConfig.java196
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTest.java100
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTestRunner.java36
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/Testee.java245
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerTest_Top.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerUser.java9
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/SubSystem_HandlerTest.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/Tester.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPingActor.java15
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor1.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor2.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/PingPongTop.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/SubSystem_PingPong.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPingActor.java15
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPongActor1.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/PingPongTop.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/SubSystem_PingPongReplPort.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPing.java15
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPong.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SendingDataTop.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SubSys_SendingData.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/App_SubSystemHFSMTest.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/SubSystemHFSMTest.java2
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tester.java3
-rw-r--r--tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tests.java3
31 files changed, 747 insertions, 20 deletions
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTest_Top.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTest_Top.java
index aa567eae8..5578cd9c8 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTest_Top.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTest_Top.java
@@ -39,7 +39,8 @@ public class CPTest_Top extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTester.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTester.java
index d5942330c..5d1ceb625 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTester.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPTester.java
@@ -43,7 +43,8 @@ public class CPTester extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPUser.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPUser.java
index 86e7b7479..746f12a8c 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPUser.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/CPUser.java
@@ -52,7 +52,14 @@ public class CPUser extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ public void setCounter (int counter) {
+ this.counter = counter;
+ }
+ public int getCounter () {
+ return this.counter;
+ }
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/SubSystem_CPTest.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/SubSystem_CPTest.java
index 104c62959..fe145a05d 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/SubSystem_CPTest.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ChoicePointTest/SubSystem_CPTest.java
@@ -96,6 +96,8 @@ public class SubSystem_CPTest extends SubSystemClassBase{
}
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ConfigText_Top.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ConfigText_Top.java
new file mode 100644
index 000000000..91fa6713a
--- /dev/null
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ConfigText_Top.java
@@ -0,0 +1,70 @@
+package org.eclipse.etrice.integration.ConfigTest;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.IMessageReceiver;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+
+
+
+
+public class ConfigText_Top extends ActorClassBase {
+
+
+ //--------------------- ports
+
+ //--------------------- saps
+
+ //--------------------- services
+
+ //--------------------- interface item IDs
+
+ /*--------------------- attributes ---------------------*/
+ /*--------------------- operations ---------------------*/
+
+ //--------------------- construction
+ public ConfigText_Top(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
+ super(parent, name, port_addr[0][0], peer_addr[0][0]);
+ setClassName("ConfigText_Top");
+
+ // initialize attributes
+
+ // own ports
+
+ // own saps
+
+ // own service implementations
+ }
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+
+ //--------------------- lifecycle functions
+ public void init(){
+ initUser();
+ }
+
+ public void start(){
+ startUser();
+ }
+
+ public void stop(){
+ stopUser();
+ }
+
+ public void destroy(){
+ }
+
+ //--------------------- no state machine
+ @Override
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object data) {
+ handleSystemEvent(ifitem, evt, data);
+ }
+
+ @Override
+ public void executeInitTransition(){
+ }
+};
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ProtocolForConfig.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ProtocolForConfig.java
new file mode 100644
index 000000000..009d75ce6
--- /dev/null
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/ProtocolForConfig.java
@@ -0,0 +1,196 @@
+package org.eclipse.etrice.integration.ConfigTest;
+
+import java.util.ArrayList;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.Message;
+import org.eclipse.etrice.runtime.java.modelbase.*;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+
+
+public class ProtocolForConfig {
+ // message IDs
+ public static final int MSG_MIN = 0;
+ public static final int OUT_outMess = 1;
+ public static final int IN_inMessage = 2;
+ public static final int MSG_MAX = 3;
+
+
+ private static String messageStrings[] = {"MIN", "outMess", "inMessage","MAX"};
+
+ public String getMessageString(int msg_id) {
+ if (msg_id<MSG_MIN || msg_id>MSG_MAX+1){
+ // id out of range
+ return "Message ID out of range";
+ }
+ else{
+ return messageStrings[msg_id];
+ }
+ }
+
+
+ // port class
+ static public class ProtocolForConfigPort extends PortBase {
+ // constructors
+ public ProtocolForConfigPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
+ super(actor, name, localId, 0, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+ public ProtocolForConfigPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
+ super(actor, name, localId, idx, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+
+ @Override
+ public void receive(Message m) {
+ if (!(m instanceof EventMessage))
+ return;
+ EventMessage msg = (EventMessage) m;
+ if (msg.getEvtId() <= 0 || msg.getEvtId() >= MSG_MAX)
+ System.out.println("unknown");
+ else {
+ if (messageStrings[msg.getEvtId()] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncIn(getPeerAddress(), getAddress(), messageStrings[msg.getEvtId()]);
+ }
+ switch (msg.getEvtId()) {
+ case IN_inMessage:
+ {
+ // detail code
+ }
+ break;
+ default:
+ if (msg instanceof EventWithDataMessage)
+ getActor().receiveEvent(this, msg.getEvtId(), ((EventWithDataMessage)msg).getData());
+ else
+ getActor().receiveEvent(this, msg.getEvtId(), null);
+ }
+ }
+ }
+
+ /*--------------------- attributes ---------------------*/
+ int channel;
+ /*--------------------- operations ---------------------*/
+ public int getChannel() {
+ return channel;
+ }
+
+ // sent messages
+ public void outMess(int data) {
+ // out
+ }
+ }
+
+ // replicated port class
+ static public class ProtocolForConfigReplPort {
+ private ArrayList<ProtocolForConfigPort> ports;
+ private int replication;
+
+ public ProtocolForConfigReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
+ Address[] peerAddress) {
+ replication = addr==null? 0:addr.length;
+ ports = new ArrayList<ProtocolForConfig.ProtocolForConfigPort>(replication);
+ for (int i=0; i<replication; ++i) {
+ ports.add(new ProtocolForConfigPort(
+ actor, name+i, localId, i, addr[i], peerAddress[i]));
+ }
+ }
+
+ public int getReplication() {
+ return replication;
+ }
+
+ public int getIndexOf(InterfaceItemBase ifitem){
+ return ifitem.getIdx();
+ }
+
+ public ProtocolForConfigPort get(int i) {
+ return ports.get(i);
+ }
+
+ // outgoing messages
+ public void outMess(int data){
+ for (int i=0; i<replication; ++i) {
+ ports.get(i).outMess( data);
+ }
+ }
+ }
+
+
+ // port class
+ static public class ProtocolForConfigConjPort extends PortBase {
+ // constructors
+ public ProtocolForConfigConjPort(IEventReceiver actor, String name, int localId, Address addr, Address peerAddress) {
+ super(actor, name, localId, 0, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+ public ProtocolForConfigConjPort(IEventReceiver actor, String name, int localId, int idx, Address addr, Address peerAddress) {
+ super(actor, name, localId, idx, addr, peerAddress);
+ DebuggingService.getInstance().addPortInstance(this);
+ }
+
+ @Override
+ public void receive(Message m) {
+ if (!(m instanceof EventMessage))
+ return;
+ EventMessage msg = (EventMessage) m;
+ if (msg.getEvtId() <= 0 || msg.getEvtId() >= MSG_MAX)
+ System.out.println("unknown");
+ else {
+ if (messageStrings[msg.getEvtId()] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncIn(getPeerAddress(), getAddress(), messageStrings[msg.getEvtId()]);
+ }
+ if (msg instanceof EventWithDataMessage)
+ getActor().receiveEvent(this, msg.getEvtId(), ((EventWithDataMessage)msg).getData());
+ else
+ getActor().receiveEvent(this, msg.getEvtId(), null);
+ }
+ }
+
+
+ // sent messages
+ public void inMessage(int data) {
+ if (messageStrings[ IN_inMessage] != "timerTick"){
+ DebuggingService.getInstance().addMessageAsyncOut(getAddress(), getPeerAddress(), messageStrings[IN_inMessage]);
+ }
+ if (getPeerAddress()!=null)
+ getPeerMsgReceiver().receive(new EventWithDataMessage(getPeerAddress(), IN_inMessage, data));
+ }
+ }
+
+ // replicated port class
+ static public class ProtocolForConfigConjReplPort {
+ private ArrayList<ProtocolForConfigConjPort> ports;
+ private int replication;
+
+ public ProtocolForConfigConjReplPort(IEventReceiver actor, String name, int localId, Address[] addr,
+ Address[] peerAddress) {
+ replication = addr==null? 0:addr.length;
+ ports = new ArrayList<ProtocolForConfig.ProtocolForConfigConjPort>(replication);
+ for (int i=0; i<replication; ++i) {
+ ports.add(new ProtocolForConfigConjPort(
+ actor, name+i, localId, i, addr[i], peerAddress[i]));
+ }
+ }
+
+ public int getReplication() {
+ return replication;
+ }
+
+ public int getIndexOf(InterfaceItemBase ifitem){
+ return ifitem.getIdx();
+ }
+
+ public ProtocolForConfigConjPort get(int i) {
+ return ports.get(i);
+ }
+
+ // incoming messages
+ public void inMessage(int data){
+ for (int i=0; i<replication; ++i) {
+ ports.get(i).inMessage( data);
+ }
+ }
+ }
+
+}
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTest.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTest.java
new file mode 100644
index 000000000..a51b529ee
--- /dev/null
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTest.java
@@ -0,0 +1,100 @@
+package org.eclipse.etrice.integration.ConfigTest;
+
+import org.eclipse.etrice.runtime.java.messaging.MessageService;
+import org.eclipse.etrice.runtime.java.messaging.RTServices;
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.RTSystemServicesProtocol.*;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+
+
+
+
+public class SubSystemConfigTest extends SubSystemClassBase{
+
+
+ public SubSystemConfigTest(IRTObject parent, String name) {
+ super(parent, name);
+ }
+
+ @Override
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object data){
+ }
+
+ @Override
+ public void instantiateMessageServices(){
+
+ RTServices.getInstance().getMsgSvcCtrl().addMsgSvc(new MessageService(this, new Address(0, 0, 0),"MessageService_Main"));
+ }
+
+ @Override
+ public void instantiateActors(){
+ // all addresses
+ // Addresses for the Subsystem Systemport
+ Address addr_item_SystemPort_0 = new Address(0,0,104);
+ Address addr_item_SystemPort_1 = new Address(0,0,105);
+
+ // actor instance /SubSystemConfigTest/top itself => Systemport Address
+ // TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
+ Address addr_item__SubSystemConfigTest_top = new Address(0,0,101);
+ // interface items of /SubSystemConfigTest/top
+ // actor instance /SubSystemConfigTest/top/testee itself => Systemport Address
+ // TODOTJ: For each Actor, multiple addresses should be generated (actor?, systemport, debugport)
+ Address addr_item__SubSystemConfigTest_top_testee = new Address(0,0,102);
+ // interface items of /SubSystemConfigTest/top/testee
+ Address addr_item__SubSystemConfigTest_top_testee_port1 = new Address(0,0,103);
+
+ // instantiate all actor instances
+ instances = new ActorClassBase[2];
+ instances[0] = new ConfigText_Top(
+ this,
+ "top",
+ // own interface item addresses
+ new Address[][] {{addr_item__SubSystemConfigTest_top}
+ },
+ // peer interface item addresses
+ new Address[][] {{addr_item_SystemPort_0}
+ }
+ );
+ instances[1] = new Testee(
+ instances[0],
+ "testee",
+ // own interface item addresses
+ new Address[][] {{addr_item__SubSystemConfigTest_top_testee},
+ {
+ addr_item__SubSystemConfigTest_top_testee_port1
+ }
+ },
+ // peer interface item addresses
+ new Address[][] {{addr_item_SystemPort_1},
+ {
+ null
+ }
+ }
+ );
+
+ // apply instance attribute configurations
+ {
+ Testee inst = (Testee) instances[1];
+ inst.setBool3(true);
+ inst.setInt3(301);
+ }
+
+ // create the subsystem system port
+ RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
+ 0, //local ID
+ // own addresses
+ new Address[]{
+ addr_item_SystemPort_0,
+ addr_item_SystemPort_1
+ },
+ // peer addresses
+ new Address[]{
+ addr_item__SubSystemConfigTest_top,
+ addr_item__SubSystemConfigTest_top_testee
+ });
+
+ }
+};
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTestRunner.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTestRunner.java
new file mode 100644
index 000000000..d2fb576b4
--- /dev/null
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/SubSystemConfigTestRunner.java
@@ -0,0 +1,36 @@
+/**
+ * @author generated by eTrice
+ *
+ * this class contains the main function running component SubSystemConfigTest
+ * it instantiates SubSystemConfigTest and starts and ends the lifecycle
+ */
+
+package org.eclipse.etrice.integration.ConfigTest;
+
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemRunnerBase;
+
+class SubSystemConfigTestRunner extends SubSystemRunnerBase {
+
+ static SubSystemConfigTest main_component = new SubSystemConfigTest(null, "SubSystemConfigTest");
+
+ /**
+ * main function
+ * creates component and starts and stops the lifecycle
+ */
+ public static void main(String[] args) {
+
+ System.out.println("*** T H E B E G I N ***");
+
+ main_component.init(); // lifecycle init
+ main_component.start(); // lifecycle start
+
+ // application runs until quit
+ waitForQuit();
+
+ // end the lifecycle
+ main_component.stop(); // lifecycle stop
+ main_component.destroy(); // lifecycle destroy
+
+ System.out.println("*** T H E E N D ***");
+ }
+};
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/Testee.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/Testee.java
new file mode 100644
index 000000000..f21d03029
--- /dev/null
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/ConfigTest/Testee.java
@@ -0,0 +1,245 @@
+package org.eclipse.etrice.integration.ConfigTest;
+
+import org.eclipse.etrice.runtime.java.messaging.Address;
+import org.eclipse.etrice.runtime.java.messaging.IRTObject;
+import org.eclipse.etrice.runtime.java.messaging.IMessageReceiver;
+import org.eclipse.etrice.runtime.java.modelbase.ActorClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.SubSystemClassBase;
+import org.eclipse.etrice.runtime.java.modelbase.InterfaceItemBase;
+import org.eclipse.etrice.runtime.java.debugging.DebuggingService;
+
+
+import org.eclipse.etrice.integration.ConfigTest.ProtocolForConfig.*;
+
+/*--------------------- begin user code ---------------------*/
+ import org.eclipse.etrice.runtime.java.messaging.RTServices;
+/*--------------------- end user code ---------------------*/
+
+
+public class Testee extends ActorClassBase {
+
+
+ //--------------------- ports
+ protected ProtocolForConfigPort port1 = null;
+
+ //--------------------- saps
+
+ //--------------------- services
+
+ //--------------------- interface item IDs
+ public static final int IFITEM_port1 = 1;
+
+ /*--------------------- attributes ---------------------*/
+ boolean bool1;
+ boolean bool2;
+ boolean bool3;
+ int int1;
+ int int2;
+ int int3;
+ /*--------------------- operations ---------------------*/
+
+ //--------------------- construction
+ public Testee(IRTObject parent, String name, Address[][] port_addr, Address[][] peer_addr){
+ super(parent, name, port_addr[0][0], peer_addr[0][0]);
+ setClassName("Testee");
+
+ // initialize attributes
+ bool1 = true;
+ bool2 = false;
+ bool3 = false;
+ int1 = 100;
+ int2 = 210;
+ int3 = 310;
+
+ // own ports
+ port1 = new ProtocolForConfigPort(this, "port1", IFITEM_port1, 0, port_addr[IFITEM_port1][0], peer_addr[IFITEM_port1][0]);
+
+ // own saps
+
+ // own service implementations
+ }
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ public void setBool1 (boolean bool1) {
+ this.bool1 = bool1;
+ }
+ public boolean getBool1 () {
+ return this.bool1;
+ }
+ public void setBool2 (boolean bool2) {
+ this.bool2 = bool2;
+ }
+ public boolean getBool2 () {
+ return this.bool2;
+ }
+ public void setBool3 (boolean bool3) {
+ this.bool3 = bool3;
+ }
+ public boolean getBool3 () {
+ return this.bool3;
+ }
+ public void setInt1 (int int1) {
+ this.int1 = int1;
+ }
+ public int getInt1 () {
+ return this.int1;
+ }
+ public void setInt2 (int int2) {
+ this.int2 = int2;
+ }
+ public int getInt2 () {
+ return this.int2;
+ }
+ public void setInt3 (int int3) {
+ this.int3 = int3;
+ }
+ public int getInt3 () {
+ return this.int3;
+ }
+
+ //--------------------- lifecycle functions
+ public void init(){
+ initUser();
+ }
+
+ public void start(){
+ startUser();
+ }
+
+ public void stop(){
+ stopUser();
+ }
+
+ public void destroy(){
+ }
+
+
+ /* state IDs */
+ public static final int STATE_Done = 2;
+
+ /* transition chains */
+ public static final int CHAIN_TRANS_INITIAL_TO__Done = 1;
+
+ /* triggers */
+ public static final int POLLING = 0;
+
+ // state names
+ protected static final String stateStrings[] = {"<no state>","<top>","Done"
+ };
+
+ // history
+ protected int history[] = {NO_STATE,NO_STATE,NO_STATE};
+
+ private void setState(int new_state) {
+ DebuggingService.getInstance().addActorState(this,stateStrings[new_state]);
+ if (stateStrings[new_state]!="Idle") {
+ System.out.println(getInstancePath() + " -> " + stateStrings[new_state]);
+ }
+ this.state = new_state;
+ }
+
+ /* Entry and Exit Codes */
+ protected void entry_Done() {
+ if (bool1 != true || bool2 != false || bool3 != true ){
+ RTServices.getInstance().getSubSystem().testFinished(1);
+ }
+ else if (int1 != 100 || int2 != 210 || int3 != 301){
+ RTServices.getInstance().getSubSystem().testFinished(2);
+ }
+ else {
+ RTServices.getInstance().getSubSystem().testFinished(0);
+ }
+ }
+
+ /* Action Codes */
+
+ /**
+ * calls exit codes while exiting from the current state to one of its
+ * parent states while remembering the history
+ * @param current - the current state
+ * @param to - the final parent state
+ * @param handler - entry and exit codes are called only if not handler (for handler TransitionPoints)
+ */
+ private void exitTo(int current, int to, boolean handler) {
+ while (current!=to) {
+ switch (current) {
+ case STATE_Done:
+ this.history[STATE_TOP] = STATE_Done;
+ current = STATE_TOP;
+ break;
+ }
+ }
+ }
+
+ /**
+ * calls action, entry and exit codes along a transition chain. The generic data are cast to typed data
+ * matching the trigger of this chain. The ID of the final state is returned
+ * @param chain - the chain ID
+ * @param generic_data - the generic data pointer
+ * @return the ID of the final state
+ */
+ private int executeTransitionChain(int chain, InterfaceItemBase ifitem, Object generic_data) {
+ switch (chain) {
+ case CHAIN_TRANS_INITIAL_TO__Done:
+ {
+ return STATE_Done;
+ }
+ }
+ return NO_STATE;
+ }
+
+ /**
+ * calls entry codes while entering a state's history. The ID of the final leaf state is returned
+ * @param state - the state which is entered
+ * @param handler - entry code is executed if not handler
+ * @return - the ID of the final leaf state
+ */
+ private int enterHistory(int state, boolean handler, boolean skip_entry) {
+ while (true) {
+ switch (state) {
+ case STATE_Done:
+ if (!(skip_entry || handler)) entry_Done();
+ // in leaf state: return state id
+ return STATE_Done;
+ case STATE_TOP:
+ state = this.history[STATE_TOP];
+ break;
+ }
+ skip_entry = false;
+ }
+ //return NO_STATE; // required by CDT but detected as unreachable by JDT because of while (true)
+ }
+
+ public void executeInitTransition() {
+ int chain = CHAIN_TRANS_INITIAL_TO__Done;
+ int next = executeTransitionChain(chain, null, null);
+ next = enterHistory(next, false, false);
+ setState(next);
+ }
+
+ /* receiveEvent contains the main implementation of the FSM */
+ public void receiveEvent(InterfaceItemBase ifitem, int evt, Object generic_data) {
+ int trigger = ifitem.getLocalId() + EVT_SHIFT*evt;
+ int chain = NOT_CAUGHT;
+ int catching_state = NO_STATE;
+ boolean is_handler = false;
+ boolean skip_entry = false;
+
+ if (!handleSystemEvent(ifitem, evt, generic_data)) {
+ switch (this.state) {
+ case STATE_Done:
+ break;
+ }
+ }
+ if (chain != NOT_CAUGHT) {
+ exitTo(this.state, catching_state, is_handler);
+ int next = executeTransitionChain(chain, ifitem, generic_data);
+ next = enterHistory(next, is_handler, skip_entry);
+ setState(next);
+ }
+ }
+
+ //******************************************
+ // END of generated code for FSM
+ //******************************************
+};
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerTest_Top.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerTest_Top.java
index 381ea9208..9234546dc 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerTest_Top.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerTest_Top.java
@@ -39,7 +39,8 @@ public class HandlerTest_Top extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerUser.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerUser.java
index 76454e07f..9d9fbb686 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerUser.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/HandlerUser.java
@@ -52,7 +52,14 @@ public class HandlerUser extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ public void setCounter (int counter) {
+ this.counter = counter;
+ }
+ public int getCounter () {
+ return this.counter;
+ }
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/SubSystem_HandlerTest.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/SubSystem_HandlerTest.java
index c1950d36b..a2d369019 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/SubSystem_HandlerTest.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/SubSystem_HandlerTest.java
@@ -128,6 +128,8 @@ public class SubSystem_HandlerTest extends SubSystemClassBase{
null
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/Tester.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/Tester.java
index c79b01792..df51fe525 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/Tester.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/HandlerTest/Tester.java
@@ -48,7 +48,8 @@ public class Tester extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPingActor.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPingActor.java
index 2621f5783..42f4b91e2 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPingActor.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPingActor.java
@@ -61,7 +61,20 @@ public class MrPingActor extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ public void setCount (int count) {
+ this.count = count;
+ }
+ public int getCount () {
+ return this.count;
+ }
+ public void setPongCount (int pongCount) {
+ this.pongCount = pongCount;
+ }
+ public int getPongCount () {
+ return this.pongCount;
+ }
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor1.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor1.java
index 7d5539aed..6dffd0ca7 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor1.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor1.java
@@ -43,7 +43,8 @@ public class MrPongActor1 extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor2.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor2.java
index 71243d72b..2233986d1 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor2.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/MrPongActor2.java
@@ -43,7 +43,8 @@ public class MrPongActor2 extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/PingPongTop.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/PingPongTop.java
index 15569f2c8..97f9ff28c 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/PingPongTop.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/PingPongTop.java
@@ -39,7 +39,8 @@ public class PingPongTop extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/SubSystem_PingPong.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/SubSystem_PingPong.java
index 08374a9f9..a850f7774 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/SubSystem_PingPong.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTest/SubSystem_PingPong.java
@@ -190,6 +190,8 @@ public class SubSystem_PingPong extends SubSystemClassBase{
null
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPingActor.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPingActor.java
index 3ba356f8b..b513abfb3 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPingActor.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPingActor.java
@@ -55,7 +55,20 @@ public class MrPingActor extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ public void setCount (int count) {
+ this.count = count;
+ }
+ public int getCount () {
+ return this.count;
+ }
+ public void setPongCount (int pongCount) {
+ this.pongCount = pongCount;
+ }
+ public int getPongCount () {
+ return this.pongCount;
+ }
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPongActor1.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPongActor1.java
index 7b4e69fb2..93a5a1dd5 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPongActor1.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/MrPongActor1.java
@@ -43,7 +43,8 @@ public class MrPongActor1 extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/PingPongTop.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/PingPongTop.java
index aae6e7805..d765777cf 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/PingPongTop.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/PingPongTop.java
@@ -39,7 +39,8 @@ public class PingPongTop extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/SubSystem_PingPongReplPort.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/SubSystem_PingPongReplPort.java
index 631eade18..bfe610594 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/SubSystem_PingPongReplPort.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/PingPongThreadTestReplPort/SubSystem_PingPongReplPort.java
@@ -182,6 +182,8 @@ public class SubSystem_PingPongReplPort extends SubSystemClassBase{
null
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPing.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPing.java
index 06eee0b94..3345003c9 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPing.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPing.java
@@ -69,7 +69,20 @@ public class MrPing extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
+ public void setI32Array (int[] i32Array) {
+ this.i32Array = i32Array;
+ }
+ public int[] getI32Array () {
+ return this.i32Array;
+ }
+ public void setData (PingPongData data) {
+ this.data = data;
+ }
+ public PingPongData getData () {
+ return this.data;
+ }
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPong.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPong.java
index dea28688d..b29447e2e 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPong.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/MrPong.java
@@ -55,7 +55,8 @@ public class MrPong extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SendingDataTop.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SendingDataTop.java
index 8f944c7e9..5d3054500 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SendingDataTop.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SendingDataTop.java
@@ -39,7 +39,8 @@ public class SendingDataTop extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SubSys_SendingData.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SubSys_SendingData.java
index 291f1ea77..fc851ebb7 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SubSys_SendingData.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/SendingDataByValueTest/SubSys_SendingData.java
@@ -96,6 +96,8 @@ public class SubSys_SendingData extends SubSystemClassBase{
}
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/App_SubSystemHFSMTest.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/App_SubSystemHFSMTest.java
index 73d98734c..729dadc30 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/App_SubSystemHFSMTest.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/App_SubSystemHFSMTest.java
@@ -39,7 +39,8 @@ public class App_SubSystemHFSMTest extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/SubSystemHFSMTest.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/SubSystemHFSMTest.java
index 99431eaf1..56379a544 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/SubSystemHFSMTest.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/SubSystemHFSMTest.java
@@ -131,6 +131,8 @@ public class SubSystemHFSMTest extends SubSystemClassBase{
null
}
);
+
+ // apply instance attribute configurations
// create the subsystem system port
RTSystemPort = new RTSystemServicesProtocolConjPortRepl(this, "RTSystemPort",
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM.java
index dfe13ded6..dde0e5d53 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM.java
@@ -43,7 +43,8 @@ public class a_HFSM extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tester.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tester.java
index 261c62932..94daeb876 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tester.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tester.java
@@ -46,7 +46,8 @@ public class a_HFSM_Tester extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){
diff --git a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tests.java b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tests.java
index b1d88745e..250b2a842 100644
--- a/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tests.java
+++ b/tests/org.eclipse.etrice.integration.tests/src-gen/org/eclipse/etrice/integration/tests/a_HFSM_Tests.java
@@ -39,7 +39,8 @@ public class a_HFSM_Tests extends ActorClassBase {
// own service implementations
}
-
+ //--------------------- attributes getter and setter
+ //--------------------- attribute setters and getters
//--------------------- lifecycle functions
public void init(){

Back to the top