Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 01a8834ed0b6c6360c2639b8a4f8e06abd448237 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import org.eclipse.etrice.integration.ConfigTest.* from "org.eclipse.etrice.integration.ConfigTest.room"
SubSystemConfig SubSystemConfigTest {
	dynamic configuration {
		file path "tmp/subSystemConfigTest"
		//user import "import org.eclipse.etrice.runtime.java.config.ConfigSourceFile"
		//user constructor "new ConfigSourceFile(\"test\")"
		polling timer [ms] 4000
	}
}

/*
 * Class Config
 */ // Actors
ActorClassConfig Testee_ac {
	Attr bool_c = false
	Attr int_c = 210
	Attr float_c = 16777215
	Attr char_c = "A"
	Attr charArray_c = "ROOM-Coon"
	Attr string_c = ":-)"
	Attr string_i = ":-]"
	Attr bool_i = false
	Attr int_i = 310
	Attr float_i = 0.0
	Attr char_i = "B"
	Attr charArray_i = "ROOM Gloom"
	Attr array1_c = 99
	Attr array1_i = 99
	Attr array2_c = false, false
	Attr array2_i = false, false
} // Protocols
ProtocolClassConfig PortProtocol {
	regular Port {
		Attr float_c = 3
		Attr float_i = 9
	}
	conjugate Port {
		Attr array1_c = 1
		Attr array1_i = 2
		Attr array2_c = 16, 32
		Attr array2_i = 16, 32
	}
}

/*
 * Instance Config
 */ ActorInstanceConfig SubSystemConfigTest / top / testee {
	Attr bool_i = true
	Attr int_i = 301
	Attr float_i = 1.0E-5
	Attr char_i = "C"
	Attr charArray_i = "ROOM 2 Moon"
	Attr string_i = ":^]"
	Attr array1_i = 4
	Attr array2_i = false, true
	InterfaceItem Reg_port {
		Attr float_i = 25
	}
}

ActorInstanceConfig SubSystemConfigTest / top / testee / AR1 {
	InterfaceItem Conj_port {
		Attr array1_i = 256
		Attr array2_i = 1, 2
	}
}

ActorInstanceConfig SubSystemConfigTest / top / testee2 {
	Attr int_i = 301 {
		dynamic configuration read
	}
	Attr dc_i {
		dynamic configuration read Attr int_i = 302
		Attr long_array_i = 303
		Attr dc_i {
			Attr char_i = "instance3"
			Attr double_i = 0.304
		}
	}
	Attr blockMe = 0 {
		dynamic configuration read
	}
	Attr blocker = false {
		dynamic configuration read
	}
}


Back to the top