| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
on |
| 16 |
|
| 17 |
<html> |
| 18 |
<head> |
| 19 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 20 |
<meta http-equiv="Content-Language" content="en-us"> |
| 21 |
<title>running</title> |
| 22 |
</head> |
| 23 |
<body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258"> |
| 24 |
<table align="left" border="0" cellspacing="0" cellpadding="0" valign=top> |
| 25 |
<tr> |
| 26 |
<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> |
| 27 |
</tr> |
| 28 |
</table> |
| 29 |
<table border="0" align="right" cellpadding="0" cellspacing="0"> |
| 30 |
<tr> |
| 31 |
<td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td> |
| 32 |
<td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td> |
| 33 |
<td><a href="rnd.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td> |
| 34 |
<td><a href="runs.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td> |
| 35 |
</tr> |
| 36 |
</table> |
| 37 |
<p><br clear="all"> |
| 38 |
</p> |
| 39 |
<hr> |
| 40 |
<h1>running</h1> |
| 41 |
<blockquote> |
| 42 |
<p>1. <a href="#Checking components">Checking components</a></p> |
| 43 |
<p>2. <a href="#timer">Checking timers</a></p> |
| 44 |
<p>3. <a href="profiler.html#2">Starting the profiler</a></p> |
| 45 |
</blockquote> |
| 46 |
<hr align="left" width="75%"> |
| 47 |
<h3>1. <a name="Checking components">Checking components</a></h3> |
| 48 |
<hr align="left" width="50%"> |
| 49 |
<p>The operation is used to <a href="#Example 1a">check</a> whether a given parallel test component is running (i.e., has neither timed out nor been stopped). The Boolean value true is returned if |
| 50 |
the component have been started but not yet terminated or stopped, false otherwise.</p> |
| 51 |
<ul> |
| 52 |
<li>The operation does not block TTCN-3 program execution, i.e., it reflects the momentary state of the parallel test component and does not wait for its termination.</li> |
| 53 |
<li>When the <a href="all.html"><b><font face="Courier New" color="#003258" size="4">all</font></b></a> keyword is used with the operation, it will return true if all parallel |
| 54 |
test components started are executing their behavior.</li> |
| 55 |
<li>When the <a href="any.html"><b><font face="Courier New" color="#003258" size="4">any</font></b></a> keyword is used with the operation, it will return true if at least one |
| 56 |
parallel test component is executing its behavior.</li> |
| 57 |
</ul> |
| 58 |
<p>Related keywords:</p> |
| 59 |
<ul> |
| 60 |
<li><a href="alive.html"><b><font face="Courier New" color="#003258" size="4">alive</font></b></a></li> |
| 61 |
<li><a href="all.html"><b><font face="Courier New" color="#003258" size="4">all</font></b></a></li> |
| 62 |
<li><a href="any.html"><b><font face="Courier New" color="#003258" size="4">any</font></b></a></li> |
| 63 |
<li><a href="component.html"> <b><font face="Courier New" color="#003258" size="4">component</font></b> </a></li> |
| 64 |
<li><a href="create.html"><b><font face="Courier New" color="#003258" size="4">create</font></b></a></li> |
| 65 |
<li><a href="profiler.html"><b><font face="Courier New" color="#003258" size="4">@profiler</font></b></a></li> |
| 66 |
</ul> |
| 67 |
<hr align="left" width="50%"> |
| 68 |
<div align="center"> |
| 69 |
<center> |
| 70 |
<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4"> |
| 71 |
<tr> |
| 72 |
<td width="100%"> |
| 73 |
<h3 align="center"><i>component_reference</i><font face="Courier New" color="#003258" size="5"><b>.running;</b></font> </h3> |
| 74 |
</td> |
| 75 |
</tr> |
| 76 |
</table> |
| 77 |
</center> |
| 78 |
</div> |
| 79 |
<ul> |
| 80 |
<li> |
| 81 |
<p>The <i>component_reference</i> is one of the following:</p> |
| 82 |
<ul> |
| 83 |
<li>a reference returned by the <a href="create.html"><b><font face="Courier New" color="#003258" size="4">create</font></b></a> operation to refer to a given parallel test |
| 84 |
component,</li> |
| 85 |
<li>the keyword pair <a href="all.html"><b><font face="Courier New" color="#003258" size="4">all</font></b></a> <a href="component.html"> <b><font |
| 86 |
face="Courier New" color="#003258" size="4">component</font></b> </a> to check whether all parallel test components are still running,</li> |
| 87 |
<li> |
| 88 |
<p>the keyword pair <a href="mtc.html"><b><font face="Courier New" color="#003258" size="4">any</font></b></a> <a href="component.html"> <b><font |
| 89 |
face="Courier New" color="#003258" size="4">component</font></b></a> to check whether at least one parallel test component is still running</p> |
| 90 |
</li> |
| 91 |
</ul> |
| 92 |
</li> |
| 93 |
<li> |
| 94 |
<p>The <b><font face="Courier New" color="#003258" size="4">running</font> </b> keyword denotes that (a) component(s) should be checked.</p> |
| 95 |
</li> |
| 96 |
</ul> |
| 97 |
<hr align="left" width="50%"> |
| 98 |
<p>See <a href="#Example 1a">Examples</a></p> |
| 99 |
<hr align="left" width="75%"> |
| 100 |
<h3>2. <a name="timer">Checking timers</a></h3> |
| 101 |
<hr align="left" width="50%"> |
| 102 |
<p>The operation is used to <a href="#timer_start">check</a> whether a given timer is running (i.e., has neither timed out nor been stopped). The Boolean value true is returned if the timer is |
| 103 |
running, false otherwise.</p> |
| 104 |
<ul> |
| 105 |
<li>The operation does not block TTCN-3 program execution, i.e., it reflects the momentarily state of the timer and does not wait for timeout.</li> |
| 106 |
<li><a name="stop_all">The</a> keyword <a href="any.html"><b><font face="Courier New" color="#003258" size="4">any</font></b></a> may be used to check whether <a href="#default">at least |
| 107 |
one timer</a> is running.</li> |
| 108 |
</ul> |
| 109 |
<p>Related keywords:</p> |
| 110 |
<ul> |
| 111 |
<li><a href="any.html"><b><font face="Courier New" color="#003258" size="4">any</font></b></a></li> |
| 112 |
<li><a href="read.html"><b><font face="Courier New" color="#003258" size="4">read</font></b></a></li> |
| 113 |
<li><a href="start.html"><b><font face="Courier New" color="#003258" size="4">start</font></b></a></li> |
| 114 |
<li><a href="stop.html"><b><font face="Courier New" color="#003258" size="4">stop</font></b></a></li> |
| 115 |
<li><a href="timer.html"><b><font face="Courier New" color="#003258" size="4">timer</font></b></a></li> |
| 116 |
<li><a href="timeout.html"><b><font face="Courier New" color="#003258" size="4">timeout</font></b></a></li> |
| 117 |
</ul> |
| 118 |
<hr align="left" width="50%"> |
| 119 |
<div align="center"> |
| 120 |
<center> |
| 121 |
<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4"> |
| 122 |
<tr> |
| 123 |
<td width="100%"> |
| 124 |
<h3 align="center">( <i>timer_identifier</i> | <font face="Courier New" color="#003258" size="5"><b>any timer</b></font> )<font face="Courier New" color="#003258" size="5"><b>.running</b></font> |
| 125 |
<font face="Courier New" color="#003258" size="5"><b>;</b></font></h3> |
| 126 |
</td> |
| 127 |
</tr> |
| 128 |
</table> |
| 129 |
</center> |
| 130 |
</div> |
| 131 |
<ul> |
| 132 |
<li> |
| 133 |
<p><i>timer_identifier</i> is the name used to refer to the timer. It must begin with a letter, may contain letters, numbers and underscore characters.</p> |
| 134 |
</li> |
| 135 |
</ul> |
| 136 |
<hr align="left" width="50%"> |
| 137 |
<p>It is possible to check a member of a <a href="#array">timer array</a>.</p> |
| 138 |
<hr align="left" width="50%"> |
| 139 |
<p>See <a href="#Example 1c">Example 1c</a></p> |
| 140 |
<hr align="left" width="50%"> |
| 141 |
<div align="center"> |
| 142 |
<center> |
| 143 |
<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4"> |
| 144 |
<tr> |
| 145 |
<td width="100%"> |
| 146 |
<h3 align="center"><font face="Courier New" color="#003258" size="5"><b></b></font> <i>timer_identifier</i><font face="Courier New" color="#003258" size="5"><b>[</b></font><i>array_index</i><font |
| 147 |
face="Courier New" color="#003258" size="5"><b>].running; </b></font></h3> |
| 148 |
</td> |
| 149 |
</tr> |
| 150 |
</table> |
| 151 |
</center> |
| 152 |
</div> |
| 153 |
<div align="center"></div> |
| 154 |
<ul> |
| 155 |
<li> |
| 156 |
<p><i>timer_identifier</i> is the name used to refer to the timer. It must begin with a letter, may contain letters, numbers and underscore characters.</p> |
| 157 |
</li> |
| 158 |
<li> |
| 159 |
<p><i>array_index</i> points out the timer to be checked.</p> |
| 160 |
</li> |
| 161 |
</ul> |
| 162 |
<hr align="left" width="75%"> |
| 163 |
<h3>Examples</h3> |
| 164 |
<p><a name="Example 1a">Example 1a</a>:</p> |
| 165 |
<p><font face="Courier New">var boolean v_Tbana := vc_metro.running;<br> |
| 166 |
</font> |
| 167 |
<p>The variable v_Tbana gets the value true if the component with the reference vc_metro is running.</p> |
| 168 |
<hr align="left" width="50%"> |
| 169 |
|
| 170 |
<p>Example 1b:</p> |
| 171 |
<p><font face="Courier New">var boolean v_Ubahn := all component.running;</font> |
| 172 |
<p>The variable v_Ubahn will true if all started parallel components are still running.</p> |
| 173 |
<hr align="left" width="50%"> |
| 174 |
<p><a href="#Example 1c">Example 1c</a></p> |
| 175 |
<p><font face="Courier New">var boolean v_metropolitain := any component.running; <br> |
| 176 |
</font> |
| 177 |
<p>The variable v_metropolitain is true if at least one parallel component is still running.</p> |
| 178 |
<hr align="left" width="50%"> |
| 179 |
<p><a name="timer_start">Example 2a</a>: |
| 180 |
<p><font face="Courier New">var boolean v_coureur := T_hledat.running;<br> |
| 181 |
</font> |
| 182 |
<p>The variable v_coureur gets the value true if the global timer T_hledat is running.</p> |
| 183 |
<hr align="left" width="50%"> |
| 184 |
<p><a name="default">Example 2b:</a> |
| 185 |
<p><font face="Courier New">var boolean v_forlasu := any timer.running; <br> |
| 186 |
</font> |
| 187 |
<p>The variable v_forlasu is true if at least one timer is running in the scope unit where the command have been issued.</p> |
| 188 |
<hr align="left" width="50%"> |
| 189 |
<p><a name="array">Example 2c:</a> |
| 190 |
<p><font face="Courier New">var boolean v_medlem := Tl_Odeon[3].running;</font> |
| 191 |
<p>The variable v_medlem will true if the fourth timer of the array Tl_Odeon is still running.</p> |
| 192 |
<hr align="left" width="25%"> |
| 193 |
<hr align="left" width="25%"> |
| 194 |
<p><a HREF="BNF.html#runningop">BNF definition</a> of <font face="Courier New">component running</font></p> |
| 195 |
<p><a HREF="BNF.html#runningtimerop">BNF definition</a> of <font face="Courier New">timer runnnig</font></p> |
| 196 |
</body> |
| 197 |
</html> |