automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
protocol.idl
Go to the documentation of this file.
1 
40 enum MessageType {
41  "method",
42  "methodReply",
43  "valuechanged"
44 }
45 
46 
47 interface BaseMessage {
48 
52  attribute DOMString transactionid;
53 }
54 
55 enum PropertyType {
56  "UInt16",
57  "UInt32",
58  "Int16",
59  "Int32",
60  "String",
61  "Double",
62  "Boolean"
63 }
64 
68 interface Property {
69 
73  attribute DOMString? property;
74 
78  attribute DOMString? value;
79 
83  attribute unsigned short zone;
84 
88  attribute PropertyType? type;
89 
93  attribute unsigned double? timestamp;
94 
98  attribute unsigned long? sequence;
99 }
100 
111 interface ValueChanged : BaseMessage {
112 
116  const MessageType type = "valuechanged";
117 
122  attribute DOMString name;
123 
127  attribute Property data;
128 }
129 
137 interface GetPropertyRequest : BaseMessage {
138 
142  const MessageType type = "method";
143 
148  const DOMString name = "get";
149 
154  attribute Property data;
155 }
156 
164 interface GetPropertyReply : BaseMessage {
165 
169  const MessageType type = "methodReply";
170 
174  const DOMString name = "get";
175 
179  attribute Property data;
180 }
181 
189 interface GetSupportedRequest : BaseMessage {
193  const MessageType type = "method";
194 
198  const DOMString name = "getSupported";
199 }
200 
208 interface GetSupportedReply : BaseMessage {
212  const MessageType type = "methodReply";
213 
217  const DOMString name = "getSupported";
218 
222  attribute double systemTime;
223 
227  attribute Property[] data;
228 }
229 
238 interface SupportedChanged : BaseMessage {
242  const MessageType type = "methodReply";
243 
247  const DOMString name = "getSupported";
248 
252  attribute Property[] data;
253 }
254 
262 interface Subscribe : BaseMessage {
263 
267  const MessageType type = "method";
268 
272  const DOMString name = "subscribe";
273 
277  attribute DOMString property;
278 }
279 
287 interface Unsubscribe : BaseMessage {
288 
292  const MessageType type = "method";
293 
297  const DOMString name = "subscribe";
298 
302  attribute DOMString property;
303 }
304 
313 interface GetRangedRequest : BaseMessage {
314 
318  const MessageType type = "method";
319 
323  const DOMString name = "getRange";
324 
328  attribute DOMString[] data;
329 
333  attribute unsigned short? zone;
334 
338  attribute unsigned double? timeBegin;
339 
343  attribute unsigned double? timeEnd;
344 
348  attribute unsigned long? sequenceBegin;
349 
353  attribute unsigned long? sequenceEnd;
354 }
355 
363 interface GetRangedReply : BaseMessage {
367  const MessageType type = "methodReply";
368 
372  const DOMString name = "getRanged";
373 
377  attribute Property[] data;
378 }
379 
387 interface SetPropertyRequest : BaseMessage {
388 
392  const MessageType type = "method";
393 
397  const DOMString name = "set";
398 
402  attribute Property data;
403 }
404 
405 enum Error {
406  "NoError",
407  "Timeout",
408  "InvalidOperation",
409  "PermissionDenied",
410  "ZoneNotSupported"
411 }
412 
420 interface SetPropertyReply : BaseMessage {
421 
425  const MessageType type = "methodReply";
426 
430  const DOMString name = "set";
431 
435  attribute Property data;
436 
440  attribute boolean success;
441 
445  attribute Error error;
446 }