aboutsummaryrefslogtreecommitdiffstats
path: root/rba.tool.editor.endpoint/model/all.rba
blob: 41725f96da8ead6434ab09ea03b46a513753de7b (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
Package SampleDisplays {
	Display Sample_METER{
		Size Sample_METER_FULLSCREEN {
			width: 500
			height: 400
		}
		CompositeArea Sample_METER_Root {
			layout: FixedPositionLayout {
				PositionContainer {
					x:100
					y:100
					basePoint: LEFT_TOP
					areaReference: A
				}
				PositionContainer {
					x: 50
					y: 250
					basePoint: LEFT_TOP
					areaReference: B
				}
				PositionContainer {
					x: 50
					y: 250
					basePoint: LEFT_TOP
					areaReference: C
				}
				PositionContainer {
					x: 100
					y: 300
					basePoint: LEFT_TOP
					areaReference: X
				}
				PositionContainer {
					x: 100
					y: 300
					basePoint: LEFT_TOP
					areaReference: Y
				}
			}
		}
	}
	Size サイズ {
		width:100
		height:100
	}
	Area A {
		sizeReference:サイズ
		visibility: STANDARD_VALUE
		zorder: STANDARD_VALUE
	}
	Area B {
		sizeReference:サイズ
		visibility: STANDARD_VALUE
		zorder: STANDARD_VALUE
	}
	Area C {
		sizeReference:サイズ
		visibility: STANDARD_VALUE
		zorder: STANDARD_VALUE
	}
	Area X {
		sizeReference:サイズ
		visibility: STANDARD_VALUE
		zorder: STANDARD_VALUE
	}
	Area Y {
		sizeReference:サイズ
		visibility: STANDARD_VALUE
		zorder: STANDARD_VALUE
	}
	ViewContent A1{
		allocatable: [
			A
		]
		State NORMAL {
			priority: 10
		}
		sizeReference:サイズ
	}
	ViewContent B1 {
		allocatable: [
			B
		]
		State NORMAL {
			priority: 10
		}
		State WARNING {
			priority: 11
		}
		sizeReference:サイズ
	}
	ViewContent C1{
		allocatable: [
			C
		]
		State NORMAL {
			priority: 11
		}
		sizeReference:サイズ
	}
	ViewContent X1 {
		allocatable: [
			X
		]
		State NORMAL {
			priority: STANDARD_VALUE
		}
		sizeReference:サイズ
	}
	ViewContent Y1 {
		allocatable: [
			Y
		]
		State NORMAL {
			priority: STANDARD_VALUE
		}
		State WARNING {
			priority: STANDARD_VALUE + 1
		}
		sizeReference:サイズ
	}
	Scene S1{}
	Scene S2{}
	Constraint HA1209_SelectOperator_1 {
		runtime: true
		let sele = ALL_AREAS.select{x|x.contentValue() > 10 }
		S1.isOn() -> For-All {sele}{x|x.isHidden()}
	}
	Constraint HA1209_SelectOperator_2 {
		runtime: true
		let sele = ALL_AREAS.select{x|x.contentValue() > 10 }
		Exists {sele}{x| x == B} -> X.isHidden()
	}
	Constraint HA1209_SelectOperator_3 {
		runtime: true
		let sele = {{A1}.select{x|x.stateValue() = 10}}
		S2.isOn() -> For-All sele{x|!x.isVisible()}
	}
	Constraint HA1209_SelectOperator_4 {
		runtime: true
		let sele1 = ALL_VIEWCONTENTS.select{x|x.stateValue() > 10}
		let sele2 = Y.displayingContent().allocatables().select{y|y.contentValue() > 10}
		Exists {sele1}{x| x == C1} -> For-All {sele2}{z|z.isHidden()}
	}
}