Debian Codegraph @

help/info/map_to.html

raw symbols SCIP
1 <!--
2 Copyright (c) 2000-2021 Ericsson Telecom AB
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7
8 Contributors:
9 Nagy, Lenard
10 -->
11 <html>
12 <head>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
14 <meta http-equiv="Content-Language" content="en-us">
15 <title>map to</title>
16 </head>
17 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
18 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
19 <tr>
20 <td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td>
21 </tr>
22 </table>
23 <table border="0" align="right" cellpadding="0" cellspacing="0">
24 <tr>
25 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
26 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
27 <td><a href="map.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
28 <td><a href="match.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
29 </tr>
30 </table>
31 <p><br clear="all">
32 </p>
33 <hr>
34 <h1>map to</h1>
35 <hr align="left" width="75%">
36 <p>The keyword pair is used in case of ports with translation capability mechanism to indicate the mapping of a port working in translation mode to the outwards facing (transport) port.
37 When a message is sent on a port with translation capability which is working in translation mode
38 (mapped to a port which is present in the <b><font face="Courier New">map to</font></b> clause of the port with translation capability),
39 message will be translated using the translation functions specified using the <b><font face="Courier New">with</font></b> keyword</p>
40
41 <p>Related keywords:</p>
42 <ul>
43 <li><a href="port.html"><b><font face="Courier New" color="#003258" size="4">port</font></b></a></li>
44 <li><a href="with_pwtc.html"><b><font face="Courier New" color="#003258" size="4">with</font></b></a></li>
45 </ul>
46 <hr align="left" width="50%">
47 <div align="center">
48 <center>
49 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
50 <tr>
51 <td width="100%">
52 <h3>type port PortTypeId message [ <font face="Courier New" color="#003258" size="5"><b>map to</b></font> { OuterPortType [ "," ] }+ ] { </br>
53 &ensp;( in { InnerInType [ from { OuterInType with InFunction "(" ")" [ "," ] }+ ] [ "," ] }+ |</br>
54 &emsp;out { InnerOutType [ to { OuterOutType with OutFunction "(" ")" [ "," ]}+ ] [ "," ] }+ |</br>
55 &emsp;inout { InOutType [ "," ] }+ |</br>
56 &emsp;address AddrType [ to { OuterAddrTypewith AddrOutFunction "(" ")" [ "," ] }+ ] }</h3>
57 </td>
58 </tr>
59 </table>
60 </center>
61 </div>
62 <hr align="left" width="50%">
63 <p>Example:
64 <p><font face="Courier New">
65 type port OneM2MPort message map to IPL4asp_PT {</br>
66 &ensp;out</br>
67 &ensp;&ensp;MsgOut to ASP_Send with f_enc_M2MPrimitive_to_ASPSend()</br>
68 &ensp;in</br>
69 &ensp;&ensp;MsgIn from ASP_RecvFrom with f_dec_ASPRecvFrom_to_M2MPrimitive(),</br>
70 &ensp;&ensp;ASP_Event</br>
71 }</font></p>
72 <p>If a MsgOut type message is being sent on the OneM2MPort
73 it will automatically be translated to ASP_Send type to be
74 sent out on the IPL4 port using f_enc_M2MPrimitive_to_ASPSend function.</br>
75 The same applies in the incoming direction: if an ASP_RecvFrom type message is received
76 on the IPL4asp_PT the f_dec_ASPRecvFrom_to_M2MPrimitive function will convert it to
77 MsgIn type.</br>
78 In this example ASP_Event is an incoming type, which will be received in OneM2MPort
79 unconverted, as it has no conversion function specified in this mapping.</p>
80 <hr align="left" width="50%">
81 <p><a HREF="BNF.html#mapstatement">BNF definition</a> of <font face="Courier New"> map</font></p>
82 </body>
83 </html>