automotive-message-broker  0.13
 All Classes Files Variables Pages
protocol.idl
Go to the documentation of this file.
1 
39 enum MessageType {
40  "method",
41  "methodReply",
42  "valuechanged"
43 }
44 
45 
46 interface BaseMessage {
47 
51  attribute DOMString transactionid;
52 }
53 
54 enum PropertyType {
55  "UInt16",
56  "UInt32",
57  "Int16",
58  "Int32",
59  "String",
60  "Double",
61  "Boolean"
62 }
63 
67 interface Property {
68 
72  attribute DOMString? property;
73 
77  attribute DOMString? value;
78 
82  attribute unsigned short zone;
83 
87  attribute PropertyType? type;
88 
92  attribute unsigned double? timestamp;
93 
97  attribute unsigned long? sequence;
98 }
99 
110 interface ValueChanged : BaseMessage {
111 
115  const MessageType type = "valuechanged";
116 
121  attribute DOMString name;
122 
126  attribute Property data;
127 }
128 
136 interface GetPropertyRequest : BaseMessage {
137 
141  const MessageType type = "method";
142 
147  const DOMString name = "get";
148 
153  attribute Property data;
154 }
155 
163 interface GetPropertyReply : BaseMessage {
164 
168  const MessageType type = "methodReply";
169 
173  const DOMString name = "get";
174 
178  attribute Property data;
179 }
180 
188 interface GetSupportedRequest : BaseMessage {
192  const MessageType type = "method";
193 
197  const DOMString name = "getSupported";
198 }
199 
207 interface GetSupportedReply : BaseMessage {
211  const MessageType type = "methodReply";
212 
216  const DOMString name = "getSupported";
217 
221  attribute Property[] data;
222 }
223 
232 interface SupportedChanged : BaseMessage {
236  const MessageType type = "methodReply";
237 
241  const DOMString name = "getSupported";
242 
246  attribute Property[] data;
247 }
248 
256 interface Subscribe : BaseMessage {
257 
261  const MessageType type = "method";
262 
266  const DOMString name = "subscribe";
267 
271  attribute DOMString property;
272 }
273 
281 interface Unsubscribe : BaseMessage {
282 
286  const MessageType type = "method";
287 
291  const DOMString name = "subscribe";
292 
296  attribute DOMString property;
297 }
298 
307 interface GetRangedRequest : BaseMessage {
308 
312  const MessageType type = "method";
313 
317  const DOMString name = "getRange";
318 
322  attribute DOMString[] data;
323 
327  attribute unsigned short? zone;
328 
332  attribute unsigned double? timeBegin;
333 
337  attribute unsigned double? timeEnd;
338 
342  attribute unsigned long? sequenceBegin;
343 
347  attribute unsigned long? sequenceEnd;
348 }
349 
357 interface GetRangedReply : BaseMessage {
361  const MessageType type = "methodReply";
362 
366  const DOMString name = "getRanged";
367 
371  attribute Property[] data;
372 }
373 
381 interface SetPropertyRequest : BaseMessage {
382 
386  const MessageType type = "method";
387 
391  const DOMString name = "set";
392 
396  attribute Property data;
397 }
398 
399 enum Error {
400  "NoError",
401  "Timeout",
402  "InvalidOperation",
403  "PermissionDenied",
404  "ZoneNotSupported"
405 }
406 
414 interface SetPropertyReply : BaseMessage {
415 
419  const MessageType type = "methodReply";
420 
424  const DOMString name = "set";
425 
429  attribute Property data;
430 
434  attribute boolean success;
435 
439  attribute Error error;
440 }
attribute Property data
data represents the new property value
Definition: protocol.idl:429
GetRangedReply - reply for GetRangedRequest The following is an example of this message: ...
Definition: protocol.idl:357
attribute Property[] data
data - array of properties supported by the system
Definition: protocol.idl:246
const MessageType type
message type
Definition: protocol.idl:168
Unsubscribe - unsubscribe request The following is an example of this message:
Definition: protocol.idl:281
const DOMString name
name of the method.
Definition: protocol.idl:317
const MessageType type
message type
Definition: protocol.idl:312
const DOMString name
name of this message. This represents the property name which changed in this message ...
Definition: protocol.idl:147
attribute DOMString[] data
data - properties to request
Definition: protocol.idl:322
attribute Property[] data
data - array of properties supported by the system
Definition: protocol.idl:221
const MessageType type
message type
Definition: protocol.idl:261
attribute Property data
data represents the value for the property indicated by 'name'
Definition: protocol.idl:126
attribute DOMString property
property to subscribe to
Definition: protocol.idl:271
attribute unsigned long sequenceBegin
sequenceBegin
Definition: protocol.idl:342
SupportedChanged - message occures when the system's supported properties changes NOTE: this message ...
Definition: protocol.idl:232
attribute unsigned double timestamp
timestamp
Definition: protocol.idl:92
const MessageType type
message type
Definition: protocol.idl:192
attribute Error error
error - error code
Definition: protocol.idl:439
attribute Property data
data represents property to get Property attributes type, timestamp, value, and sequence are ignored...
Definition: protocol.idl:153
attribute DOMString name
name of this message. This represents the property name which changed in this message ...
Definition: protocol.idl:121
const DOMString name
name of this methodReply.
Definition: protocol.idl:241
GetRangedRequest - request a range of logged properties The following is an example of this message: ...
Definition: protocol.idl:307
attribute unsigned short zone
zone, zone which this property is in
Definition: protocol.idl:82
const MessageType type
message type
Definition: protocol.idl:386
attribute unsigned double timeBegin
timeBegin in seconds since Unix Epoc
Definition: protocol.idl:332
attribute Property data
data represents the requested property value
Definition: protocol.idl:178
GetSupportedReply- reply for supported properties The following is an example of this message: ...
Definition: protocol.idl:207
GetPropertyRequest - request the value of a property The following is an example of this message: ...
Definition: protocol.idl:136
const DOMString name
name of the method.
Definition: protocol.idl:291
const MessageType type
message type
Definition: protocol.idl:286
const MessageType type
message type
Definition: protocol.idl:361
enum MessageType transactionid
transactionid, id for this transaction. For messages with responses, the transaction id is used to ma...
const DOMString name
name of the method.
Definition: protocol.idl:266
const MessageType type
message type
Definition: protocol.idl:141
GetPropertyReply - response to GetPropertyRequest The following is an example of this message: ...
Definition: protocol.idl:163
const DOMString name
name of this method.
Definition: protocol.idl:197
const MessageType type
message type
Definition: protocol.idl:211
const MessageType type
message type
Definition: protocol.idl:236
attribute DOMString value
value, value of the property
Definition: protocol.idl:77
const DOMString name
name of this methodReply.
Definition: protocol.idl:424
enum PropertyType property
Property represents an AMB property.
SetPropertyRequest - request to set a property The following is an example of this message: ...
Definition: protocol.idl:381
attribute boolean success
success - true if the set operation was successful
Definition: protocol.idl:434
const DOMString name
name of this methodReply.
Definition: protocol.idl:391
GetSupportedRequest - request supported properties The following is an example of this message: ...
Definition: protocol.idl:188
attribute unsigned double timeEnd
timeEnd in seconds since Unix Epoc
Definition: protocol.idl:337
attribute DOMString property
property to subscribe to
Definition: protocol.idl:296
attribute unsigned long sequence
sequence
Definition: protocol.idl:97
attribute Property data
data represents the new property value
Definition: protocol.idl:396
attribute PropertyType type
type - type of value
Definition: protocol.idl:87
const DOMString name
name of this methodReply.
Definition: protocol.idl:173
const DOMString name
name of this methodReply.
Definition: protocol.idl:366
attribute Property[] data
data - array of properties supported by the system
Definition: protocol.idl:371
Subscribe - subscribe request The following is an example of this message:
Definition: protocol.idl:256
const DOMString name
name of this methodReply.
Definition: protocol.idl:216
const MessageType type
message type
Definition: protocol.idl:115
attribute unsigned short zone
zone, zone which this property is in
Definition: protocol.idl:327
attribute unsigned long sequenceEnd
sequenceEnd
Definition: protocol.idl:347
ValueChanged is a message which is generated when a subscribed Property changes. Subscribe will cause...
Definition: protocol.idl:110