549cb03914a6ee403e14a6931dc86c9144417a26
[deliverable/titan.core.git] / help / info / map.html
1 <!--
2 Copyright (c) 2000-2016 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 v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.html
7
8 Contributors:
9 Baji, Laszlo
10 Balasko, Jeno
11 Farkas, Laszlo
12 Szabados, Kristof
13 -->
14 <html>
15 <head>
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
17 <meta http-equiv="Content-Language" content="en-us">
18 <title>map</title>
19 </head>
20 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
21 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
22 <tr>
23 <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>
24 </tr>
25 </table>
26 <table border="0" align="right" cellpadding="0" cellspacing="0">
27 <tr>
28 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
29 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
30 <td><a href="log.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
31 <td><a href="match.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
32 </tr>
33 </table>
34 <p><br clear="all">
35 </p>
36 <hr>
37 <h1>map</h1>
38 <hr align="left" width="75%">
39 <p>The operation is used to map the ports of a test component to the ports of the test system interface.
40 <ul>
41 <li>The operation directly maps one port to another with the <b><font face="Courier New">in</font></b> side mapped to the <b><font face="Courier New">out</font></b> side and vice versa.;</li>
42 <li>a port may be mapped to several ports (<b><font face="Courier New">map</font></b> used several times);</li>
43 <li>the messages (signatures) defined for both ports must match, i.e., the incoming port must be able to receive all outgoing messages from the mapped port;&nbsp;</li>
44 <li>one side of the connection must be the test system interface.</li>
45 </ul>
46 <p>Related keywords:</p>
47 <ul>
48 <li><a href="create.html"><b><font face="Courier New" color="#003258" size="4">create</font></b></a></li>
49 <li><a href="mtc.html"><b><font face="Courier New" color="#003258" size="4">mtc</font></b></a></li>
50 <li><a href="self.html"><b><font face="Courier New" color="#003258" size="4">self</font></b></a></li>
51 <li><a href="system.html"><b><font face="Courier New" color="#003258" size="4">system</font></b></a></li>
52 </ul>
53 <hr align="left" width="50%">
54 <div align="center">
55 <center>
56 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
57 <tr>
58 <td width="100%">
59 <h3 align="center"><font face="Courier New" color="#003258" size="5"><b>map (</b></font><i>component_reference</i><sub>A</sub><font face="Courier New" color="#003258" size="5"><b>:</b></font><i>port_reference</i><sub>A</sub><font
60 face="Courier New" color="#003258" size="5"><b> , </b></font><i>component_reference</i><sub>B</sub><font face="Courier New" color="#003258" size="5"><b>:</b></font><i>port_reference</i><sub>B</sub><font
61 face="Courier New" color="#003258" size="5"><b>);</b></font> &nbsp;</h3>
62 </td>
63 </tr>
64 </table>
65 </center>
66 </div>
67 <ul>
68 <li>
69 <p>The <b><font face="Courier New" color="#003258" size="4">map</font> </b>keyword introduces the port mapping. The indices A and B refer to the two sides of the mapping (one of them must be the
70 test system interface).</p>
71 </li>
72 <li>
73 <p><i>component_reference</i> is one of the following:</p>
74 <ul>
75 <li>a reference returned by the <a href="create.html"><b><font face="Courier New" color="#003258" size="4">create</font></b></a> operation,</li>
76 <li>the keyword <a href="self.html"><b><font face="Courier New" color="#003258" size="4">self</font></b></a> when referring to the component where <b><font
77 face="Courier New" color="#003258" size="4">map</font></b> is given,</li>
78 <li>the keyword <a href="system.html"><b><font face="Courier New" color="#003258" size="4">system</font></b></a> when referring to the test system interface,</li>
79 <li>the keyword <a href="mtc.html"><b><font face="Courier New" color="#003258" size="4">mtc</font></b></a> when referring to the main test component.<br>
80 &nbsp;</li>
81 </ul>
82 </li>
83 <li>
84 <p><i> port_reference</i> points out the port to be mapped.</p>
85 </li>
86 </ul>
87 <hr align="left" width="50%">
88 <p>Example:
89 <p><font face="Courier New">var Komp_CT vc_KompRef := Komp_CT.create;<br>
90 map(vc_KompRef:Port11_PCO, system:Port2_PCO);</font>
91 <p>The component of type Komp_CT is created in the first line.<br>
92 In the second line, its reference (vc_KompRef) is used to point out the port on the side A of the mapping (vc_KompRef:Port11_PCO).<br>
93 On the side B of the mapping is the port called Port3_PCO of the test system interface.</p>
94 <hr align="left" width="25%">
95 <hr align="left" width="25%">
96 <p><a HREF="BNF.html#mapstatement">BNF definition</a> of <font face="Courier New"> map</font></p>
97 </body>
98 </html>
This page took 0.032263 seconds and 5 git commands to generate.