|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
|
|
<title/>
|
|
<meta content="OpenOffice.org 3.2 (Win32)" name="GENERATOR"/>
|
|
<meta content="user" name="AUTHOR"/>
|
|
<meta content="20100824;16220000" name="CREATED"/>
|
|
<meta content="��������" name="CHANGEDBY"/>
|
|
<meta content="20110126;16513800" name="CHANGED"/>
|
|
<meta content="user" name="CHANGEDBY"/>
|
|
|
|
|
|
<style type="text/css">/*<![CDATA[*/
|
|
<!--
|
|
@page { size: 21.59cm 27.94cm; margin-left: 2cm; margin-right: 1.5cm; margin-top: 2cm; margin-bottom: 2cm }
|
|
P { margin-bottom: 0.21cm; direction: ltr; color: #000000; line-height: 115%; widows: 2; orphans: 2 }
|
|
P.western { font-family: "Calibri", sans-serif; font-size: 11pt; so-language: ru-RU }
|
|
P.cjk { font-family: "Times New Roman", serif; font-size: 11pt }
|
|
P.ctl { font-family: "Calibri", sans-serif; font-size: 11pt; so-language: ar-SA }
|
|
A:link { color: #0000ff; so-language: zxx; text-decoration: underline }
|
|
A:visited { color: #800000; so-language: zxx; text-decoration: underline }
|
|
-->
|
|
/*]]>*/</style>
|
|
|
|
<script id="jquery_js" type="text/javascript" src="jquery.js"/><script id="edit_js" type="text/javascript" src="edit.js"/><link id="edit_css" rel="stylesheet" type="text/css" href="edit.css"/></head>
|
|
<body vlink="#800000" text="#000000" link="#0000ff" lang="ru-RU" dir="LTR">
|
|
|
|
<p lang="en-US" class="western" style="margin-bottom: 0.49cm; line-height: 100%;">
|
|
<font face="Times New Roman, serif"><font size="6"><b>10 Declaring
|
|
constants</b></font></font></p>
|
|
<p class="western" style="margin-top: 0.49cm; margin-bottom: 0.35cm; line-height: 100%; page-break-after: avoid;">
|
|
<font face="Times New Roman, serif"><span lang="en-US"><font size="3" style="font-size: 13pt;">TTCN-3
|
|
constants are run-time constants. After value assignment, they do not
|
|
change their value during test execution. They can be used on
|
|
the right hand side of assignments, in expressions, in
|
|
actual parameters, and in template definitions. Constants used within
|
|
type definitions have to have values known at compile-time.</font></span></font></p>
|
|
<p class="western" style="margin-top: 0.49cm; margin-bottom: 0cm; line-height: 0.35cm;">
|
|
<br/>
|
|
</p>
|
|
<p lang="en-US" class="western" style="margin-top: 0.49cm; margin-bottom: 0.35cm; line-height: 100%;">
|
|
<font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><i><b>Semantic
|
|
Description</b></i></font></font></p>
|
|
<p class="western" style="margin-top: 0.49cm; margin-bottom: 0.35cm; line-height: 100%;"><a name="6bad5fd1-f781-4575-9bf7-7d072192b195"/><a name="46a823b1-6b23-422e-8806-9aa7d48db19d"/><a name="c15669fb-0f00-45db-adbb-3fb15aaca0a9"/><a name="1763e6bf-c0ab-43e8-b849-fcc56bfa9918"/>
|
|
<font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">A
|
|
constant assigns a name to a fixed value.</span></font></font></font><font color="#000000"> </font><font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">A
|
|
value is assigned only once to a constant, at the place of its
|
|
declaration.</span></font></font></font><font color="#000000"> </font><font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">The
|
|
constant does not change its value during test execution.</span></font></font></font><font color="#000000"> </font><font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">The
|
|
constant is defined only once, but can be referenced multiple times
|
|
in a TTCN-3 module.</span></font></font></font></p>
|
|
<p class="western" style="margin-top: 0.49cm; margin-bottom: 0.35cm; line-height: 100%;">
|
|
<font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">Optional
|
|
fields of record and set constants or constant fields can be
|
|
initialized explicitly or implicitly. For implicit initialization of
|
|
the optional fields of a constant or a constant field,
|
|
an </span></font></font></font><font color="#000000"><font face="Courier New, monospace"><font size="3" style="font-size: 13pt;"><span lang="en-US"><b>optional</b></span></font></font></font><font color="#000000"> </font><font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">attribute
|
|
with the value </span></font></font></font><font color="#000000"><font face="Courier New, monospace"><font size="3" style="font-size: 13pt;"><span lang="en-US"><b>"implicit
|
|
omit"</b></span></font></font></font><font color="#000000"> </font><font color="#000000"><font face="Times New Roman, serif"><font size="3" style="font-size: 13pt;"><span lang="en-US">(see
|
|
clause ������: �������� ������������ ������ �� ������) shall be
|
|
associated with it either directly or via the attribute distribution
|
|
(scoping) mechanism (see clause ������: �������� ������������ ������
|
|
�� ������).</span></font></font></font></p>
|
|
<p class="western" style="margin-top: 0.49cm; margin-bottom: 0.35cm; line-height: 100%;">
|
|
<br/><br/>
|
|
</p>
|
|
|
|
</body></html>
|