The easiest way to create a new eTrice Project is to use the eclipse project wizard. From the eclipse file menu select File->New->Project and create a new eTrice project and name it HelloWorld
The wizard creates everything that is needed to create, build and run an eTrice model. The resulting project should look like this:
Within the model directory the model file HelloWorld.room was created. Open the HelloWorld.room file and delete the contents of the file. Open the content assist with Ctrl+Space and select model skeleton.
Edit the template variables by typing the new names and jumping with Tab from name to name.
The resulting model code should look like this:
RoomModel HelloWorld {
LogicalSystem System_HelloWorld {
SubSystemRef subsystem : SubSystem_HelloWorld
}
SubSystemClass SubSystem_HelloWorld {
ActorRef application : HelloWorldTop
}
ActorClass HelloWorldTop {
}
}
The goal of eTrice is to describe distributed systems on a logical level. In the current version not all elements will be supported. But as prerequisite for further versions the following elements are mandatory for an eTrice model:
the LogicalSystem
at least one SubSystemClass
at least one ActorClass
The LogicalSystem represents the complete distributed system and contains at least one SubSystemRef. The SubSystemClass represents an address space and contains at least one ActorRef. The ActorClass is the building block of which an application will be built of. It is in general a good idea to define a top level actor that can be used as reference within the subsystem.
The outline view of the textual ROOM editor shows the main modeling elements in an easy to navigate tree.