Project

General

Profile

Adapter Description » History » Version 1

Sergey Smolov, 01/12/2016 04:23 PM

1 1 Sergey Smolov
h1. Adapter Description
2
3
An example of adapter description file is here.
4
5
<pre>
6
7
/* Events */
8
9
event <event_type> <event_name>;
10
...
11
12
/* Message types */
13
14
message <message_type_name> {
15
16
  /* Message fields */
17
  <message_field_capacity_range> <message_field_name> (<message_field_mask>);
18
  ...
19
20
} // message
21
...
22
23
/* Interfaces */
24
25
<interface_type> <interface_name> of <message_type_name>;
26
...
27
28
/* Adapters */
29
adapter <adapter_name> of <interface_name> (<message_type_name> <message_instance_name>) {
30
31
  /* Here lies a sequence of statements including the following specific kinds */
32
  statement: assignment | declaration | wait
33
  wait : ''wait (<event_name>)''
34
35
} // adapter
36
...
37
38
</pre>