Commit | Line | Data |
---|---|---|
970ed795 | 1 | <!-- |
3abe9331 | 2 | Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | |
4 | All rights reserved. This program and the accompanying materials | |
5 | are made available under the terms of the Eclipse Public License v1.0 | |
6 | which accompanies this distribution, and is available at | |
7 | http://www.eclipse.org/legal/epl-v10.html | |
8 | --> | |
9 | <html> | |
10 | <head> | |
11 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
12 | <meta http-equiv="Content-Language" content="en-us"> | |
13 | <title>map</title> | |
14 | </head> | |
15 | <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258"> | |
16 | <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top> | |
17 | <tr> | |
18 | <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> | |
19 | </tr> | |
20 | </table> | |
21 | <table border="0" align="right" cellpadding="0" cellspacing="0"> | |
22 | <tr> | |
23 | <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td> | |
24 | <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td> | |
25 | <td><a href="log.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td> | |
26 | <td><a href="match.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td> | |
27 | </tr> | |
28 | </table> | |
29 | <p><br clear="all"> | |
30 | </p> | |
31 | <hr> | |
32 | <h1>map</h1> | |
33 | <hr align="left" width="75%"> | |
34 | <p>The operation is used to map the ports of a test component to the ports of the test system interface. | |
35 | <ul> | |
36 | <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> | |
37 | <li>a port may be mapped to several ports (<b><font face="Courier New">map</font></b> used several times);</li> | |
38 | <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; </li> | |
39 | <li>one side of the connection must be the test system interface.</li> | |
40 | </ul> | |
41 | <p>Related keywords:</p> | |
42 | <ul> | |
43 | <li><a href="create.html"><b><font face="Courier New" color="#003258" size="4">create</font></b></a></li> | |
44 | <li><a href="mtc.html"><b><font face="Courier New" color="#003258" size="4">mtc</font></b></a></li> | |
45 | <li><a href="self.html"><b><font face="Courier New" color="#003258" size="4">self</font></b></a></li> | |
46 | <li><a href="system.html"><b><font face="Courier New" color="#003258" size="4">system</font></b></a></li> | |
47 | </ul> | |
48 | <hr align="left" width="50%"> | |
49 | <div align="center"> | |
50 | <center> | |
51 | <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4"> | |
52 | <tr> | |
53 | <td width="100%"> | |
54 | <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 | |
55 | 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 | |
56 | face="Courier New" color="#003258" size="5"><b>);</b></font> </h3> | |
57 | </td> | |
58 | </tr> | |
59 | </table> | |
60 | </center> | |
61 | </div> | |
62 | <ul> | |
63 | <li> | |
64 | <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 | |
65 | test system interface).</p> | |
66 | </li> | |
67 | <li> | |
68 | <p><i>component_reference</i> is one of the following:</p> | |
69 | <ul> | |
70 | <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> | |
71 | <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 | |
72 | face="Courier New" color="#003258" size="4">map</font></b> is given,</li> | |
73 | <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> | |
74 | <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> | |
75 | </li> | |
76 | </ul> | |
77 | </li> | |
78 | <li> | |
79 | <p><i> port_reference</i> points out the port to be mapped.</p> | |
80 | </li> | |
81 | </ul> | |
82 | <hr align="left" width="50%"> | |
83 | <p>Example: | |
84 | <p><font face="Courier New">var Komp_CT vc_KompRef := Komp_CT.create;<br> | |
85 | map(vc_KompRef:Port11_PCO, system:Port2_PCO);</font> | |
86 | <p>The component of type Komp_CT is created in the first line.<br> | |
87 | 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> | |
88 | On the side B of the mapping is the port called Port3_PCO of the test system interface.</p> | |
89 | <hr align="left" width="25%"> | |
90 | <hr align="left" width="25%"> | |
91 | <p><a HREF="BNF.html#mapstatement">BNF definition</a> of <font face="Courier New"> map</font></p> | |
92 | </body> | |
93 | </html> |