Debian Codegraph @

help/info/map.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 Baji, Laszlo
10 Balasko, Jeno
11 Farkas, Laszlo
12 Szabados, Kristof
13 Nagy, Lenard
14 -->
15 <html>
16 <head>
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
18 <meta http-equiv="Content-Language" content="en-us">
19 <title>map</title>
20 </head>
21 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
22 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
23 <tr>
24 <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>
25 </tr>
26 </table>
27 <table border="0" align="right" cellpadding="0" cellspacing="0">
28 <tr>
29 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
30 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
31 <td><a href="log.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
32 <td><a href="map_to.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
33 </tr>
34 </table>
35 <p><br clear="all">
36 </p>
37 <hr>
38 <h1>map</h1>
39 <hr align="left" width="75%">
40 <p>The operation is used to map the ports of a test component to the ports of the test system interface.
41 <ul>
42 <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>
43 <li>a port may be mapped to several ports (<b><font face="Courier New">map</font></b> used several times);</li>
44 <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>
45 <li>one side of the connection must be the test system interface.</li>
46 </ul>
47 <p>Related keywords:</p>
48 <ul>
49 <li><a href="create.html"><b><font face="Courier New" color="#003258" size="4">create</font></b></a></li>
50 <li><a href="mtc.html"><b><font face="Courier New" color="#003258" size="4">mtc</font></b></a></li>
51 <li><a href="self.html"><b><font face="Courier New" color="#003258" size="4">self</font></b></a></li>
52 <li><a href="system.html"><b><font face="Courier New" color="#003258" size="4">system</font></b></a></li>
53 </ul>
54 <hr align="left" width="50%">
55 <div align="center">
56 <center>
57 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
58 <tr>
59 <td width="100%">
60 <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
61 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
62 face="Courier New" color="#003258" size="5"><b>);</b></font> &nbsp;</h3>
63 </td>
64 </tr>
65 </table>
66 </center>
67 </div>
68 <ul>
69 <li>
70 <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
71 test system interface).</p>
72 </li>
73 <li>
74 <p><i>component_reference</i> is one of the following:</p>
75 <ul>
76 <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>
77 <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
78 face="Courier New" color="#003258" size="4">map</font></b> is given,</li>
79 <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>
80 <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>
81 &nbsp;</li>
82 </ul>
83 </li>
84 <li>
85 <p><i> port_reference</i> points out the port to be mapped.</p>
86 </li>
87 </ul>
88 <hr align="left" width="50%">
89 <p>Example:
90 <p><font face="Courier New">var Komp_CT vc_KompRef := Komp_CT.create;<br>
91 map(vc_KompRef:Port11_PCO, system:Port2_PCO);</font>
92 <p>The component of type Komp_CT is created in the first line.<br>
93 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>
94 On the side B of the mapping is the port called Port3_PCO of the test system interface.</p>
95 <hr align="left" width="25%">
96 <hr align="left" width="25%">
97 <p><a HREF="BNF.html#mapstatement">BNF definition</a> of <font face="Courier New"> map</font></p>
98 </body>
99 </html>