Project

General

Profile

Bug #5293 » 10.html

Viktoria Kopach, 09/25/2014 06:06 PM

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1251">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2 (Win32)">
<META NAME="AUTHOR" CONTENT="user">
<META NAME="CREATED" CONTENT="20100824;16220000">
<META NAME="CHANGEDBY" CONTENT="Виктория ">
<META NAME="CHANGED" CONTENT="20110126;16513800">
<META NAME="CHANGEDBY" CONTENT="user">
<STYLE TYPE="text/css">
<!--
@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>
</HEAD>
<BODY LANG="ru-RU" TEXT="#000000" LINK="#0000ff" VLINK="#800000" 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.&nbsp;They can be used on
the right hand side of assignments,&nbsp;in expressions,&nbsp;in
actual parameters, and in template definitions. Constants used within
type definitions&nbsp;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><A NAME="46a823b1-6b23-422e-8806-9aa7d48db19d"></A><A NAME="c15669fb-0f00-45db-adbb-3fb15aaca0a9"></A><A NAME="1763e6bf-c0ab-43e8-b849-fcc56bfa9918"></A>
<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">&nbsp;</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">&nbsp;</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">&nbsp;</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&nbsp;</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">&nbsp;</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&nbsp;</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Courier New, monospace"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN LANG="en-US"><B>&quot;implicit
omit&quot;</B></SPAN></FONT></FONT></FONT><FONT COLOR="#000000">&nbsp;</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>
(4-4/4)