Project

General

Profile

Wiki » History » Version 1

asd ert, 03/12/2013 01:47 PM

1 1 asd ert
XML file describes model adapter and contains the following components:
2
3
1. Adapter description. Global adapter section. 
4
<pre><code class="xml">
5
<adapter> adapter description </adapter>
6
</code></pre>
7
"Adapter description" is and interface description and mapping description
8
9
10
2. Interface description. Describes adapter''s interface.
11
<pre><code class="xml">
12
<interface name = "name" type = "type"> messagetype description </interface>
13
</code></pre>
14
15
16
3. Messagetype description.
17
<pre><code class="xml">
18
<messagetype name = "name"> messagefieldlist description </messagetype>
19
</code></pre>
20
21
22
4. Messagefieldlist description.
23
<pre><code class="xml">
24
 <messagefields> messagefields descriptions </messagefields>
25
</code></pre>
26
27
5. Messagefield description.
28
<pre><code class="xml">
29
 <messagefield name = "name" capacity = "capacity" mask = "mask"/>
30
</code></pre>
31
32
6. Mapping description.
33
<pre><code class="xml">
34
 <mapping> groups descriptions </mapping>
35
</code></pre>
36
37
7. Group description.
38
<pre><code class="xml">
39
 <group> signals description, messagefield list description </group>
40
</code></pre>
41
42
43
8. Signal description.
44
<pre><code class="xml">
45
 <signal name = "name" capacity = "capacity"/>
46
</code></pre>
47
48
49
50
Complete file example:
51
52
<pre><code class="xml">
53
<adapter>
54
  <interface name = "interface" type = "input">
55
56
    <messagetype name = "messageType">
57
58
      <messagefields>
59
        <messagefield name = "messagefield1" capacity = "1" mask = "0xFFFF"/>
60
      </messagefields>
61
62
    </messagetype>
63
64
  </interface>
65
66
  <mapping>
67
68
    <group>
69
      <mappedsignals>
70
        <signal name = "signal 1" capacity = "8"/>
71
        <signal name = "signal 2" capacity = "1"/>
72
      </mappedsignals>
73
74
      <messagefields>
75
        <messagefield name = "messagefield1" capacity = "1" mask = "0xFFFF"/>
76
      </messagefields>
77
    </group>
78
79
  </mapping>
80
81
</adapter>
82
</code></pre>