Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 174187b089b47cfcdbd9c62e6e3636365515b2ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Shortkeys:
 *	Ctrl+Space	- content assist
 * 	F3			- open declaration of selected element
 *	Alt+S 		- open structure diagram
 *  Alt+B 		- open behavior diagram
 *  Alt+M 		- open textual editor (in diagrams)
 */
RoomModel HelloWorldModel {

	import room.basic.types.* from "../../../org.eclipse.etrice.modellib.c/model/Types.room"
	import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib.c/model/TimingService.room"

	LogicalSystem LogSys {
		SubSystemRef subSystemRef: SubSysClass
	}

	SubSystemClass SubSysClass {
		ActorRef topActor: TopActor
		ActorRef timingService: ATimingService
		LayerConnection ref topActor satisfied_by timingService.timer
		LogicalThread defaultThread
	}

	// - build your application from here
	ActorClass TopActor {
		Structure {

		}
		Behavior {
			StateMachine {
				Transition init: initial -> helloState
				State helloState {
					entry {
						"printf(\"### Hello World! ###\\n\");"
					}
				}
			}
		}
	}

}

Back to the top