1use super::{ArrayBounds, Kind, Property, TypeSpec};
9
10#[rustfmt::skip]
16pub static TYPES: &[TypeSpec] = &[
17 TypeSpec {
18 name: "DDBC.ActuatorDescription",
19 message_type: None,
20 properties: &[
21 Property { name: "id", required: true, kind: Kind::Id },
22 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
23 Property { name: "supported_commodites", required: true, kind: Kind::ScalarArray(ArrayBounds { min: Some(1), max: Some(4) }) },
24 Property { name: "operation_modes", required: true, kind: Kind::ObjectArray("DDBC.OperationMode", ArrayBounds { min: Some(1), max: Some(100) }) },
25 Property { name: "transitions", required: true, kind: Kind::ObjectArray("Transition", ArrayBounds { min: Some(0), max: Some(1000) }) },
26 Property { name: "timers", required: true, kind: Kind::ObjectArray("Timer", ArrayBounds { min: Some(0), max: Some(1000) }) },
27 ],
28 },
29 TypeSpec {
30 name: "DDBC.ActuatorStatus",
31 message_type: Some("DDBC.ActuatorStatus"),
32 properties: &[
33 Property { name: "message_id", required: true, kind: Kind::Id },
34 Property { name: "actuator_id", required: true, kind: Kind::Id },
35 Property { name: "active_operation_mode_id", required: true, kind: Kind::Id },
36 Property { name: "operation_mode_factor", required: true, kind: Kind::Scalar },
37 Property { name: "previous_operation_mode_id", required: false, kind: Kind::Id },
38 Property { name: "transition_timestamp", required: false, kind: Kind::Scalar },
39 ],
40 },
41 TypeSpec {
42 name: "DDBC.AverageDemandRateForecast",
43 message_type: Some("DDBC.AverageDemandRateForecast"),
44 properties: &[
45 Property { name: "message_id", required: true, kind: Kind::Id },
46 Property { name: "start_time", required: true, kind: Kind::Scalar },
47 Property { name: "elements", required: true, kind: Kind::ObjectArray("DDBC.AverageDemandRateForecastElement", ArrayBounds { min: Some(1), max: Some(288) }) },
48 ],
49 },
50 TypeSpec {
51 name: "DDBC.AverageDemandRateForecastElement",
52 message_type: None,
53 properties: &[
54 Property { name: "duration", required: true, kind: Kind::Scalar },
55 Property { name: "demand_rate_upper_limit", required: false, kind: Kind::Scalar },
56 Property { name: "demand_rate_upper_95PPR", required: false, kind: Kind::Scalar },
57 Property { name: "demand_rate_upper_68PPR", required: false, kind: Kind::Scalar },
58 Property { name: "demand_rate_expected", required: true, kind: Kind::Scalar },
59 Property { name: "demand_rate_lower_68PPR", required: false, kind: Kind::Scalar },
60 Property { name: "demand_rate_lower_95PPR", required: false, kind: Kind::Scalar },
61 Property { name: "demand_rate_lower_limit", required: false, kind: Kind::Scalar },
62 ],
63 },
64 TypeSpec {
65 name: "DDBC.Instruction",
66 message_type: Some("DDBC.Instruction"),
67 properties: &[
68 Property { name: "message_id", required: true, kind: Kind::Id },
69 Property { name: "id", required: true, kind: Kind::Id },
70 Property { name: "execution_time", required: true, kind: Kind::Scalar },
71 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
72 Property { name: "actuator_id", required: true, kind: Kind::Id },
73 Property { name: "operation_mode_id", required: true, kind: Kind::Id },
74 Property { name: "operation_mode_factor", required: true, kind: Kind::Scalar },
75 ],
76 },
77 TypeSpec {
78 name: "DDBC.OperationMode",
79 message_type: None,
80 properties: &[
81 Property { name: "Id", required: true, kind: Kind::Id },
82 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
83 Property { name: "power_ranges", required: true, kind: Kind::ObjectArray("PowerRange", ArrayBounds { min: Some(1), max: Some(10) }) },
84 Property { name: "supply_range", required: true, kind: Kind::Object("NumberRange") },
85 Property { name: "running_costs", required: false, kind: Kind::Object("NumberRange") },
86 Property { name: "abnormal_condition_only", required: true, kind: Kind::Scalar },
87 ],
88 },
89 TypeSpec {
90 name: "DDBC.PresentDemandStatus",
91 message_type: Some("DDBC.PresentDemandStatus"),
92 properties: &[
93 Property { name: "message_id", required: true, kind: Kind::Id },
94 Property { name: "present_demand_rate", required: true, kind: Kind::Object("NumberRange") },
95 ],
96 },
97 TypeSpec {
98 name: "DDBC.SystemDescription",
99 message_type: Some("DDBC.SystemDescription"),
100 properties: &[
101 Property { name: "message_id", required: true, kind: Kind::Id },
102 Property { name: "valid_from", required: true, kind: Kind::Scalar },
103 Property { name: "actuators", required: true, kind: Kind::ObjectArray("DDBC.ActuatorDescription", ArrayBounds { min: Some(1), max: Some(10) }) },
104 Property { name: "provides_average_demand_rate_forecast", required: true, kind: Kind::Scalar },
105 ],
106 },
107 TypeSpec {
108 name: "DDBC.TimerStatus",
109 message_type: Some("DDBC.TimerStatus"),
110 properties: &[
111 Property { name: "message_id", required: true, kind: Kind::Id },
112 Property { name: "timer_id", required: true, kind: Kind::Id },
113 Property { name: "actuator_id", required: true, kind: Kind::Id },
114 Property { name: "finished_at", required: true, kind: Kind::Scalar },
115 ],
116 },
117 TypeSpec {
118 name: "FRBC.ActuatorDescription",
119 message_type: None,
120 properties: &[
121 Property { name: "id", required: true, kind: Kind::Id },
122 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
123 Property { name: "supported_commodities", required: true, kind: Kind::ScalarArray(ArrayBounds { min: Some(1), max: Some(4) }) },
124 Property { name: "operation_modes", required: true, kind: Kind::ObjectArray("FRBC.OperationMode", ArrayBounds { min: Some(1), max: Some(100) }) },
125 Property { name: "transitions", required: true, kind: Kind::ObjectArray("Transition", ArrayBounds { min: Some(0), max: Some(1000) }) },
126 Property { name: "timers", required: true, kind: Kind::ObjectArray("Timer", ArrayBounds { min: Some(0), max: Some(1000) }) },
127 ],
128 },
129 TypeSpec {
130 name: "FRBC.ActuatorStatus",
131 message_type: Some("FRBC.ActuatorStatus"),
132 properties: &[
133 Property { name: "message_id", required: true, kind: Kind::Id },
134 Property { name: "actuator_id", required: true, kind: Kind::Id },
135 Property { name: "active_operation_mode_id", required: true, kind: Kind::Id },
136 Property { name: "operation_mode_factor", required: true, kind: Kind::Scalar },
137 Property { name: "previous_operation_mode_id", required: false, kind: Kind::Id },
138 Property { name: "transition_timestamp", required: false, kind: Kind::Scalar },
139 ],
140 },
141 TypeSpec {
142 name: "FRBC.FillLevelTargetProfile",
143 message_type: Some("FRBC.FillLevelTargetProfile"),
144 properties: &[
145 Property { name: "message_id", required: true, kind: Kind::Id },
146 Property { name: "start_time", required: true, kind: Kind::Scalar },
147 Property { name: "elements", required: true, kind: Kind::ObjectArray("FRBC.FillLevelTargetProfileElement", ArrayBounds { min: Some(1), max: Some(288) }) },
148 ],
149 },
150 TypeSpec {
151 name: "FRBC.FillLevelTargetProfileElement",
152 message_type: None,
153 properties: &[
154 Property { name: "duration", required: true, kind: Kind::Scalar },
155 Property { name: "fill_level_range", required: true, kind: Kind::Object("NumberRange") },
156 ],
157 },
158 TypeSpec {
159 name: "FRBC.Instruction",
160 message_type: Some("FRBC.Instruction"),
161 properties: &[
162 Property { name: "message_id", required: true, kind: Kind::Id },
163 Property { name: "id", required: true, kind: Kind::Id },
164 Property { name: "actuator_id", required: true, kind: Kind::Id },
165 Property { name: "operation_mode", required: true, kind: Kind::Id },
166 Property { name: "operation_mode_factor", required: true, kind: Kind::Scalar },
167 Property { name: "execution_time", required: true, kind: Kind::Scalar },
168 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
169 ],
170 },
171 TypeSpec {
172 name: "FRBC.LeakageBehaviour",
173 message_type: Some("FRBC.LeakageBehaviour"),
174 properties: &[
175 Property { name: "message_id", required: true, kind: Kind::Id },
176 Property { name: "valid_from", required: true, kind: Kind::Scalar },
177 Property { name: "elements", required: true, kind: Kind::ObjectArray("FRBC.LeakageBehaviourElement", ArrayBounds { min: Some(1), max: Some(288) }) },
178 ],
179 },
180 TypeSpec {
181 name: "FRBC.LeakageBehaviourElement",
182 message_type: None,
183 properties: &[
184 Property { name: "fill_level_range", required: true, kind: Kind::Object("NumberRange") },
185 Property { name: "leakage_rate", required: true, kind: Kind::Scalar },
186 ],
187 },
188 TypeSpec {
189 name: "FRBC.OperationMode",
190 message_type: None,
191 properties: &[
192 Property { name: "id", required: true, kind: Kind::Id },
193 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
194 Property { name: "elements", required: true, kind: Kind::ObjectArray("FRBC.OperationModeElement", ArrayBounds { min: Some(1), max: Some(100) }) },
195 Property { name: "abnormal_condition_only", required: true, kind: Kind::Scalar },
196 ],
197 },
198 TypeSpec {
199 name: "FRBC.OperationModeElement",
200 message_type: None,
201 properties: &[
202 Property { name: "fill_level_range", required: true, kind: Kind::Object("NumberRange") },
203 Property { name: "fill_rate", required: true, kind: Kind::Object("NumberRange") },
204 Property { name: "power_ranges", required: true, kind: Kind::ObjectArray("PowerRange", ArrayBounds { min: Some(1), max: Some(10) }) },
205 Property { name: "running_costs", required: false, kind: Kind::Object("NumberRange") },
206 ],
207 },
208 TypeSpec {
209 name: "FRBC.StorageDescription",
210 message_type: None,
211 properties: &[
212 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
213 Property { name: "fill_level_label", required: false, kind: Kind::Scalar },
214 Property { name: "provides_leakage_behaviour", required: true, kind: Kind::Scalar },
215 Property { name: "provides_fill_level_target_profile", required: true, kind: Kind::Scalar },
216 Property { name: "provides_usage_forecast", required: true, kind: Kind::Scalar },
217 Property { name: "fill_level_range", required: true, kind: Kind::Object("NumberRange") },
218 ],
219 },
220 TypeSpec {
221 name: "FRBC.StorageStatus",
222 message_type: Some("FRBC.StorageStatus"),
223 properties: &[
224 Property { name: "message_id", required: true, kind: Kind::Id },
225 Property { name: "present_fill_level", required: true, kind: Kind::Scalar },
226 ],
227 },
228 TypeSpec {
229 name: "FRBC.SystemDescription",
230 message_type: Some("FRBC.SystemDescription"),
231 properties: &[
232 Property { name: "message_id", required: true, kind: Kind::Id },
233 Property { name: "valid_from", required: true, kind: Kind::Scalar },
234 Property { name: "actuators", required: true, kind: Kind::ObjectArray("FRBC.ActuatorDescription", ArrayBounds { min: Some(1), max: Some(10) }) },
235 Property { name: "storage", required: true, kind: Kind::Object("FRBC.StorageDescription") },
236 ],
237 },
238 TypeSpec {
239 name: "FRBC.TimerStatus",
240 message_type: Some("FRBC.TimerStatus"),
241 properties: &[
242 Property { name: "message_id", required: true, kind: Kind::Id },
243 Property { name: "timer_id", required: true, kind: Kind::Id },
244 Property { name: "actuator_id", required: true, kind: Kind::Id },
245 Property { name: "finished_at", required: true, kind: Kind::Scalar },
246 ],
247 },
248 TypeSpec {
249 name: "FRBC.UsageForecast",
250 message_type: Some("FRBC.UsageForecast"),
251 properties: &[
252 Property { name: "message_id", required: true, kind: Kind::Id },
253 Property { name: "start_time", required: true, kind: Kind::Scalar },
254 Property { name: "elements", required: true, kind: Kind::ObjectArray("FRBC.UsageForecastElement", ArrayBounds { min: Some(1), max: Some(288) }) },
255 ],
256 },
257 TypeSpec {
258 name: "FRBC.UsageForecastElement",
259 message_type: None,
260 properties: &[
261 Property { name: "duration", required: true, kind: Kind::Scalar },
262 Property { name: "usage_rate_upper_limit", required: false, kind: Kind::Scalar },
263 Property { name: "usage_rate_upper_95PPR", required: false, kind: Kind::Scalar },
264 Property { name: "usage_rate_upper_68PPR", required: false, kind: Kind::Scalar },
265 Property { name: "usage_rate_expected", required: true, kind: Kind::Scalar },
266 Property { name: "usage_rate_lower_68PPR", required: false, kind: Kind::Scalar },
267 Property { name: "usage_rate_lower_95PPR", required: false, kind: Kind::Scalar },
268 Property { name: "usage_rate_lower_limit", required: false, kind: Kind::Scalar },
269 ],
270 },
271 TypeSpec {
272 name: "Handshake",
273 message_type: Some("Handshake"),
274 properties: &[
275 Property { name: "message_id", required: true, kind: Kind::Id },
276 Property { name: "role", required: true, kind: Kind::Scalar },
277 Property { name: "supported_protocol_versions", required: false, kind: Kind::ScalarArray(ArrayBounds { min: Some(1), max: None }) },
278 ],
279 },
280 TypeSpec {
281 name: "HandshakeResponse",
282 message_type: Some("HandshakeResponse"),
283 properties: &[
284 Property { name: "message_id", required: true, kind: Kind::Id },
285 Property { name: "selected_protocol_version", required: true, kind: Kind::Scalar },
286 ],
287 },
288 TypeSpec {
289 name: "InstructionStatusUpdate",
290 message_type: Some("InstructionStatusUpdate"),
291 properties: &[
292 Property { name: "message_id", required: true, kind: Kind::Id },
293 Property { name: "instruction_id", required: true, kind: Kind::Id },
294 Property { name: "status_type", required: true, kind: Kind::Scalar },
295 Property { name: "timestamp", required: true, kind: Kind::Scalar },
296 ],
297 },
298 TypeSpec {
299 name: "NumberRange",
300 message_type: None,
301 properties: &[
302 Property { name: "start_of_range", required: true, kind: Kind::Scalar },
303 Property { name: "end_of_range", required: true, kind: Kind::Scalar },
304 ],
305 },
306 TypeSpec {
307 name: "OMBC.Instruction",
308 message_type: Some("OMBC.Instruction"),
309 properties: &[
310 Property { name: "message_id", required: true, kind: Kind::Id },
311 Property { name: "id", required: true, kind: Kind::Id },
312 Property { name: "execution_time", required: true, kind: Kind::Scalar },
313 Property { name: "operation_mode_id", required: true, kind: Kind::Id },
314 Property { name: "operation_mode_factor", required: true, kind: Kind::Scalar },
315 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
316 ],
317 },
318 TypeSpec {
319 name: "OMBC.OperationMode",
320 message_type: None,
321 properties: &[
322 Property { name: "id", required: true, kind: Kind::Id },
323 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
324 Property { name: "power_ranges", required: true, kind: Kind::ObjectArray("PowerRange", ArrayBounds { min: Some(1), max: Some(10) }) },
325 Property { name: "running_costs", required: false, kind: Kind::Object("NumberRange") },
326 Property { name: "abnormal_condition_only", required: true, kind: Kind::Scalar },
327 ],
328 },
329 TypeSpec {
330 name: "OMBC.Status",
331 message_type: Some("OMBC.Status"),
332 properties: &[
333 Property { name: "message_id", required: true, kind: Kind::Id },
334 Property { name: "active_operation_mode_id", required: true, kind: Kind::Id },
335 Property { name: "operation_mode_factor", required: true, kind: Kind::Scalar },
336 Property { name: "previous_operation_mode_id", required: false, kind: Kind::Id },
337 Property { name: "transition_timestamp", required: false, kind: Kind::Scalar },
338 ],
339 },
340 TypeSpec {
341 name: "OMBC.SystemDescription",
342 message_type: Some("OMBC.SystemDescription"),
343 properties: &[
344 Property { name: "message_id", required: true, kind: Kind::Id },
345 Property { name: "valid_from", required: true, kind: Kind::Scalar },
346 Property { name: "operation_modes", required: true, kind: Kind::ObjectArray("OMBC.OperationMode", ArrayBounds { min: Some(1), max: Some(100) }) },
347 Property { name: "transitions", required: true, kind: Kind::ObjectArray("Transition", ArrayBounds { min: Some(0), max: Some(1000) }) },
348 Property { name: "timers", required: true, kind: Kind::ObjectArray("Timer", ArrayBounds { min: Some(0), max: Some(1000) }) },
349 ],
350 },
351 TypeSpec {
352 name: "OMBC.TimerStatus",
353 message_type: Some("OMBC.TimerStatus"),
354 properties: &[
355 Property { name: "message_id", required: true, kind: Kind::Id },
356 Property { name: "timer_id", required: true, kind: Kind::Id },
357 Property { name: "finished_at", required: true, kind: Kind::Scalar },
358 ],
359 },
360 TypeSpec {
361 name: "PEBC.AllowedLimitRange",
362 message_type: None,
363 properties: &[
364 Property { name: "commodity_quantity", required: true, kind: Kind::Scalar },
365 Property { name: "limit_type", required: true, kind: Kind::Scalar },
366 Property { name: "range_boundary", required: true, kind: Kind::Object("NumberRange") },
367 Property { name: "abnormal_condition_only", required: true, kind: Kind::Scalar },
368 ],
369 },
370 TypeSpec {
371 name: "PEBC.EnergyConstraint",
372 message_type: Some("PEBC.EnergyConstraint"),
373 properties: &[
374 Property { name: "message_id", required: true, kind: Kind::Id },
375 Property { name: "id", required: true, kind: Kind::Id },
376 Property { name: "valid_from", required: true, kind: Kind::Scalar },
377 Property { name: "valid_until", required: true, kind: Kind::Scalar },
378 Property { name: "upper_average_power", required: true, kind: Kind::Scalar },
379 Property { name: "lower_average_power", required: true, kind: Kind::Scalar },
380 Property { name: "commodity_quantity", required: true, kind: Kind::Scalar },
381 ],
382 },
383 TypeSpec {
384 name: "PEBC.Instruction",
385 message_type: Some("PEBC.Instruction"),
386 properties: &[
387 Property { name: "message_id", required: true, kind: Kind::Id },
388 Property { name: "id", required: true, kind: Kind::Id },
389 Property { name: "execution_time", required: true, kind: Kind::Scalar },
390 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
391 Property { name: "power_constraints_id", required: true, kind: Kind::Id },
392 Property { name: "power_envelopes", required: true, kind: Kind::ObjectArray("PEBC.PowerEnvelope", ArrayBounds { min: Some(1), max: Some(10) }) },
393 ],
394 },
395 TypeSpec {
396 name: "PEBC.PowerConstraints",
397 message_type: Some("PEBC.PowerConstraints"),
398 properties: &[
399 Property { name: "message_id", required: true, kind: Kind::Id },
400 Property { name: "id", required: true, kind: Kind::Id },
401 Property { name: "valid_from", required: true, kind: Kind::Scalar },
402 Property { name: "valid_until", required: false, kind: Kind::Scalar },
403 Property { name: "consequence_type", required: true, kind: Kind::Scalar },
404 Property { name: "allowed_limit_ranges", required: true, kind: Kind::ObjectArray("PEBC.AllowedLimitRange", ArrayBounds { min: Some(2), max: Some(100) }) },
405 ],
406 },
407 TypeSpec {
408 name: "PEBC.PowerEnvelope",
409 message_type: None,
410 properties: &[
411 Property { name: "id", required: true, kind: Kind::Id },
412 Property { name: "commodity_quantity", required: true, kind: Kind::Scalar },
413 Property { name: "power_envelope_elements", required: true, kind: Kind::ObjectArray("PEBC.PowerEnvelopeElement", ArrayBounds { min: Some(1), max: Some(288) }) },
414 ],
415 },
416 TypeSpec {
417 name: "PEBC.PowerEnvelopeElement",
418 message_type: None,
419 properties: &[
420 Property { name: "duration", required: true, kind: Kind::Scalar },
421 Property { name: "upper_limit", required: true, kind: Kind::Scalar },
422 Property { name: "lower_limit", required: true, kind: Kind::Scalar },
423 ],
424 },
425 TypeSpec {
426 name: "PPBC.EndInterruptionInstruction",
427 message_type: Some("PPBC.EndInterruptionInstruction"),
428 properties: &[
429 Property { name: "message_id", required: true, kind: Kind::Id },
430 Property { name: "id", required: true, kind: Kind::Id },
431 Property { name: "power_profile_id", required: true, kind: Kind::Id },
432 Property { name: "sequence_container_id", required: true, kind: Kind::Id },
433 Property { name: "power_sequence_id", required: true, kind: Kind::Id },
434 Property { name: "execution_time", required: true, kind: Kind::Scalar },
435 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
436 ],
437 },
438 TypeSpec {
439 name: "PPBC.PowerProfileDefinition",
440 message_type: Some("PPBC.PowerProfileDefinition"),
441 properties: &[
442 Property { name: "message_id", required: true, kind: Kind::Id },
443 Property { name: "id", required: true, kind: Kind::Id },
444 Property { name: "start_time", required: true, kind: Kind::Scalar },
445 Property { name: "end_time", required: true, kind: Kind::Scalar },
446 Property { name: "power_sequences_containers", required: true, kind: Kind::ObjectArray("PPBC.PowerSequenceContainer", ArrayBounds { min: Some(1), max: Some(1000) }) },
447 ],
448 },
449 TypeSpec {
450 name: "PPBC.PowerProfileStatus",
451 message_type: Some("PPBC.PowerProfileStatus"),
452 properties: &[
453 Property { name: "message_id", required: true, kind: Kind::Id },
454 Property { name: "sequence_container_status", required: true, kind: Kind::ObjectArray("PPBC.PowerSequenceContainerStatus", ArrayBounds { min: Some(1), max: Some(1000) }) },
455 ],
456 },
457 TypeSpec {
458 name: "PPBC.PowerSequence",
459 message_type: None,
460 properties: &[
461 Property { name: "id", required: true, kind: Kind::Id },
462 Property { name: "elements", required: true, kind: Kind::ObjectArray("PPBC.PowerSequenceElement", ArrayBounds { min: Some(1), max: Some(288) }) },
463 Property { name: "is_interruptible", required: true, kind: Kind::Scalar },
464 Property { name: "max_pause_before", required: false, kind: Kind::Scalar },
465 Property { name: "abnormal_condition_only", required: true, kind: Kind::Scalar },
466 ],
467 },
468 TypeSpec {
469 name: "PPBC.PowerSequenceContainer",
470 message_type: None,
471 properties: &[
472 Property { name: "id", required: true, kind: Kind::Id },
473 Property { name: "power_sequences", required: true, kind: Kind::ObjectArray("PPBC.PowerSequence", ArrayBounds { min: Some(1), max: Some(288) }) },
474 ],
475 },
476 TypeSpec {
477 name: "PPBC.PowerSequenceContainerStatus",
478 message_type: None,
479 properties: &[
480 Property { name: "power_profile_id", required: true, kind: Kind::Id },
481 Property { name: "sequence_container_id", required: true, kind: Kind::Id },
482 Property { name: "selected_sequence_id", required: false, kind: Kind::Id },
483 Property { name: "progress", required: false, kind: Kind::Scalar },
484 Property { name: "status", required: true, kind: Kind::Scalar },
485 ],
486 },
487 TypeSpec {
488 name: "PPBC.PowerSequenceElement",
489 message_type: None,
490 properties: &[
491 Property { name: "duration", required: true, kind: Kind::Scalar },
492 Property { name: "power_values", required: true, kind: Kind::ObjectArray("PowerForecastValue", ArrayBounds { min: Some(1), max: Some(10) }) },
493 ],
494 },
495 TypeSpec {
496 name: "PPBC.ScheduleInstruction",
497 message_type: Some("PPBC.ScheduleInstruction"),
498 properties: &[
499 Property { name: "message_id", required: true, kind: Kind::Id },
500 Property { name: "id", required: true, kind: Kind::Id },
501 Property { name: "power_profile_id", required: true, kind: Kind::Id },
502 Property { name: "sequence_container_id", required: true, kind: Kind::Id },
503 Property { name: "power_sequence_id", required: true, kind: Kind::Id },
504 Property { name: "execution_time", required: true, kind: Kind::Scalar },
505 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
506 ],
507 },
508 TypeSpec {
509 name: "PPBC.StartInterruptionInstruction",
510 message_type: Some("PPBC.StartInterruptionInstruction"),
511 properties: &[
512 Property { name: "message_id", required: true, kind: Kind::Id },
513 Property { name: "id", required: true, kind: Kind::Id },
514 Property { name: "power_profile_id", required: true, kind: Kind::Id },
515 Property { name: "sequence_container_id", required: true, kind: Kind::Id },
516 Property { name: "power_sequence_id", required: true, kind: Kind::Id },
517 Property { name: "execution_time", required: true, kind: Kind::Scalar },
518 Property { name: "abnormal_condition", required: true, kind: Kind::Scalar },
519 ],
520 },
521 TypeSpec {
522 name: "PowerForecast",
523 message_type: Some("PowerForecast"),
524 properties: &[
525 Property { name: "message_id", required: true, kind: Kind::Id },
526 Property { name: "start_time", required: true, kind: Kind::Scalar },
527 Property { name: "elements", required: true, kind: Kind::ObjectArray("PowerForecastElement", ArrayBounds { min: Some(1), max: Some(288) }) },
528 ],
529 },
530 TypeSpec {
531 name: "PowerForecastElement",
532 message_type: None,
533 properties: &[
534 Property { name: "duration", required: true, kind: Kind::Scalar },
535 Property { name: "power_values", required: true, kind: Kind::ObjectArray("PowerForecastValue", ArrayBounds { min: Some(1), max: Some(10) }) },
536 ],
537 },
538 TypeSpec {
539 name: "PowerForecastValue",
540 message_type: None,
541 properties: &[
542 Property { name: "value_upper_limit", required: false, kind: Kind::Scalar },
543 Property { name: "value_upper_95PPR", required: false, kind: Kind::Scalar },
544 Property { name: "value_upper_68PPR", required: false, kind: Kind::Scalar },
545 Property { name: "value_expected", required: true, kind: Kind::Scalar },
546 Property { name: "value_lower_68PPR", required: false, kind: Kind::Scalar },
547 Property { name: "value_lower_95PPR", required: false, kind: Kind::Scalar },
548 Property { name: "value_lower_limit", required: false, kind: Kind::Scalar },
549 Property { name: "commodity_quantity", required: true, kind: Kind::Scalar },
550 ],
551 },
552 TypeSpec {
553 name: "PowerMeasurement",
554 message_type: Some("PowerMeasurement"),
555 properties: &[
556 Property { name: "message_id", required: true, kind: Kind::Id },
557 Property { name: "measurement_timestamp", required: true, kind: Kind::Scalar },
558 Property { name: "values", required: true, kind: Kind::ObjectArray("PowerValue", ArrayBounds { min: Some(1), max: Some(10) }) },
559 ],
560 },
561 TypeSpec {
562 name: "PowerRange",
563 message_type: None,
564 properties: &[
565 Property { name: "start_of_range", required: true, kind: Kind::Scalar },
566 Property { name: "end_of_range", required: true, kind: Kind::Scalar },
567 Property { name: "commodity_quantity", required: true, kind: Kind::Scalar },
568 ],
569 },
570 TypeSpec {
571 name: "PowerValue",
572 message_type: None,
573 properties: &[
574 Property { name: "commodity_quantity", required: true, kind: Kind::Scalar },
575 Property { name: "value", required: true, kind: Kind::Scalar },
576 ],
577 },
578 TypeSpec {
579 name: "ReceptionStatus",
580 message_type: Some("ReceptionStatus"),
581 properties: &[
582 Property { name: "subject_message_id", required: true, kind: Kind::Id },
583 Property { name: "status", required: true, kind: Kind::Scalar },
584 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
585 ],
586 },
587 TypeSpec {
588 name: "ResourceManagerDetails",
589 message_type: Some("ResourceManagerDetails"),
590 properties: &[
591 Property { name: "message_id", required: true, kind: Kind::Id },
592 Property { name: "resource_id", required: true, kind: Kind::Id },
593 Property { name: "name", required: false, kind: Kind::Scalar },
594 Property { name: "roles", required: true, kind: Kind::ObjectArray("Role", ArrayBounds { min: Some(1), max: Some(3) }) },
595 Property { name: "manufacturer", required: false, kind: Kind::Scalar },
596 Property { name: "model", required: false, kind: Kind::Scalar },
597 Property { name: "serial_number", required: false, kind: Kind::Scalar },
598 Property { name: "firmware_version", required: false, kind: Kind::Scalar },
599 Property { name: "instruction_processing_delay", required: true, kind: Kind::Scalar },
600 Property { name: "available_control_types", required: true, kind: Kind::ScalarArray(ArrayBounds { min: Some(1), max: Some(5) }) },
601 Property { name: "currency", required: false, kind: Kind::Scalar },
602 Property { name: "provides_forecast", required: true, kind: Kind::Scalar },
603 Property { name: "provides_power_measurement_types", required: true, kind: Kind::ScalarArray(ArrayBounds { min: Some(1), max: Some(10) }) },
604 ],
605 },
606 TypeSpec {
607 name: "RevokeObject",
608 message_type: Some("RevokeObject"),
609 properties: &[
610 Property { name: "message_id", required: true, kind: Kind::Id },
611 Property { name: "object_type", required: true, kind: Kind::Scalar },
612 Property { name: "object_id", required: true, kind: Kind::Id },
613 ],
614 },
615 TypeSpec {
616 name: "Role",
617 message_type: None,
618 properties: &[
619 Property { name: "role", required: true, kind: Kind::Scalar },
620 Property { name: "commodity", required: true, kind: Kind::Scalar },
621 ],
622 },
623 TypeSpec {
624 name: "SelectControlType",
625 message_type: Some("SelectControlType"),
626 properties: &[
627 Property { name: "message_id", required: true, kind: Kind::Id },
628 Property { name: "control_type", required: true, kind: Kind::Scalar },
629 ],
630 },
631 TypeSpec {
632 name: "SessionRequest",
633 message_type: Some("SessionRequest"),
634 properties: &[
635 Property { name: "message_id", required: true, kind: Kind::Id },
636 Property { name: "request", required: true, kind: Kind::Scalar },
637 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
638 ],
639 },
640 TypeSpec {
641 name: "Timer",
642 message_type: None,
643 properties: &[
644 Property { name: "id", required: true, kind: Kind::Id },
645 Property { name: "diagnostic_label", required: false, kind: Kind::Scalar },
646 Property { name: "duration", required: true, kind: Kind::Scalar },
647 ],
648 },
649 TypeSpec {
650 name: "Transition",
651 message_type: None,
652 properties: &[
653 Property { name: "id", required: true, kind: Kind::Id },
654 Property { name: "from", required: true, kind: Kind::Id },
655 Property { name: "to", required: true, kind: Kind::Id },
656 Property { name: "start_timers", required: true, kind: Kind::IdArray(ArrayBounds { min: Some(0), max: Some(1000) }) },
657 Property { name: "blocking_timers", required: true, kind: Kind::IdArray(ArrayBounds { min: Some(0), max: Some(1000) }) },
658 Property { name: "transition_costs", required: false, kind: Kind::Scalar },
659 Property { name: "transition_duration", required: false, kind: Kind::Scalar },
660 Property { name: "abnormal_condition_only", required: true, kind: Kind::Scalar },
661 ],
662 },
663];
664
665#[rustfmt::skip]
672pub static BETA_TYPES: &[TypeSpec] = &[
673 TypeSpec {
674 name: "DDBC.SystemDescription",
675 message_type: Some("DDBC.SystemDescription"),
676 properties: &[
677 Property { name: "message_id", required: true, kind: Kind::Id },
678 Property { name: "valid_from", required: true, kind: Kind::Scalar },
679 Property { name: "actuators", required: true, kind: Kind::ObjectArray("DDBC.ActuatorDescription", ArrayBounds { min: Some(1), max: Some(10) }) },
680 Property { name: "present_demand_rate", required: true, kind: Kind::Object("NumberRange") },
681 Property { name: "provides_average_demand_rate_forecast", required: true, kind: Kind::Scalar },
682 ],
683 },
684];