Debian Codegraph @

texmf-dist/doc/latex/lsc/lsc.tex

raw
1 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
2 % $Id: lsc.tex,v 1.17 2006/02/23 12:57:15 berndw Exp $
3 %
4 % User's manual for lsc.sty.
5 %
6 % Author: Bernd Westphal <[email protected]>
7 %
8 % Copyright (c) 2005-2006 Bernd Westphal. All rights reserved.
9 %
10 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
11 %
12 % This work may be distributed and/or modified under the conditions of
13 % the LaTeX Project Public License, either version 1.3 of this license
14 % or (at your option) any later version.
15 % The latest version of this license is in
16 % http://www.latex-project.org/lppl.txt
17 % and version 1.3 or later is part of all distributions of LaTeX
18 % version 2005/12/01 or later.
19 %
20 % This work has the LPPL maintenance status `maintained'.
21 %
22 % The Current Maintainer of this work is the copyright holder.
23 %
24 % This work consists of the files README, lsc.sty, lsc.tex, lsc.bib.
25 %
26 % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
27
28 \documentclass{article}
29
30 \usepackage{makeidx}
31 \usepackage{lsc}
32
33 \title{\texttt{lsc.sty} -- Typesetting Live Sequence Charts}
34 \author{Bernd Westphal}
35
36 \newsavebox{\bsbox}%<@<
37 \newcommand{\bs}{\usebox{\bsbox}}
38 \newsavebox{\lcbbox}
39 \newcommand{\lcb}{\usebox{\lcbbox}}
40 \newsavebox{\rcbbox}
41 \newcommand{\rcb}{\usebox{\rcbbox}}
42 \newsavebox{\lbbox}
43 \newcommand{\lb}{\usebox{\lbbox}}
44 \newsavebox{\rbbox}
45 \newcommand{\rb}{\usebox{\rbbox}}
46 %
47 \newcommand{\AT}{@}
48 %
49 \newcommand{\env}[1]{\texttt{#1}}
50 \newcommand{\cmd}[1]{\bs\texttt{#1}}
51 \newcommand{\con}[1]{%
52 \ifmmode{\texttt{#1}}\else{`\texttt{#1}'}\fi}
53 \newcommand{\sty}[1]{\texttt{#1.sty}}
54 %
55 \newcommand{\lscsty}{\sty{lsc}}
56 %
57 %
58 \newcommand{\mbegin}[1]{\bs\texttt{begin}\lcb\texttt{#1}\rcb}
59 \newcommand{\mend}[1]{\bs\texttt{end}\lcb\texttt{#1}\rcb}
60 %
61 \newcommand{\mlscActor}{\cmd{lscActor}}
62 \newcommand{\mlscAct}{\cmd{lscAct}}
63 \newcommand{\mlscAsynRcv}{\cmd{lscAsynRcv}}
64 \newcommand{\mlscAsynSnd}{\cmd{lscAsynSnd}}
65 \newcommand{\mlscAsyn}{\cmd{lscAsyn}}
66 \newcommand{\mlscAtom}{\cmd{lscAtom}}
67 \newcommand{\mlscBalloon}{\cmd{lscBalloon}}
68 \newcommand{\mlscClock}{\cmd{lscClock}}
69 \newcommand{\mlscCond}{\cmd{lscCond}}
70 \newcommand{\mlscCreate}{\cmd{lscCreate}}
71 \newcommand{\mlscCut}{\cmd{lscCut}}
72 \newcommand{\mlscEnvLine}{\cmd{lscEnvLine}}
73 \newcommand{\mlscEnv}{\cmd{lscEnv}}
74 \newcommand{\mlscFooterHeightFactor}{\cmd{lscFooterHeightFactor}}
75 \newcommand{\mlscInstRcv}{\cmd{lscInstRcv}}
76 \newcommand{\mlscInstSnd}{\cmd{lscInstSnd}}
77 \newcommand{\mlscInst}{\cmd{lscInst}}
78 \newcommand{\mlscKill}{\cmd{lscKill}}
79 \newcommand{\mlscLabelAtomAt}{\cmd{lscLabelAtomAt}}
80 \newcommand{\mlscLabelAtom}{\cmd{lscLabelAtom}}
81 \newcommand{\mlscLine}{\cmd{lscLine}}
82 \newcommand{\mlscLocationHeight}{\cmd{lscLocationHeight}}
83 \newcommand{\mlscLocationWidth}{\cmd{lscLocationWidth}}
84 \newcommand{\mlscLocinvBegin}{\cmd{lscLocinvBegin}}
85 \newcommand{\mlscLocinvEnd}{\cmd{lscLocinvEnd}}
86 \newcommand{\mlscLocinvOffset}{\cmd{lscLocinvOffset}}
87 \newcommand{\mlscLocinvStart}{\cmd{lscLocinvStart}}
88 \newcommand{\mlscLocinv}{\cmd{lscLocinv}}
89 \newcommand{\mlscNamedCut}{\cmd{lscNamedCut}}
90 \newcommand{\mlscPut}{\cmd{lscPut}}
91 \newcommand{\mlscSetCutColour}{\cmd{lscSetCutColour}}
92 \newcommand{\mlscSetCutLinestyle}{\cmd{lscSetCutLinestyle}}
93 \newcommand{\mlscSetCutWidth}{\cmd{lscSetCutWidth}}
94 \newcommand{\mlscSetNamedCutColour}{\cmd{lscSetNamedCutColour}}
95 \newcommand{\mlscSetNamedCutLinestyle}{\cmd{lscSetNamedCutLinestyle}}
96 \newcommand{\mlscSetNamedCutWidth}{\cmd{lscSetNamedCutWidth}}
97 \newcommand{\mlscTimeout}{\cmd{lscTimeout}}
98 \newcommand{\mlscTimerReset}{\cmd{lscTimerReset}}
99 \newcommand{\mlscTimerSet}{\cmd{lscTimerSet}}
100 \newcommand{\mlscWidecondOff}{\cmd{lscWidecondOff}}
101 \newcommand{\mlscWidecondOn}{\cmd{lscWidecondOn}}
102 \newcommand{\mlscWidecond}{\cmd{lscWidecond}}
103 %
104 \newcommand{\mFullLsc}{\env{FullLsc}}
105 \newcommand{\mLsc}{\env{Lsc}}
106 \newcommand{\mcoregion}{\env{coregion}}
107 \newcommand{\mlsccreateinst}{\env{lsccreateinst}}
108 \newcommand{\mlscinst}{\env{lscinst}}
109 \newcommand{\msimregion}{\env{simregion}}
110 %
111 \newcommand{\mhot}{\con{hot}}%
112 \newcommand{\mcold}{\con{cold}}%
113 %
114 \newcommand{\ml}{\con{l}}%
115 \newcommand{\mr}{\con{r}}%
116 %
117 \newcommand{\mra}{\con{ra}}%
118 \newcommand{\mrb}{\con{rb}}%
119 \newcommand{\mla}{\con{la}}%
120 \newcommand{\mlb}{\con{lb}}%
121 %
122 \newcommand{\mb}{\con{b}}%
123 \newcommand{\mf}{\con{f}}%
124 %
125 \newcommand{\mincl}{\con{incl}}%
126 \newcommand{\mexcl}{\con{excl}}%
127 %
128 \newcommand{\mnoboxSD}{\con{noboxSD}}%
129 \newcommand{\mSD}{\con{SD}}%
130 \newcommand{\mMSC}{\con{MSC}}%
131 \newcommand{\mesymSD}{\con{esymSD}}%
132 \newcommand{\mesymMSC}{\con{esymMSC}}%
133 %
134 \newcommand{\muniversal}{\con{universal}}%
135 \newcommand{\mexistential}{\con{existential}}%
136 \newcommand{\mnone}{\con{none}}%
137 %
138 \newcommand{\mempty}{\con{}}%
139 \newcommand{\mweak}{\con{weak}}%
140 \newcommand{\mpermissive}{\con{permissive}}%
141 \newcommand{\mstrict}{\con{strict}}%
142 %
143 \newcommand{\minitial}{\con{initial}}%
144 \newcommand{\minvariant}{\con{invariant}}%
145 \newcommand{\miterative}{\con{iterative}}%
146 %
147 %
148 \newcommand{\pstricks}{\texttt{pstricks}}
149 %
150 \newcommand{\optparam}[1]{\lb{#1}\rb}
151 \newcommand{\param}[1]{\lcb{#1}\rcb}
152 \newcommand{\var}[1]{\textit{#1}}
153 \newcommand{\this}[1]{\texttt{#1}}
154 \newcommand{\orthat}[1]{$\,\mid\,$\texttt{#1}}%>@>
155
156 \makeindex
157
158 \begin{document}
159
160 \maketitle
161
162 \tableofcontents
163
164 \begin{lrbox}{\bsbox}\verb"\"\end{lrbox}%<@<
165 \begin{lrbox}{\lcbbox}\verb"{"\end{lrbox}
166 \begin{lrbox}{\rcbbox}\verb"}"\end{lrbox}
167 \begin{lrbox}{\lbbox}\verb"["\end{lrbox}
168 \begin{lrbox}{\rbbox}\verb"]"\end{lrbox}%>@>
169
170 \section{Introduction}
171 \label{sec:intro}
172
173 %<@<
174 The \lscsty{} package provides means to typeset
175 \index{Live Sequence Charts}%
176 Live Sequence Charts.
177 %
178 The Live Sequence Charts (LSC) language is a variant of
179 \index{Message Sequence Charts|see{MSC}}%
180 \index{MSC}%
181 Message Sequence Charts (MSC)~\cite{ITU-T1993}.
182 %
183 It's intended use is as a language to formalise requirements on the
184 communication in a (software or hardware) system under design.
185 %
186 The basic difference to MSCs is the addition of modalities to the elements of
187 a chart to distinguish
188 \index{mandatory}%
189 \emph{mandatory} from
190 \index{possible}%
191 \emph{possible} behaviour.
192 %
193 For example, locations on instance lines can be
194 \index{hot}%
195 \emph{hot} to indicate that
196 \index{progress}%
197 progress is required to satisfy the LSC
198 \index{liveness}%
199 (liveness) or
200 \index{cold}%
201 \emph{cold} to indicate that behaviour without progress is acceptable.
202 %
203 This is where the LSC language gets its name from.
204 %>@>
205
206 \subsection{Supported LSC Language}
207
208 %<@<
209 For further information on the original syntax, semantics, and pragmatics of
210 the LSC language see:
211 %
212 \begin{quote}
213 \small
214 \begin{description}
215 \item[\cite{DammHarel2001}]
216 Werner Damm and David Harel,
217 \emph{{LSC}s: Breathing Life into Message Sequence Charts},
218 Formal Methods in System Design, 19(1):45--80, July 2001.
219 \end{description}
220 \end{quote}
221 %
222 The LSC language presented in this publication is (up to minor deviations in
223 \index{style}%
224 style) fully supported by \lscsty{}.
225
226 \medskip
227
228 From the original language, two
229 \index{dialects}%
230 \index{LSC dialects}%
231 dialects emerged, each of them tailored for a
232 particular use of an LSC specification, i.e. a collection of single charts.
233 %
234 The dialect presented in
235 %
236 \begin{quote}
237 \small
238 \begin{description}
239 \item[\cite{Klose2003}]
240 Jochen Klose,
241 \emph{Live Sequence Charts: A Graphical Formalism for the Specification of Communication Behaviour},
242 PhD thesis, {Carl von Ossietzky Universit\"{a}t Oldenburg}, 2003.
243 \end{description}
244 \end{quote}
245 %
246 considers LSCs as the requirements specification language in a classical
247 \index{development process}%
248 development process where the system implementation is finally tested to
249 satisfy the requirements or, possibly better, a system \emph{model} is
250 \index{formal verification}%
251 formally verified to satisfy the requirements.
252
253 To this end, the author added
254 \index{timer}%
255 timers and
256 \index{timing interval}%
257 timing intervals (also taken from MSCs),
258 \index{local invariant}%
259 local invariants to state requirements on spans of time in contrast to
260 conditions which apply only to single points of time, three
261 \index{activation mode}%
262 activation modes, and two
263 \index{interpretation}%
264 interpretations, but doesn't support
265 \index{scope}%
266 scopes.
267 %
268 The articles
269 %
270 \begin{quote}
271 \small
272 \begin{description}
273 \item[\cite{KloseWestphal2002}]
274 Jochen Klose and Bernd Westphal,
275 \emph{Relating {LSC} Specifications to {UML} Models},
276 In: Hartmut Ehrig and Martin Gro\ss{}e-Rhode (Eds.),
277 Proceedings of the Workshop Integration of Software Specification Techniques (INT'02),
278 pages 130--137, April 2002.
279 \item[\cite{DammWestphal2005}]
280 Werner Damm and Bernd Westphal,
281 \emph{Live and Let Die: {LSC}-based Verification of {UML}-Models},
282 Science of of Computer Programming,
283 55(1--3):117--159, March 2005.
284 \end{description}
285 \end{quote}
286 %
287 provide a further extension to so called
288 \index{dynamic binding}%
289 dynamic binding instance lines.
290
291 The LSC language presented in these publications is (up to minor deviations in
292 \index{style}%
293 style) fully supported by \lscsty{}.
294
295 \medskip
296
297
298
299 The dialect presented in
300 %
301 \begin{quote}
302 \small
303 \begin{description}
304 \item[\cite{HarelMarelly2003}]
305 David Harel and Rami Marelly,
306 \emph{Come, Let's Play: Scenario-Based Programming Using LSCs and the Play-Engine},
307 Springer-Verlag, 2003.
308 \end{description}
309 \end{quote}
310 %
311 is tailored for an approach called
312 \index{play-out}%
313 play-out\emph{play-out}.
314 %
315 In this approach, the LSC specification \emph{is} the implementation. A tool
316 called
317 \index{play-engine}%
318 play-engine interprets an LSC specification that has to be related to a
319 GUI. If the GUI is operated by a user, then the play-engine looks up its
320 collection of LSCs and operates the GUI accordingly, thus interacts with a
321 user.
322
323 To this end, they added, for example,
324 \index{actor instance line}%
325 actor instance lines,
326 \index{action}%
327 actions to modify the system state and extended
328 \index{scope}%
329 scopes to
330 \index{loop}%
331 loops.
332 %
333 They independently also added
334 \index{symbolic instances}%
335 symbolic instances, means to handle
336 \index{time}%
337 time and to
338 \index{exclude observations}%
339 exclude observations by
340 \index{forbidden elements}%
341 forbidden elements, and two
342 \index{interpretations}%
343 interpretations.
344
345 The LSC language presented in~\cite{HarelMarelly2003} is not fully supported
346 by \lscsty, and if supported, features are rendered in the
347 \index{style}%
348 style and terminology of~\cite{Klose2003}.
349 %
350 Section~\ref{sec:pipo} discusses how \emph{some} constructs of this LSC
351 dialect can although be typeset with some
352 \index{manual intervention}%
353 manual intervention using some special features \lscsty.
354 %>@>
355
356 \subsection{Typesetting MSCs and Sequence Diagrams}
357
358 %<@<
359 As LSCs are a derivative of MSCs as are
360 \index{UML}%
361 UML's
362 \index{Sequence Diagram|see{SD}}%
363 \index{SD}%
364 Sequence Diagrams (SDs), there is a
365 \index{common sublanguage}%
366 common sublanguage and MSCs or SDs from the common sublanguage may well be
367 typeset using \lscsty.
368
369 But note that there are no plans to extend \lscsty{} to full support of
370 either language.
371 %
372 For MSCs, for example, there is an own \LaTeX{} style and SDs may finally be
373 supported by styles for typesetting UML diagrams.
374 %>@>
375
376 \subsection{Related Styles}
377
378 %<@<
379 As soon as \lscsty{} reached some usable state -- of course -- it
380 turned out that there exist \LaTeX{} packages for typesetting variants of
381 sequence diagrams from which \lscsty{} could have been derived from.
382
383 We briefly list and discuss the styles we're aware of in the following
384 sections.
385
386 \subsubsection{MSC}
387
388 \index{MSC}%
389 Version 1.13 of the
390 \index{msc@\sty{msc}}%
391 msc\sty{msc} package%
392 \footnote{
393 \small{\tt http://www.win.tue.nl/~sjouke/misc/mscpackage}
394 }
395 by
396 \index{Mauw@Mauw, S.}%
397 S. Mauw and
398 \index{Bos@Bos, V.}%
399 V. Bos~\cite{MauwBos2001} claims to support the full
400 \index{MSC2000}%
401 MSC2000 language.
402
403 The most obvious difference is that \sty{msc} seems to be able to compute a
404 \index{layout}%
405 layout on its own, i.e. it only takes a description of the dependencies in the
406 LSC, i.e. the user needn't give precise positioning commands while
407 \index{manual intervention}%
408 manual intervention is still possible.
409
410 In contrast, \lscsty{} is more low level as it expects \emph{all} layout to be
411 given by the user.
412
413 \subsubsection{UML}
414
415 \index{UML}%
416 \index{SD}%
417 For example, the
418 \index{pst-uml@\sty{pst-uml}}%
419 \sty{pst-uml} package%
420 \footnote{
421 \small{\tt http://www.ensta.fr/~diam/latex/pst-uml/index.html}
422 }
423 by
424 \index{Diamantini@Diamantini, M.}%
425 M. Diamantini provides rudimentary support for UML sequence diagrams.
426 %>@>
427
428
429 \section{Preliminaries}
430 \label{sec:pre}
431
432 %<@<
433 The macros provided by \lscsty{} can be divided into three
434 \index{categories}%
435 categories:
436 %
437 \begin{description}
438 \item[Environments.]
439 \index{environment}%
440 The \mFullLsc{} and \mLsc{} environments draw LSC charts with and without
441 header, the \mlscinst{} and \mlsccreateinst{} environments draw instances
442 within LSCs, and the \mcoregion{} and \msimregion{} environments mark
443 coregions and simultaneous regions within instances.
444 \item[Atomic Commands.]
445 \index{atomic command}%
446 \index{command!atomic}%
447 An atomic command directly draws an LSC element, instance line segment, or
448 annotation that is related to only a single location.
449 %
450 Examples are instance line segments, action boxes, or timer set/reset and
451 timeout.
452 \item[Composite Commands.]
453 \index{composite command}%
454 \index{command!composite}%
455 Composite commands draw LSC elements that are related to more than one
456 location. There are typically macros to set the locations which are used
457 within an instance line environment and one macro which finally draws the
458 element based on the set locations.
459 %
460 A typical example are the macros for messages which comprise one macro for
461 setting the sending location, one macro for setting the reception location,
462 and a macro which draws the message arrow.
463 \end{description}
464
465 \begin{figure}%<@< \label{fig:expl}
466 \begin{center}
467 \begin{minipage}{0.225\textwidth}
468 \makeatletter
469 \scalebox{0.9}{%
470 \begin{Lsc}{none}{1}{5.25}
471 \begin{lscinst}{\textit{Inst}}
472 \lscPut{\pnode(1.4,0.3){ibAA}}
473 \psaddtolength{\lsc@Y}{-0.25}
474 \lscLine{hot}{1.0}
475 \lscPut{\pnode(0.2,0.5){laAA}}
476 \psaddtolength{\lsc@Y}{-0.25}
477 \lscCond{hot}{\textit{Cond}}
478 \lscPut{\pnode(0.9,-0.25){cAA}}
479 \lscLine{cold}{0}
480 \psaddtolength{\lsc@Y}{-0.75}
481 \lscLine{cold}{2.0}
482 \lscPut{\pnode(0.2,0.5){lbAA}}
483 \psaddtolength{\lsc@Y}{-0.75}
484 \lscPut{\pnode(1.4,0.3){ieAA}}
485 \end{lscinst}
486 \end{Lsc}}
487 \makeatother%
488 \end{minipage}%
489 %
490 \hfill%
491 %
492 \begin{minipage}{0.225\textwidth}
493 \scalebox{0.9}{%
494 \begin{Lsc}{none}{1}{3}
495 \begin{lscinst}{{\it Inst}}
496 \lscPut{\pnode(-1.4,0.3){ibAB}}
497 \lscPut{\pnode(1.4,0.3){ibBA}}
498 \lscLine{hot}{1}
499 \lscPut{\pnode(-0.2,0.5){laAB}}
500 \lscPut{\pnode(0.2,0.5){laBA}}
501 \lscCond{hot}{{\it Cond}}
502 \lscPut{\pnode(-0.9,-0.25){cAB}}
503 \lscPut{\pnode(0.9,-0.25){cBA}}
504 \lscLine{cold}{2}
505 \lscPut{\pnode(-0.2,1){lbAB}}
506 \lscPut{\pnode(0.2,1){lbBA}}
507 \lscPut{\pnode(-1.4,0.3){ieAB}}
508 \lscPut{\pnode(1.4,0.3){ieBA}}
509 \end{lscinst}
510 \end{Lsc}}%
511 \end{minipage}%
512 %
513 \hfill%
514 %
515 {%
516 \pnode(0.25,0.85){ibBB}% before the minipage as it seems to add height
517 \pnode(0.25,-0.75){ieBB}%
518 \pnode(0.55,0.50){laBB}%
519 \pnode(0.55,-0.35){lbBB}%
520 \pnode(0.55,0.075){cBB}%
521 %
522 \begin{minipage}{0.375\textwidth}%
523 \small%
524 \begin{verbatim}
525 \begin{Lsc}{none}{1}{3}
526 \begin{lscinst}{\it Inst}
527 \lscLine{hot}{1}
528 \lscCond{hot}{\it Cond}
529 \lscLine{cold}{2}
530 \end{lscinst}
531 \end{Lsc}
532 \end{verbatim}
533 \end{minipage}}%
534 %
535 \psset{linewidth=0.5pt,linestyle=dotted}%
536 \ncline{ibAA}{ibAB}\ncline{ibBA}{ibBB}%
537 \ncline{ieAA}{ieAB}\ncline{ieBA}{ieBB}%
538 \ncline{laAA}{laAB}\ncline{laBA}{laBB}%
539 \ncline{lbAA}{lbAB}\ncline{lbBA}{lbBB}%
540 \ncline{cAA}{cAB}\ncline{cBA}{cBB}%
541 \end{center}
542 \caption{\small%
543 \index{exploded view}%
544 {\bf Exploded view} of a simple LSC.}
545 \label{fig:expl}
546 \end{figure}%>@>
547
548 Figure~\ref{fig:expl} illustrates the drawing principle.
549 %
550 The LSC in the middle is the result of the source on the right.
551 %
552 To pinpoint the relation between commands and graphics, we provide an
553 \index{exploded view}%
554 exploded view on the left and connect graphics and text by dotted lines.
555
556 In the example, the
557 \index{Lsc@$\mLsc{}$}%
558 \mLsc{} environment draws nothing as we use the
559 \index{none}%
560 quantification
561 \index{none@$\mnone{}$}%
562 \mnone{} (which is special to \lscsty{} and not part of any LSC dialect) and
563 have no prechart.
564 %
565 If we used
566 \index{universal@$\muniversal{}$}%
567 \muniversal{} or
568 \index{existential@$\mexistential{}$}%
569 \mexistential{}, then the \mLsc{} would draw the solid or dashed frame around
570 the body and if we had a prechart, \mLsc{} would draw the large dashed
571 \index{kandis}%
572 kandis.%
573 \footnote{
574 A \emph{kandis} is a giant sugar crystal which plays a role in East Frisian
575 tea ceremonies (first the kandis, then the tea, and then slowly and
576 carefully some cream).
577 %
578 From the side a kandis typically looks like a hexagon, i.e. like the shape
579 used for rendering conditions and pre-charts.
580 %
581 Throughout this text, we use kandis to denote the hexagon shape.
582 }
583 But although it doesn't draw something, it defines the \env{pspicture}
584 environment enclosing the LSC and thereby defines the
585 \index{box boundary}%
586 box boundary.
587 %
588 The size of the box is determined by the number of instance lines (1 in the
589 example) and their height (3
590 \index{pstricks units@\pstricks{} units}%
591 \pstricks{} units in the example).
592
593 Within the \mLsc{} environment, there is a single
594 \index{lscinst@$\mlscinst{}$}%
595 \mlscinst{} environment.
596 %
597 It takes one required argument, the instance name, and is responsible for
598 drawing the instance head and footer.
599 %
600 A possible parameter controls the shape of the head and the footer (cf.
601 Section~\ref{sec:inst}).
602
603 Within the \mlscinst{} environment, there are only atomic commands in the
604 example.
605 %
606 The
607 \index{lscLine@$\mlscLine{}$}%
608 \mlscLine{} command draws an instance line segment and advances vertical
609 position by the segment length.
610 %
611 The first parameter is either
612 \index{hot@$\mhot{}$}%
613 \mhot{},
614 \index{cold@$\mcold{}$}%
615 \mcold{},
616 or
617 \index{none@$\mnone{}$}%
618 \mnone{} and gives the temperature (or mode) of the location at the beginning
619 of the instance line segment (cf. Section~\ref{sec:line} for the pseudo-mode
620 `\mnone{}').
621 %
622 The second parameter is the instance line segment length. In the example, we
623 use \pstricks{} units, but any length understood by \pstricks{} will do
624 %
625 (cf. Section~\ref{sec:line} for a discussion of environment instance line
626 segments and their optional parameter for timing intervals).
627
628 The
629 \index{lscCond@$\mlscCond$}%
630 \mlscCond{} command draws a condition restricted to a single instance line,
631 also called
632 \index{narrow condition}%
633 \index{condition!narrow condition}%
634 narrow condition (cf. Section~\ref{sec:cond} for a discussion of narrow vs.
635 wide conditions).
636 %
637 The first parameter is either
638 \index{hot@$\mhot{}$}%
639 \mhot{} or
640 \index{cold@$\mcold{}$}%
641 \mcold{} and gives the mode, the second parameter is the condition expression.
642 %
643 The \mlscCond{} command doesn't advance the vertical position, that is, all
644 atomic commands different from instance line segments which are given between
645 two instance line segments are drawn at the same position and implicitly form
646 a
647 \index{simultaneous region}%
648 simultaneous region.
649 %
650 The
651 \index{simregion@$\msimregion{}$}%
652 \msimregion{} environment can be used to make this explicit by drawing a
653 large dot at the shared location (cf. Section~\ref{sec:simreg}).
654
655 Note that the instance line segments in the LSC in the middle of
656 Figure~\ref{fig:expl} are of different length according to the source on the
657 right but appear to be of roughly the same length.
658 %
659 The reason for using different lengths is that the first instance line segment
660 spans from the bottom line of the instance header frame to the top line of the
661 condition kandis.
662 %
663 The second instance line segment spans from the top (!) line of the condition
664 kandis to the bottom (!) line of the footer, i.e. the beginning is hidden by
665 the condition and the end is hidden by the footer.
666 %
667 The former hiding takes place because only after drawing an instance line
668 segment, all elements in the simultaneous region \emph{before} it are
669 \index{flush}%
670 ``flushed''.
671 %
672 The footer is drawn after the last instance line segment has been drawn but it
673 is the only element whose bottom line is positioned at the current position.
674 %
675 Conditions, for example, are placed such that the top line lies at the current
676 position.
677 %>@>
678
679 \section{LSC Environments}
680 \label{sec:lsc}
681
682 The \lscsty{} package provides two environments for LSCs, one for complete LSC
683 specifications and one omitting the header, in particular to typeset LSC
684 bodies only without enclosing frame.
685
686 \subsection{Full LSCs}
687 \label{sec:lsc:fulllsc}
688
689 %<@<
690 \index{FullLsc@$\mFullLsc$}%
691 \begin{center}\fbox{\parbox{0.86\textwidth}{%
692 \mbegin{FullLsc}%
693 \optparam{\var{prechartloc}}%
694 \param{\var{name}}%
695 \param{\var{ac}}%
696 \newline%
697 \hspace*{8em}%
698 \param{\this{$\minvariant$}\orthat{$\minitial$}\orthat{$\miterative$}}%
699 \newline%
700 \hspace*{8em}%
701 \param{\this{$\mstrict$}\orthat{$\mweak$}\orthat{$\mpermissive$}\orthat{}}%
702 \newline%
703 \hspace*{8em}%
704 \param{\this{$\mexistential$}\orthat{$\muniversal$}}%
705 \param{\var{nrinsts}}%
706 \param{\var{nrlocs}}
707 \newline
708 \dots
709 \newline
710 \mend{FullLsc}
711 }}\end{center}
712
713 The \mLsc{} environment typesets full LSCs, i.e. LSC with a header giving the
714 name \var{name}, the activation condition \var{ac}, the activation mode
715 (one of
716 \\
717 \minvariant{}, \minitial{}, or \miterative{}), the interpretation,
718 (one of \mstrict{},
719 \mweak{}, \mpermissive{}, or empty), and the quantification (either
720 \muniversal{} or \mexistential{}).
721
722 The optional first parameter gives the height of the pre-chart, \var{nrinsts}
723 is the (strictly positive) number of instances, and \var{nrlocs} the height of
724 instance lines.
725
726 \newcommand{\verbunskip}{\vspace*{-1.85\baselineskip}}%
727
728 \begin{center}%<@<
729 \begin{minipage}{0.45\textwidth}%
730 \scalebox{0.9}{%
731 \begin{FullLsc}{Name}{ActCond}{invariant}{weak}{existential}{2}{3}
732 \begin{lscinst}{Inst1}
733 \lscLine{hot}{3}
734 \end{lscinst}
735 \begin{lscinst}{Inst2}
736 \lscLine{hot}{3}
737 \end{lscinst}
738 \end{FullLsc}}
739 \end{minipage}%
740 \hfill%
741 \begin{minipage}{0.375\textwidth}%
742 \small%
743 \begin{verbatim}
744 \begin{FullLsc}%
745 {Name}{ActCond}%
746 {invariant}{weak}%
747 {existential}{2}{3}
748 \end{verbatim}%
749 \verbunskip%
750 {\gray%
751 \begin{verbatim}
752 \begin{lscinst}{Inst1}
753 \lscLine{hot}{3}
754 \end{lscinst}
755 \begin{lscinst}{Inst2}
756 \lscLine{hot}{3}
757 \end{lscinst}
758 \end{verbatim}}%
759 \verbunskip%
760 \begin{verbatim}
761 \end{FullLsc}
762 \end{verbatim}
763 \end{minipage}
764 \end{center}%>@>
765
766 Note that the
767 \index{interpretation}%
768 interpretation
769 \index{weak@$\mweak{}$}%
770 \mweak{} maps to the unified name permissive in the LSC header.
771 %
772 If no interpretation is given, the corresponding field is not present in the
773 LSC header at all.
774
775 \begin{center}%<@<
776 \begin{minipage}{0.45\textwidth}%
777 \scalebox{0.9}{%
778 \begin{FullLsc}[1.5]{Name}{ActCond}{iterative}{}{universal}{2}{3}
779 \begin{lscinst}{Inst1}
780 \lscLine{hot}{3}
781 \end{lscinst}
782 \begin{lscinst}{Inst2}
783 \lscLine{hot}{3}
784 \end{lscinst}
785 \end{FullLsc}}
786 \end{minipage}%
787 \hfill%
788 \begin{minipage}{0.375\textwidth}%
789 \small%
790 \begin{verbatim}
791 \begin{FullLsc}[1.5]%
792 {Name}{ActCond}%
793 {iterative}{}%
794 {universal}{2}{3}
795 \end{verbatim}%
796 \verbunskip%
797 {\gray%
798 \begin{verbatim}
799 \begin{lscinst}{Inst1}
800 \lscLine{hot}{3}
801 \end{lscinst}
802 \begin{lscinst}{Inst2}
803 \lscLine{hot}{3}
804 \end{lscinst}
805 \end{verbatim}}%
806 \verbunskip%
807 \begin{verbatim}
808 \end{FullLsc}
809 \end{verbatim}
810 \end{minipage}
811 \end{center}%>@>
812 %>@>
813
814 \subsection{LSCs without Header}
815 \label{sec:lsc:lsc}
816
817 %<@<
818 \index{Lsc@$\mLsc$}%
819 \begin{center}\fbox{\parbox{0.85\textwidth}{%
820 \mbegin{Lsc}%
821 \optparam{\var{prechartloc}}%
822 \newline%
823 \hspace*{6em}%
824 \param{\this{$\mexistential$}\orthat{$\muniversal$}\orthat{$\mnone$}}%
825 \param{\var{nrinsts}}%
826 \param{\var{nrlocs}}
827 \newline
828 \dots
829 \newline
830 \mend{Lsc}
831 }}\end{center}
832
833 The \mLsc{} environment is provided to typeset LSCs without header and LSCs
834 without surrounding frame indicating the quantification.
835 %
836 With the special quantification \mnone{}, the frame is omitted and thus only
837 the LSC body drawn.
838 %
839 This is useful in publications on LSCs which discuss, for example, the
840 compilation of LSC bodies to automata.
841
842 \begin{center}%<@<
843 \begin{minipage}{0.45\textwidth}%
844 \scalebox{0.9}{%
845 \begin{Lsc}{none}{2}{3}
846 \begin{lscinst}{Inst1}
847 \lscLine{hot}{3}
848 \end{lscinst}
849 \begin{lscinst}{Inst2}
850 \lscLine{hot}{3}
851 \end{lscinst}
852 \end{Lsc}}
853 \end{minipage}%
854 \hfill%
855 \begin{minipage}{0.375\textwidth}%
856 \small%
857 \begin{verbatim}
858 \begin{Lsc}{none}{2}{3}
859 \end{verbatim}%
860 \verbunskip%
861 {\gray%
862 \begin{verbatim}
863 \begin{lscinst}{Inst1}
864 \lscLine{hot}{3}
865 \end{lscinst}
866 \begin{lscinst}{Inst2}
867 \lscLine{hot}{3}
868 \end{lscinst}
869 \end{verbatim}}%
870 \verbunskip%
871 \begin{verbatim}
872 \end{Lsc}
873 \end{verbatim}
874 \end{minipage}
875 \end{center}%>@>
876 %>@>
877
878
879 \section{Instance Lines}
880 \label{sec:inst}
881
882 There are two flavours of instance line environment, ordinary and creation
883 instance lines.
884 %
885 Creation instance lines are used to indicate that an object is created during
886 a scenario.
887 %
888 To this end the instance head can be placed some offset below the regular
889 position of instance heads and it defines a hook for the composite
890 \mlscCreate{} command which draws the creation arrow.
891
892 \subsection{Ordinary Instance Lines}
893 \label{sec:inst:ord}
894
895 %<@<
896 \index{lscinst@$\mlscinst$}%
897 \begin{center}\fbox{\parbox{0.8\textwidth}{
898 \mbegin{lscinst}%
899 \optparam{\underline{\this{$\mMSC$}}\orthat{$\mSD$}\orthat{$\mnoboxSD$}\orthat{$\mesymMSC$}\orthat{$\mesymSD$}}%
900 \param{\var{name}}
901 \newline
902 \dots
903 \newline
904 \mend{lscinst}
905 }}\end{center}
906
907 The \var{name} is set on top of the instance line segments.
908 %
909 The optional parameter controls the appearance of the instance header and
910 footer according to the following table:
911
912 \index{MSC@$\mMSC$}%
913 \index{SD@$\mSD$}%
914 \index{noboxSD@$\mnoboxSD$}%
915 \index{esymMSC@$\mesymMSC$}%
916 \index{esymSD@$\mesymSD$}%
917 \begin{center}
918 \begin{tabular}{||l|c|c||}
919 \hline
920 & framed header & footer \\
921 \hline
922 \mMSC{}
923 (default) & solid & $\times$ \\
924 \hline
925 \mSD{} & solid & $-$ \\
926 \hline
927 \mnoboxSD{} & none & $-$ \\
928 \hline
929 \mesymMSC{} & dashed & $\times$ \\
930 \hline
931 \mesymSD{} & dashed & $-$ \\
932 \hline
933 \end{tabular}
934 \end{center}
935
936 There is no kind for the fourth possible combination -- nobody wants the
937 combination of no frame but a footer.
938
939 \begin{center}%<@<
940 \begin{minipage}{0.625\textwidth}%
941 \scalebox{0.9}{%
942 \begin{Lsc}{none}{3}{3}
943 \begin{lscinst}{MSC}
944 \lscLine{hot}{3}
945 \end{lscinst}
946 \begin{lscinst}[SD]{SD}
947 \lscLine{hot}{3}
948 \end{lscinst}
949 \begin{lscinst}[noboxSD]{noboxSD}
950 \lscLine{hot}{3}
951 \end{lscinst}
952 \end{Lsc}}
953 \end{minipage}%
954 \hfill%
955 \begin{minipage}{0.375\textwidth}%
956 \small%
957 {\gray%
958 \begin{verbatim}
959 \begin{Lsc}{none}{2}{3}
960 \end{verbatim}}%
961 \verbunskip%
962 \begin{verbatim}
963 \begin{lscinst}{MSC}
964 \end{verbatim}%
965 \verbunskip%
966 {\gray\begin{verbatim}
967 \lscLine{hot}{3}
968 \end{verbatim}}%
969 \verbunskip%
970 \begin{verbatim}
971 \end{lscinst}
972 \begin{lscinst}[SD]{SD}
973 \end{verbatim}%
974 \verbunskip%
975 {\gray\begin{verbatim}
976 \lscLine{hot}{3}
977 \end{verbatim}}%
978 \verbunskip%
979 \begin{verbatim}
980 \end{lscinst}
981 \begin{lscinst}[noboxSD]%
982 {noboxSD}
983 \end{verbatim}%
984 \verbunskip%
985 {\gray\begin{verbatim}
986 \lscLine{hot}{3}
987 \end{verbatim}}%
988 \verbunskip%
989 \begin{verbatim}
990 \end{lscinst}
991 \end{verbatim}%
992 \verbunskip%
993 {\gray%
994 \begin{verbatim}
995 \end{Lsc}
996 \end{verbatim}}
997 \end{minipage}
998 \end{center}%>@>
999
1000 See Section~\ref{sec:pipo:inst} for examples of existential symbolic instances.
1001 %>@>
1002
1003 \subsection{Creation Instance Lines}
1004 \label{sec:inst:cre}
1005
1006 %<@<
1007 \index{lsccreateinst@$\mlsccreateinst$}%
1008 \begin{center}\fbox{\parbox{0.775\textwidth}{%
1009 \mbegin{lsccreateinst}%
1010 \optparam{\underline{\this{$\mMSC$}}\orthat{$\mSD$}\orthat{$\mnoboxSD$}\orthat{$\mesymMSC$}\orthat{$\mesymSD$}}%
1011 \newline
1012 \hspace*{3.75cm}
1013 \param{\var{offset}}%
1014 \param{\var{id}}%
1015 \param{\var{name}}%
1016 \newline
1017 \dots
1018 \newline
1019 \mend{lsccreateinst}
1020 }}\end{center}
1021
1022 The optional parameter \mlsccreateinst{} and the \var{name} work just like in
1023 the \mlscinst{} environment.
1024 %
1025 The additional parameter \var{offset} gives the offset of the instance header
1026 relative to the headers of ordinary instance lines.
1027 %
1028 That is, it is exactly equivalent to \mlscinst{} if the \var{offset} is 0 and
1029 the corresponding \lscCreate{} command is omitted.
1030
1031 \index{lscCreate@$\mlscCreate$}%
1032 \begin{center}\fbox{
1033 \mlscCreate%
1034 \param{\var{id}}%
1035 }\end{center}
1036
1037 The parameter \var{id} is a legal \LaTeX{} identifier which can be used in the
1038 \mlscCreate{} command to draw the create arrow.
1039
1040 \begin{center}%<@<
1041 \begin{minipage}{0.435\textwidth}%
1042 \scalebox{0.9}{%
1043 \begin{Lsc}{none}{2}{3}
1044 \begin{lscinst}{Inst1}
1045 \lscLine{hot}{0.7}
1046 \lscCreate{cr}
1047 \lscLine{hot}{2.3}
1048 \end{lscinst}
1049 \begin{lsccreateinst}{1}{cr}{Inst2}
1050 \lscLine{hot}{2}
1051 \end{lsccreateinst}
1052 \end{Lsc}}
1053 \end{minipage}%
1054 \hfill%
1055 \begin{minipage}{0.525\textwidth}%
1056 \small%
1057 {\gray%
1058 \begin{verbatim}
1059 \begin{Lsc}{none}{2}{3}
1060 \begin{lscinst}{Inst1}
1061 \lscLine{hot}{0.7}
1062 \end{verbatim}}%
1063 \verbunskip%
1064 \begin{verbatim}
1065 \lscCreate{cr}
1066 \end{verbatim}%
1067 \verbunskip%
1068 {\gray\begin{verbatim}
1069 \lscLine{hot}{2.3}
1070 \end{lscinst}
1071 \end{verbatim}}%
1072 \verbunskip%
1073 \begin{verbatim}
1074 \begin{lsccreateinst}{1}{cr}{Inst2}
1075 \end{verbatim}%
1076 \verbunskip%
1077 {\gray\begin{verbatim}
1078 \lscLine{hot}{2}
1079 \end{verbatim}}%
1080 \verbunskip%
1081 \begin{verbatim}
1082 \end{lsccreateinst}
1083 \end{verbatim}%
1084 \verbunskip%
1085 {\gray\begin{verbatim}
1086 \end{Lsc}
1087 \end{verbatim}}%
1088 \end{minipage}
1089 \end{center}%>@>
1090
1091 \begin{center}%<@<
1092 \begin{minipage}{0.435\textwidth}%
1093 \scalebox{0.9}{%
1094 \begin{Lsc}{none}{2}{3}
1095 \begin{lsccreateinst}[noboxSD]{1}{cr}{Inst1}
1096 \lscLine{hot}{2}
1097 \end{lsccreateinst}
1098 \begin{lscinst}{Inst2}
1099 \lscLine{hot}{0.7}
1100 \lscCreate{cr}
1101 \lscLine{hot}{2.3}
1102 \end{lscinst}
1103 \end{Lsc}}
1104 \end{minipage}%
1105 \hfill%
1106 \begin{minipage}{0.525\textwidth}%
1107 \small%
1108 {\gray%
1109 \begin{verbatim}
1110 \begin{Lsc}{none}{2}{3}
1111 \end{verbatim}}%
1112 \verbunskip%
1113 \begin{verbatim}
1114 \begin{lsccreateinst}{1}{cr}{Inst2}
1115 \end{verbatim}%
1116 \verbunskip%
1117 {\gray\begin{verbatim}
1118 \lscLine{hot}{2}
1119 \end{verbatim}}%
1120 \verbunskip%
1121 \begin{verbatim}
1122 \end{lsccreateinst}
1123 \end{verbatim}%
1124 \verbunskip%
1125 {\gray\begin{verbatim}
1126 \begin{lscinst}{Inst1}
1127 \lscLine{hot}{0.7}
1128 \end{verbatim}}%
1129 \verbunskip%
1130 \begin{verbatim}
1131 \lscCreate{cr}
1132 \end{verbatim}%
1133 \verbunskip%
1134 {\gray\begin{verbatim}
1135 \lscLine{hot}{2.3}
1136 \end{lscinst}
1137 \end{verbatim}}%
1138 \verbunskip%
1139 \begin{verbatim}
1140 \end{Lsc}
1141 \end{verbatim}%
1142 \end{minipage}
1143 \end{center}%>@>
1144
1145 \index{creation arrow}
1146 Note that the creation arrow ends at the border of the frame when the instance
1147 head has a frame and at the label if there is no frame.
1148 %
1149 Further note that the instance line end of the arrow is located 0.3 pstricks
1150 units above the bottom of the instance head such that the instance line
1151 segment lengths on the instance line with the \mlscCreate{} can easily be
1152 adjusted to obtain a vertical arrow.
1153
1154 The creation arrow is drawn as soon as both ends, i.e. the \mlscCreate{}
1155 location and the creation instance, are given. The identifier is then
1156 undefined, i.e. the same identifier may legally occur in two
1157 \mlscCreate{}/\mlsccreateinst{} pairs in the same LSC -- but this is obviously
1158 bad style.
1159 %>@>
1160
1161 \subsection{Instance Location and Footer Dimensions}
1162 \label{sec:inst:dim}
1163
1164 %<@<
1165 \index{lscLocationWidth@$\mlscLocationWidth$}%
1166 \index{lscLocationHeight@$\mlscLocationHeight$}%
1167 \begin{center}\fbox{\parbox{12em}{%
1168 \mlscLocationWidth
1169 \newline
1170 \mlscLocationHeight
1171 }}\end{center}
1172
1173 \begin{figure}%<@< \label{fig:locdim}
1174 \begin{center}
1175 {\pssetlength{\lscLocationWidth}{4}
1176 \begin{Lsc}{none}{1}{3}
1177 \begin{lscinst}{Inst}
1178 \lscPut{\pcline[linewidth=0.5pt]{|-|}%
1179 (-0.5\lscLocationWidth,1)%
1180 (0.5\lscLocationWidth,1)%
1181 \lput*{0}{\mlscLocationWidth}}
1182 \lscLine{hot}{1}
1183 \lscPut{\psframe[linewidth=0.25pt,linestyle=dashed]%
1184 (-0.5\lscLocationWidth,\lscLocationHeight)%
1185 (0.5\lscLocationWidth,0)}
1186 \lscLine{hot}{1}
1187 \lscPut{\psframe[linewidth=0.25pt,linestyle=dashed]%
1188 (-0.5\lscLocationWidth,\lscLocationHeight)%
1189 (0.5\lscLocationWidth,0)}
1190 \lscPut{\pcline[linewidth=0.5pt]{|-|}%
1191 (0.6\lscLocationWidth,\lscLocationHeight)%
1192 (0.6\lscLocationWidth,0)%
1193 \lput*[l]{0}{\mlscLocationHeight}}
1194 \lscLine{hot}{1}
1195 \lscPut{\psframe[linewidth=0.25pt,linestyle=dashed]%
1196 (-0.5\lscLocationWidth,\lscLocationHeight)%
1197 (0.5\lscLocationWidth,0)}
1198 \end{lscinst}
1199 \end{Lsc}}
1200 \end{center}
1201 %
1202 \caption{\small%
1203 {\bf Dimensions} of a location.}
1204 \label{fig:locdim}
1205 \end{figure}%>@>
1206
1207 \index{box boundary|textbf}%
1208 The LSC's box boundary is basically computed in terms of the width and height
1209 of a single location within an instance (cf. Figure~\ref{fig:locdim}) as
1210 defined by lengths \mlscLocationWidth{} (default: 3 pstricks units) and
1211 \mlscLocationHeight{} (default: 1 pstricks unit).
1212 %
1213 The width of the LSC body is computed as
1214 \[
1215 \textit{number of instances} * \mlscLocationWidth
1216 \]
1217 and the height of the LSC body is computed as
1218 \[
1219 \textit{number of locations} * \mlscLocationHeight.
1220 \]
1221 %
1222 Both lengths can be manipulated, for example, to obtain wider or narrower
1223 instances or to globally scale the length of instance line segments.
1224
1225 To change the dimension for only a single LSC, one can exploit that curly
1226 braces in \LaTeX{} define scopes and that changes to lengths or commands are
1227 local to these scopes.
1228 %
1229 To this end we have enclosed the manipulation of the lengths and the \mLsc{}
1230 environment in curly braces.
1231
1232 \begin{center}%<@<
1233 \begin{minipage}{0.275\textwidth}%
1234 \scalebox{0.9}{%
1235 \pssetlength{\lscLocationWidth}{5em}
1236 \pssetlength{\lscLocationHeight}{1.5}
1237 \begin{Lsc}{none}{2}{3}
1238 \begin{lscinst}{\parbox{4em}{Instance No. 1}}
1239 \lscLine{hot}{3}
1240 \end{lscinst}
1241 \end{Lsc}}
1242 \end{minipage}%
1243 \hfill%
1244 \begin{minipage}{0.50\textwidth}%
1245 \small%
1246 \begin{verbatim}
1247 {\pssetlength{\lscLocationWidth}{5em}
1248 \pssetlength{\lscLocationHeight}{1.5}
1249 \end{verbatim}%
1250 \verbunskip%
1251 {\gray%
1252 \begin{verbatim}
1253 \begin{Lsc}{none}{2}{3}
1254 \begin{lscinst}{%
1255 \end{verbatim}}%
1256 \verbunskip%
1257 \begin{verbatim}
1258 \parbox{4em}{Instance No. 1}}
1259 \end{verbatim}%
1260 \verbunskip%
1261 {\gray%
1262 \begin{verbatim}
1263 \lscLine{hot}{3}
1264 \end{lscinst}
1265 \begin{verbatim}
1266 \end{Lsc}}
1267 \end{verbatim}}
1268 \end{minipage}
1269 \end{center}%>@>
1270
1271 Note that the height of the instance head frame depends on the height of its
1272 content, i.e. a \cmd{parbox} may be used to obtain multiline annotations in
1273 instance heads.
1274
1275 \index{lscFooterHeightFactor@$\mlscFooterHeightFactor$}%
1276 \begin{center}\fbox{%
1277 \mlscFooterHeightFactor
1278 }\end{center}
1279
1280 The command (!) \mlscFooterHeightFactor{} (default: 0.2) affects the
1281 appearance of instance footers.
1282 %
1283 It should be set to a positive real number, at best from the left-open
1284 interval $]0,0.2]$. The footer is basically a filled framebox around a
1285 \cmd{rule} of height
1286 %
1287 \[
1288 \mlscFooterHeightFactor * \mlscLocationHeight.
1289 \]
1290
1291 \begin{center}%<@<
1292 \begin{minipage}{0.225\textwidth}%
1293 \scalebox{0.9}{%
1294 \renewcommand{\lscFooterHeightFactor}{0.05}
1295 \begin{Lsc}{none}{1}{3}
1296 \begin{lscinst}{Inst}
1297 \lscLine{hot}{3}
1298 \end{lscinst}
1299 \end{Lsc}}
1300 \end{minipage}%
1301 \hfill%
1302 \begin{minipage}{0.61\textwidth}%
1303 \small%
1304 \begin{verbatim}
1305 {\renewcommand{\lscFooterHeightFactor}{0.01}
1306 \end{verbatim}%
1307 \verbunskip%
1308 {\gray%
1309 \begin{verbatim}
1310 \begin{Lsc}{none}{1}{3}
1311 \begin{lscinst}{Inst}
1312 \lscLine{hot}{3}
1313 \end{lscinst}
1314 \begin{verbatim}
1315 \end{Lsc}}
1316 \end{verbatim}}
1317 \end{minipage}
1318 \end{center}%>@>
1319 %>@>
1320
1321
1322 \section{Instance Line Segments}
1323 \label{sec:line}
1324
1325 There are two flavours of instance line segments, ordinary and environment
1326 instance line segments.
1327 %
1328 Environment instance line segments are rendered like the ones of Sequence
1329 Diagrams.
1330
1331 \subsection{Ordinary Instance Line Segments}
1332 \label{sec:line:ord}
1333
1334 %<@<
1335 \index{lscLine@$\mlscLine$}%
1336 \begin{center}\fbox{
1337 \mlscLine%
1338 \optparam{\var{interval}}%
1339 \param{\this{$\mhot$}\orthat{$\mcold$}\orthat{$\mnone$}}%
1340 \param{\var{length}}%
1341 }\end{center}
1342
1343 The \mlscLine{} command draws the elements belonging to the location where the
1344 line starts, draws the instance line segment of length \var{length}, and
1345 advances the vertical position by this amount.
1346 %
1347 The mode `\mnone{}' is not a valid mode of LSCs but only present to draw an
1348 invisible line segment to draw abstract LSCs, e.g. to explain LSC
1349 construction algorithms.
1350
1351 The actual length of the line segment is computed as
1352 $\var{length} \cdot \mlscLocationHeight{}$.
1353
1354 If the optional \var{interval} is given, it rendered to the right of the
1355 instance line segment. This may be any content, but it is typically used to
1356 place timing intervals.
1357
1358 \begin{center}%<@<
1359 \begin{minipage}{0.45\textwidth}%
1360 \scalebox{0.9}{%
1361 \begin{Lsc}{none}{2}{3}
1362 \begin{lscinst}{Inst1}
1363 \lscLine{hot}{0.75}
1364 \lscLine{none}{0.75}
1365 \lscLine{cold}{1.5}
1366 \end{lscinst}
1367 \begin{lscinst}{Inst2}
1368 \lscLine[{$[1,2]$}]{cold}{1.25}
1369 \lscLine[{$[3,17]$}]{hot}{1.75}
1370 \end{lscinst}
1371 \end{Lsc}}
1372 \end{minipage}%
1373 \hfill%
1374 \begin{minipage}{0.48\textwidth}%
1375 \small%
1376 {\gray\begin{verbatim}
1377 \begin{Lsc}{none}{2}{3}
1378 \begin{lscinst}{Inst1}
1379 \end{verbatim}}%
1380 \verbunskip%
1381 \begin{verbatim}
1382 \lscLine{hot}{0.75}
1383 \lscLine{none}{0.75}
1384 \lscLine{cold}{1.5}
1385 \end{verbatim}
1386 \verbunskip%
1387 {\gray\begin{verbatim}
1388 \end{lscinst}
1389 \begin{lscinst}{Inst2}
1390 \end{verbatim}}%
1391 \verbunskip%
1392 \begin{verbatim}
1393 \lscLine[{$[1,2]$}]{cold}{1.25}
1394 \lscLine[{$[3,17]$}]{hot}{1.75}
1395 \end{verbatim}
1396 \verbunskip%
1397 {\gray\begin{verbatim}
1398 \end{lscinst}
1399 \end{Lsc}
1400 \end{verbatim}}%
1401 \end{minipage}
1402 \end{center}%>@>
1403
1404 Note that timing intervals are always vertically centred on the line and put
1405 to the right.
1406 %
1407 As this is already the optional parameter, there are no plans to support
1408 variable positioning of the timing interval but nobody keeps you from using
1409 \cmd{rput} should the need arise.
1410
1411 \medskip
1412
1413 The \mlscLine{} command doesn't set the line colour, thus one can obtain
1414 colourful LSCs using the \cmd{psset} command.
1415
1416 \begin{center}%<@<
1417 \begin{minipage}{0.45\textwidth}%
1418 \scalebox{0.9}{%
1419 \begin{Lsc}{none}{1}{3}
1420 \begin{lscinst}{Inst}
1421 {\psset{linecolor=green}
1422 \lscLine{hot}{1.25}}
1423 {\psset{linecolor=blue}
1424 \lscLine{cold}{1.75}}
1425 \end{lscinst}
1426 \end{Lsc}}
1427 \end{minipage}%
1428 \hfill%
1429 \begin{minipage}{0.48\textwidth}%
1430 \small%
1431 {\gray\begin{verbatim}
1432 \begin{Lsc}{none}{1}{3}
1433 \begin{lscinst}{Inst}
1434 \end{verbatim}}%
1435 \verbunskip%
1436 \begin{verbatim}
1437 {\psset{linecolor=green}
1438 \lscLine{hot}{1.25}}
1439 {\psset{linecolor=blue}
1440 \lscLine{cold}{1.75}}
1441 \end{verbatim}
1442 \verbunskip%
1443 {\gray\begin{verbatim}
1444 \end{lscinst}
1445 \end{Lsc}
1446 \end{verbatim}}%
1447 \end{minipage}
1448 \end{center}%>@>
1449 %>@>
1450
1451 \subsection{Environment Instance Line Segments}
1452 \label{sec:line:env}
1453
1454 %<@<
1455 \index{lscEnvLine@$\mlscEnvLine$}%
1456 \begin{center}\fbox{
1457 \mlscEnvLine%
1458 \optparam{\var{interval}}%
1459 \param{\this{$\mhot$}\orthat{$\mcold$}}%
1460 \param{\var{length}}%
1461 }\end{center}
1462
1463 The \mlscEnvLine{} behaves just like \mlscLine{}, only the instance line
1464 segment is rendered differently, namely in
1465 \index{Sequence Diagram}%
1466 Sequence Diagram style.
1467 %
1468 To indicate hot segments, a solid line is drawn on top of the environment
1469 line segment.
1470
1471 \begin{center}%<@<
1472 \begin{minipage}{0.45\textwidth}%
1473 \scalebox{0.9}{%
1474 \begin{Lsc}{none}{2}{3}
1475 \begin{lscinst}{Inst1}
1476 \lscEnvLine{hot}{1.25}
1477 \lscEnvLine{cold}{1.75}
1478 \end{lscinst}
1479 \begin{lscinst}{Inst2}
1480 \lscEnvLine[{$[1,2]$}]{cold}{1.25}
1481 \lscEnvLine[{$[3,17]$}]{hot}{1.75}
1482 \end{lscinst}
1483 \end{Lsc}}
1484 \end{minipage}%
1485 \hfill%
1486 \begin{minipage}{0.48\textwidth}%
1487 \small%
1488 {\gray\begin{verbatim}
1489 \begin{Lsc}{none}{2}{3}
1490 \begin{lscinst}{Inst1}
1491 \end{verbatim}}%
1492 \verbunskip%
1493 \begin{verbatim}
1494 \lscEnvLine{hot}{1.25}
1495 \lscEnvLine{cold}{1.75}
1496 \end{verbatim}
1497 \verbunskip%
1498 {\gray\begin{verbatim}
1499 \end{lscinst}
1500 \begin{lscinst}{Inst2}
1501 \end{verbatim}}%
1502 \verbunskip%
1503 \begin{verbatim}
1504 \lscEnvLine[{$[1,2]$}]{cold}{1.25}
1505 \lscEnvLine[{$[3,17]$}]{hot}{1.75}
1506 \end{verbatim}
1507 \verbunskip%
1508 {\gray\begin{verbatim}
1509 \end{lscinst}
1510 \end{Lsc}
1511 \end{verbatim}}%
1512 \end{minipage}
1513 \end{center}%>@>
1514 %>@>
1515
1516 \section{Messages}
1517 \label{sec:msg}
1518
1519 Both message kinds distinguished by~\cite{Klose2003} are supported by two sets
1520 of composite commands.
1521 %
1522 For each kind, there is one command to mark the sending location, one command
1523 to mark the reception location, and one command to finally draw the arrow.
1524
1525 The difference between both is only the shape of the arrow, it is not enforced
1526 that instantaneous messages are drawn horizontally without slope.
1527
1528 Both also don't define the line colour, i.e. one can obtain coloured arrows
1529 using \cmd{psset} (cf. Section~\ref{sec:line:ord}).
1530
1531 Self messages are currently not supported.
1532 %
1533 If the sending and reception lie on the same instance line, then the arrow's
1534 line coincides with the instance line and only the arrow itself and the
1535 annotation will be visible.
1536
1537 \subsection{Asynchronous Messages}
1538 \label{sec:msg:asyn}
1539
1540 %<@<
1541 \index{lscAsynSnd@$\mlscAsynSnd$}%
1542 \index{lscAsynRcv@$\mlscAsynRcv$}%
1543 \index{lscAsyn@$\mlscAsyn$}%
1544 \begin{center}\fbox{\parbox{15em}{
1545 \mlscAsynSnd%
1546 \param{\var{id}}%
1547 \newline
1548 \mlscAsynRcv%
1549 \param{\var{id}}%
1550 \newline
1551 \mlscAsyn%
1552 \param{\var{id}}%
1553 \param{\this{$\mhot$}\orthat{$\mcold$}}%
1554 \param{\var{label}}
1555 }}\end{center}
1556
1557 If \mlscAsynSnd{} and \mlscAsynRcv{} occurred exactly once within an
1558 \mFullLsc{} or \mLsc{} environment, then a following \mlscAsyn{} command with
1559 the same \var{id} draws the arrow annotated with \var{label}.
1560
1561 The \var{id} can be reused for another message within the same LSC after
1562 \mlscAsyn{} has been called, but this is not considered good style.
1563
1564 \begin{center}%<@<
1565 \begin{minipage}{0.45\textwidth}%
1566 \scalebox{0.9}{%
1567 \begin{Lsc}{none}{2}{3}
1568 \begin{lscinst}{Inst1}
1569 \lscLine{hot}{0.5}%
1570 \lscAsynSnd{e}%
1571 \lscLine{hot}{1.5}%
1572 \lscAsynRcv{f}%
1573 \lscLine{hot}{1}%
1574 \end{lscinst}
1575 %
1576 \begin{lscinst}{Inst2}
1577 \lscLine{hot}{1}%
1578 \lscAsynRcv{e}%
1579 \lscLine{hot}{0.5}%
1580 \lscAsynSnd{f}%
1581 \lscLine{hot}{1.5}%
1582 \end{lscinst}
1583 %
1584 \lscAsyn{e}{hot}{E}%
1585 \lscAsyn{f}{cold}{F}%
1586 \end{Lsc}}
1587 \end{minipage}%
1588 \hfill%
1589 \begin{minipage}{0.33\textwidth}%
1590 \small%
1591 {\gray\begin{verbatim}
1592 \begin{Lsc}{none}{2}{3}
1593 \begin{lscinst}{Inst1}
1594 \lscLine{hot}{0.5}%
1595 \end{verbatim}}%
1596 \verbunskip%
1597 {\begin{verbatim}
1598 \lscAsynSnd{e}%
1599 \end{verbatim}}%
1600 \verbunskip%
1601 {\gray\begin{verbatim}
1602 \lscLine{hot}{1.5}%
1603 \end{verbatim}}%
1604 \verbunskip%
1605 {\begin{verbatim}
1606 \lscAsynRcv{f}%
1607 \end{verbatim}}%
1608 \verbunskip%
1609 {\gray\begin{verbatim}
1610 \lscLine{hot}{1}%
1611 \end{lscinst}
1612 \begin{lscinst}{Inst2}
1613 \lscLine{hot}{1}%
1614 \end{verbatim}}%
1615 \verbunskip%
1616 {\begin{verbatim}
1617 \lscAsynRcv{e}%
1618 \end{verbatim}}%
1619 \verbunskip%
1620 {\gray\begin{verbatim}
1621 \lscLine{hot}{0.5}%
1622 \end{verbatim}}%
1623 \verbunskip%
1624 {\begin{verbatim}
1625 \lscAsynSnd{f}%
1626 \end{verbatim}}%
1627 \verbunskip%
1628 {\gray\begin{verbatim}
1629 \lscLine{hot}{1.5}%
1630 \end{lscinst}
1631 \end{verbatim}}%
1632 \verbunskip%
1633 {\begin{verbatim}
1634 \lscAsyn{e}{hot}{E}%
1635 \lscAsyn{f}{cold}{F}%
1636 \end{verbatim}}%
1637 \verbunskip%
1638 {\gray\begin{verbatim}
1639 \end{Lsc}}
1640 \end{verbatim}}%
1641 \end{minipage}
1642 \end{center}%>@>
1643
1644 Note that the closing commands of composite commands, like \mlscAsyn{} in the
1645 example, are by
1646 \index{convention}%
1647 convention collected below all instance environments.
1648 %
1649 It is by no means necessary, as explained above, but thereby one provides a
1650 common place to look for all definitions.
1651 %>@>
1652
1653 \subsection{Instantaneous Messages}
1654 \label{sec:msg:inst}
1655
1656 %<@<
1657 \index{lscInstSnd@$\mlscInstSnd$}%
1658 \index{lscInstRcv@$\mlscInstRcv$}%
1659 \index{lscInst@$\mlscInst$}%
1660 \begin{center}\fbox{\parbox{15em}{
1661 \mlscInstSnd%
1662 \param{\var{id}}%
1663 \newline
1664 \mlscInstRcv%
1665 \param{\var{id}}%
1666 \newline
1667 \mlscInst%
1668 \param{\var{id}}%
1669 \param{\this{$\mhot$}\orthat{$\mcold$}}%
1670 \param{\var{label}}
1671 }}\end{center}
1672
1673 The composite command for instantaneous messages is operated exactly like
1674 \mlscAsyn{} and friends (cf. Section~\ref{sec:msg:asyn}).
1675
1676 \begin{center}%<@<
1677 \begin{minipage}{0.45\textwidth}%
1678 \scalebox{0.9}{%
1679 \begin{Lsc}{none}{2}{3}
1680 \begin{lscinst}{Inst1}
1681 \lscLine{hot}{1}%
1682 \lscInstSnd{e}%
1683 \lscLine{hot}{1}%
1684 \lscInstRcv{f}%
1685 \lscLine{hot}{1}%
1686 \end{lscinst}
1687 %
1688 \begin{lscinst}{Inst2}
1689 \lscLine{hot}{1}%
1690 \lscInstRcv{e}%
1691 \lscLine{hot}{0.5}%
1692 \lscInstSnd{f}%
1693 \lscLine{hot}{1.5}%
1694 \end{lscinst}
1695 %
1696 \lscInst{e}{hot}{E}%
1697 \lscInst{f}{cold}{F}%
1698 \end{Lsc}}
1699 \end{minipage}%
1700 \hfill%
1701 \begin{minipage}{0.33\textwidth}%
1702 \small%
1703 {\gray\begin{verbatim}
1704 \begin{Lsc}{none}{2}{3}
1705 \begin{lscinst}{Inst1}
1706 \lscLine{hot}{1}%
1707 \end{verbatim}}%
1708 \verbunskip%
1709 {\begin{verbatim}
1710 \lscInstSnd{e}%
1711 \end{verbatim}}%
1712 \verbunskip%
1713 {\gray\begin{verbatim}
1714 \lscLine{hot}{1}%
1715 \end{verbatim}}%
1716 \verbunskip%
1717 {\begin{verbatim}
1718 \lscInstRcv{f}%
1719 \end{verbatim}}%
1720 \verbunskip%
1721 {\gray\begin{verbatim}
1722 \lscLine{hot}{1}%
1723 \end{lscinst}
1724 \begin{lscinst}{Inst2}
1725 \lscLine{hot}{1}%
1726 \end{verbatim}}%
1727 \verbunskip%
1728 {\begin{verbatim}
1729 \lscInstRcv{e}%
1730 \end{verbatim}}%
1731 \verbunskip%
1732 {\gray\begin{verbatim}
1733 \lscLine{hot}{0.5}%
1734 \end{verbatim}}%
1735 \verbunskip%
1736 {\begin{verbatim}
1737 \lscInstSnd{f}%
1738 \end{verbatim}}%
1739 \verbunskip%
1740 {\gray\begin{verbatim}
1741 \lscLine{hot}{1.5}%
1742 \end{lscinst}
1743 \end{verbatim}}%
1744 \verbunskip%
1745 {\begin{verbatim}
1746 \lscInst{e}{hot}{E}%
1747 \lscInst{f}{cold}{F}%
1748 \end{verbatim}}%
1749 \verbunskip%
1750 {\gray\begin{verbatim}
1751 \end{Lsc}}
1752 \end{verbatim}}%
1753 \end{minipage}
1754 \end{center}%>@>
1755 %>@>
1756
1757 \subsection{Self Messages}
1758 \label{sec:msg:self}
1759
1760 %<@<
1761 Self messages are not a third category but both asynchronous and instantaneous
1762 messages may well begin and end at the same instance line.
1763
1764 \begin{center}%<@<
1765 \begin{minipage}{0.33\textwidth}
1766 \scalebox{0.9}{%
1767 \begin{Lsc}{none}{1}{4}
1768 \begin{lscinst}{Inst}
1769 \lscLine{hot}{0.5}
1770 \lscAsynSnd{e}
1771 \lscLine{hot}{1}
1772 \lscAsynRcv{e}
1773 \lscLine{hot}{0.5}
1774 \lscInstSnd{f}
1775 \lscLine{hot}{1}
1776 \lscInstRcv{f}
1777 \lscLine{hot}{1}
1778 \end{lscinst}
1779 \lscAsyn{e}{hot}{E}
1780 \lscInst{f}{hot}{F}
1781 \end{Lsc}
1782 }%
1783 \end{minipage}
1784 \hfill
1785 \begin{minipage}{0.33\textwidth}%
1786 \small%
1787 {\gray\begin{verbatim}
1788 \begin{Lsc}{none}{1}{4}
1789 \begin{lscinst}{Inst}
1790 \lscLine{hot}{0.5}
1791 \end{verbatim}}%
1792 \verbunskip%
1793 {\begin{verbatim}
1794 \lscAsynSnd{e}
1795 \end{verbatim}}%
1796 \verbunskip%
1797 {\gray\begin{verbatim}
1798 \lscLine{hot}{1}
1799 \end{verbatim}}%
1800 \verbunskip%
1801 {\begin{verbatim}
1802 \lscAsynRcv{e}
1803 \end{verbatim}}%
1804 \verbunskip%
1805 {\gray\begin{verbatim}
1806 \lscLine{hot}{0.5}
1807 \end{verbatim}}%
1808 \verbunskip%
1809 {\begin{verbatim}
1810 \lscInstSnd{f}
1811 \end{verbatim}}%
1812 \verbunskip%
1813 {\gray\begin{verbatim}
1814 \lscLine{hot}{1}
1815 \end{verbatim}}%
1816 \verbunskip%
1817 {\begin{verbatim}
1818 \lscInstRcv{f}
1819 \end{verbatim}}%
1820 \verbunskip%
1821 {\gray\begin{verbatim}
1822 \end{lscinst}
1823 \end{verbatim}}%
1824 \verbunskip%
1825 {\begin{verbatim}
1826 \lscAsyn{e}{hot}{E}
1827 \lscInst{f}{hot}{F}
1828 \end{verbatim}}%
1829 \verbunskip%
1830 {\gray\begin{verbatim}
1831 \end{Lsc}
1832 \end{verbatim}}%
1833 \end{minipage}
1834 \end{center}%>@>
1835
1836 Currently, the shape is fixed, i.e. the arrow extends to the right of the
1837 instance line and has ``armlength'' 0.5 pstricks units.
1838 %>@>
1839
1840
1841 \section{Conditions}
1842 \label{sec:cond}
1843
1844 Conditions can be rendered using an atomic command and a composite command.
1845 %
1846 The former command is provided for convenience for the frequent case that a
1847 condition spans only a single instance line
1848 \index{narrow condition}%
1849 (narrow condition).
1850 %
1851 In this case, all information, i.e. the location, the temperature, and the
1852 label, can be given immediately.
1853
1854 A wide condition may also span only one instance line but it may also cover
1855 more.
1856
1857 \subsection{Narrow Conditions}
1858 \label{sec:cond:narrow}
1859
1860 %<@<
1861 \index{lscCond@$\mlscCond$}%
1862 \begin{center}\fbox{%
1863 \mlscCond%
1864 \param{\this{$\mhot$}\orthat{$\mcold$}}%
1865 \param{\var{label}}
1866 }\end{center}
1867
1868 The \mlscCond{} command renders a condition kandis at the current position.
1869
1870 \begin{center}%<@<
1871 \begin{minipage}{0.45\textwidth}%
1872 \scalebox{0.9}{%
1873 \begin{Lsc}{none}{2}{3}
1874 \begin{lscinst}{Inst1}
1875 \lscLine{hot}{1}%
1876 \lscCond{hot}{$x = a$}%
1877 \lscLine{hot}{2}%
1878 \end{lscinst}
1879 \begin{lscinst}{Inst2}
1880 \lscLine{hot}{0.5}%
1881 \lscCond{cold}{\parbox{4em}{\centering$y = 0$ $\vee\ z = 0$}}%
1882 \lscLine{hot}{2.5}%
1883 \end{lscinst}
1884 \end{Lsc}}
1885 \end{minipage}%
1886 \hfill%
1887 \begin{minipage}{0.47\textwidth}%
1888 \small%
1889 {\gray\begin{verbatim}
1890 \begin{Lsc}{none}{1}{3}
1891 \begin{lscinst}{Inst1}
1892 \lscLine{hot}{1}%
1893 \end{verbatim}}%
1894 \verbunskip%
1895 {\begin{verbatim}
1896 \lscCond{hot}{$x = a$}%
1897 \end{verbatim}}%
1898 \verbunskip%
1899 {\gray\begin{verbatim}
1900 \lscLine{hot}{2}%
1901 \end{lscinst}
1902 \begin{lscinst}{Inst2}
1903 \lscLine{hot}{0.5}%
1904 \end{verbatim}}%
1905 \verbunskip%
1906 {\begin{verbatim}
1907 \lscCond{cold}{%
1908 \parbox{4em}{\centering%
1909 $y=0$ $\vee\ z=0$}}%
1910 \end{verbatim}}%
1911 \verbunskip%
1912 {\gray\begin{verbatim}
1913 \lscLine{hot}{2.5}%
1914 \end{lscinst}
1915 \end{Lsc}}
1916 \end{verbatim}}%
1917 \end{minipage}
1918 \end{center}%>@>
1919
1920 The size of the kandis scales with the size of \var{label}'s box.
1921 %
1922 This has the effect that it is rather low if \var{label} has neither over- nor
1923 underlength and it scales unproportionally if \var{label} has multiple lines.
1924 %
1925 The former issue can be addressed using \cmd{rule} or \cmd{phantom}, the
1926 latter will have to be addressed by a smarter kandis drawing macro within
1927 \lscsty{}.
1928
1929 \subsection{Wide Conditions}
1930 \label{sec:cond:wide}
1931
1932 %<@<
1933 \index{lscWidecondOn@$\mlscWidecondOn$}%
1934 \index{lscWidecondOff@$\mlscWidecondOff$}%
1935 \index{lscWidecond@$\mlscWidecond$}%
1936 \begin{center}\fbox{\parbox{15em}{
1937 \mlscWidecondOn%
1938 \param{\var{id}}%
1939 \newline
1940 \mlscWidecondOff%
1941 \param{\var{id}}%
1942 \newline
1943 \mlscWidecond%
1944 \param{\var{id}}%
1945 \param{\this{$\mhot$}\orthat{$\mcold$}}%
1946 \param{\var{label}}
1947 }}\end{center}
1948
1949 The \mlscWidecondOn{} and \mlscWidecondOff{} commands add locations to a wide
1950 condition.
1951 %
1952 They have to occur on exactly the same height and consecutively.
1953 %
1954 Use \mlscWidecondOn{} for those instances to which the condition applies and
1955 \mlscWidecondOff{} otherwise.
1956
1957 \begin{center}%<@<
1958 \begin{minipage}{0.5\textwidth}
1959 \scalebox{0.9}{%
1960 \pssetlength{\lscLocationWidth}{2.5}%
1961 \begin{Lsc}{none}{3}{3}
1962 \begin{lscinst}{Inst1}
1963 \lscLine{hot}{1}
1964 \lscWidecondOn{wc}
1965 \lscLine{hot}{2}
1966 \end{lscinst}
1967 \begin{lscinst}{Inst2}
1968 \lscLine{hot}{1}
1969 \lscWidecondOff{wc}
1970 \lscLine{hot}{2}
1971 \end{lscinst}
1972 \begin{lscinst}{Inst3}
1973 \lscLine{hot}{1}
1974 \lscWidecondOn{wc}
1975 \lscLine{hot}{2}
1976 \end{lscinst}
1977 \lscWidecond{wc}{hot}{$\qquad\quad x = 0$}
1978 \end{Lsc}}
1979 \end{minipage}
1980 \hfill
1981 \begin{minipage}{0.39\textwidth}%
1982 \small%
1983 {\gray\begin{verbatim}
1984 \pssetlength%
1985 {\lscLocationWidth}{2.5}%
1986 \begin{Lsc}{none}{3}{3}
1987 \begin{lscinst}{Inst1}
1988 \lscLine{hot}{1}
1989 \end{verbatim}}%
1990 \verbunskip%
1991 {\begin{verbatim}
1992 \lscWidecondOn{wc}
1993 \end{verbatim}}%
1994 \verbunskip%
1995 {\gray\begin{verbatim}
1996 \lscLine{hot}{2}
1997 \end{lscinst}
1998 \begin{lscinst}{Inst2}
1999 \lscLine{hot}{1}
2000 \end{verbatim}}%
2001 \verbunskip%
2002 {\begin{verbatim}
2003 \lscWidecondOff{wc}
2004 \end{verbatim}}%
2005 \verbunskip%
2006 {\gray\begin{verbatim}
2007 \lscLine{hot}{2}
2008 \end{lscinst}
2009 \begin{lscinst}{Inst3}
2010 \lscLine{hot}{1}
2011 \end{verbatim}}%
2012 \verbunskip%
2013 {\begin{verbatim}
2014 \lscWidecondOn{wc}
2015 \end{verbatim}}%
2016 \verbunskip%
2017 {\gray\begin{verbatim}
2018 \lscLine{hot}{2}
2019 \end{lscinst}
2020 \end{verbatim}}%
2021 \verbunskip%
2022 {\begin{verbatim}
2023 \lscWidecond{wc}{hot}%
2024 {$\qquad\quad x = 0$}
2025 \end{verbatim}}%
2026 \verbunskip%
2027 {\gray\begin{verbatim}
2028 \end{Lsc}
2029 \end{verbatim}}%
2030 \end{minipage}
2031 \end{center}%>@>
2032
2033 The \var{label} is set in the centre of the kandis. If the condition doesn't
2034 apply to the central location, one may need to add some offset like in the
2035 example above to avoid the instance line segment running through the label.
2036
2037 Note that the size of wide conditions is fixed, i.e. it does in particular not
2038 scale with the height of \var{label}'s box.
2039 %
2040 As a consequence, \var{label} should fit onto a single line.
2041 %>@>
2042
2043 \subsection{Colourful Conditions}
2044 \label{sec:cond:colour}
2045
2046 The appearance of
2047 \index{narrow condition}%
2048 \index{condition!narrow}%
2049 narrow conditions, and in particular the colour of its outline, cannot be
2050 easily manipulated because narrow conditions are ``scheduled'' and drawn when
2051 the next instance line segment is drawn (cf. Section~\ref{sec:simreg}).
2052 %
2053 Thus changing the colour of the outline applies to all elements which are
2054 drawn together with the instance line segment, in particular the instance line
2055 itself.
2056
2057 If
2058 \index{wide condition}%
2059 \index{condition!wide}%
2060 wide conditions are sufficient (cf. Section~\ref{sec:cond:wide}), their colour
2061 can be modified as shown in the following example.
2062
2063 \begin{center}%<@<
2064 \begin{minipage}{0.25\textwidth}%
2065 \scalebox{0.9}{%
2066 \let\lscWidecondOooginool\lscWidecond%
2067 \renewcommand{\lscWidecond}[3]{{%
2068 \ifthenelse{\equal{#2}{hot}}{%
2069 \psset{linecolor=red}}{%
2070 \psset{linecolor=blue}}%
2071 \lscWidecondOooginool{#1}{#2}{#3}}}
2072 \begin{Lsc}{none}{1}{4.5}
2073 \begin{lscinst}{Inst}
2074 \lscLine{hot}{1}%
2075 \lscWidecondOn{c}%
2076 \lscLine{hot}{1.5}%
2077 \lscWidecondOn{d}%
2078 \lscLine{hot}{2}%
2079 \end{lscinst}
2080 \lscWidecond{c}{hot}{$f = g$}%
2081 \lscWidecond{d}{cold}{$g = f$}%
2082 \end{Lsc}}
2083 \end{minipage}%
2084 \hfill%
2085 \begin{minipage}{0.575\textwidth}%
2086 \small%
2087 {\begin{verbatim}
2088 \let\lscWidecondOooginool\lscWidecond%
2089 \renewcommand{\lscWidecond}[3]{{%
2090 \ifthenelse{\equal{#2}{hot}}{%
2091 \psset{linecolor=red}}{%
2092 \psset{linecolor=blue}}%
2093 \lscWidecondOooginool{#1}{#2}{#3}}}
2094 \end{verbatim}}%
2095 \verbunskip%
2096 {\gray\begin{verbatim}
2097 \begin{Lsc}{none}{1}{4.5}
2098 \begin{lscinst}{Inst}
2099 \lscLine{hot}{1}%
2100 \lscWidecondOn{c}%
2101 \lscLine{hot}{1.5}%
2102 \lscWidecondOn{d}%
2103 \lscLine{hot}{2}%
2104 \end{lscinst}
2105 \lscWidecond{c}{hot}{$f = g$}%
2106 \lscWidecond{d}{cold}{$g = f$}%
2107 \end{Lsc}
2108 \end{verbatim}}%
2109 \end{minipage}
2110 \end{center}%>@>
2111 %>@>
2112
2113
2114 \section{Local Invariants}
2115 \label{sec:locinv}
2116
2117 %<@<
2118 \index{lscLocinvStart@$\mlscLocinvStart$}%
2119 \index{lscLocinvBegin@$\mlscLocinvBegin$}%
2120 \index{lscLocinvEnd@$\mlscLocinvEnd$}%
2121 \index{lscLocinv@$\mlscLocinv$}%
2122 \begin{center}\fbox{\parbox{0.875\textwidth}{
2123 \mlscLocinvStart%
2124 \param{\var{id}}%
2125 \newline
2126 \mlscLocinvBegin%
2127 \param{\var{id}}%
2128 \newline
2129 \mlscLocinvEnd%
2130 \param{\var{id}}%
2131 \newline
2132 \mlscLocinv%
2133 \optparam{\underline{\this{$\mr$}}\orthat{$\ml$}}%
2134 \param{\var{id}}%
2135 \param{\this{$\mincl$}\orthat{$\mexcl$}}%
2136 \param{\this{$\mincl$}\orthat{$\mexcl$}}%
2137 \param{\this{$\mhot$}\orthat{$\mcold$}}%
2138 \param{\var{label}}
2139 }}\end{center}
2140
2141 The commands \mlscLocinvBegin{} (or, synonymously, \mlscLocinvStart{}) and
2142 \mlscLocinvEnd{} mark the beginning and end position of local invariant
2143 \var{id}.
2144
2145 The \mlscLocinv{} command renders the local invariant \var{id}.
2146 %
2147 The position of the vertical line to which the kandis is connected can be
2148 controlled by the optional parameter (default: \mr{} (to the right)).
2149
2150 The third and fourth parameters select whether the ends are inclusive (\mincl)
2151 or exclusive (\mexcl).
2152 %
2153 Inclusive ends are rendered with a filled circle and exclusive ends with a
2154 non-filled circle (just like jumps are indicated in function graphs).
2155 %
2156 This is different from~\cite{Klose2003} where the kandis is rotated by 90
2157 degrees and inclusive ends are indicated by having the kandis end in a
2158 rectangular shape instead of triangular.
2159 %
2160 The drawback is that a both-inclusive local invariant looks like a rotated
2161 action box and doesn't resemble conditions at all.%
2162 \footnote{%
2163 And -- first of all -- it seemed easier to render the shape we chose.
2164 }
2165
2166 \begin{center}%<@<
2167 \begin{minipage}{0.5\textwidth}
2168 \scalebox{0.9}{%
2169 \begin{Lsc}{none}{2}{3}
2170 \begin{lscinst}{Inst1}
2171 \lscLocinvBegin{li}
2172 \lscLine{hot}{1}
2173 \begin{simregion}
2174 \lscLocinvStart{lj}
2175 \end{simregion}
2176 \lscLine{hot}{1}
2177 \lscLocinvEnd{li}
2178 \lscLine{hot}{1}
2179 \end{lscinst}
2180 \begin{lscinst}{Inst2}
2181 \lscLine{hot}{2}
2182 \lscLocinvEnd{lj}
2183 \lscLine{hot}{1}
2184 \end{lscinst}
2185 \lscLocinv[l]{li}{incl}{excl}{hot}{$x = 0$}
2186 \lscLocinv{lj}{excl}{incl}{cold}{$y = 0$}
2187 \end{Lsc}
2188 }%
2189 \end{minipage}
2190 \hfill
2191 \begin{minipage}{0.45\textwidth}%
2192 \small%
2193 {\gray\begin{verbatim}
2194 \begin{Lsc}{none}{2}{3}
2195 \begin{lscinst}{Inst1}
2196 \end{verbatim}}%
2197 \verbunskip%
2198 {\begin{verbatim}
2199 \lscLocinvBegin{li}
2200 \end{verbatim}}%
2201 \verbunskip%
2202 {\gray\begin{verbatim}
2203 \lscLine{hot}{1}
2204 \begin{simregion}
2205 \end{verbatim}}%
2206 \verbunskip%
2207 {\begin{verbatim}
2208 \lscLocinvStart{lj}
2209 \end{verbatim}}%
2210 \verbunskip%
2211 {\gray\begin{verbatim}
2212 \end{simregion}
2213 \lscLine{hot}{1}
2214 \end{verbatim}}%
2215 \verbunskip%
2216 {\begin{verbatim}
2217 \lscLocinvEnd{li}
2218 \end{verbatim}}%
2219 \verbunskip%
2220 {\gray\begin{verbatim}
2221 \lscLine{hot}{1}
2222 \end{lscinst}
2223 \begin{lscinst}{Inst2}
2224 \lscLine{hot}{2}
2225 \end{verbatim}}%
2226 \verbunskip%
2227 {\begin{verbatim}
2228 \lscLocinvEnd{lj}
2229 \end{verbatim}}%
2230 \verbunskip%
2231 {\gray\begin{verbatim}
2232 \lscLine{hot}{1}
2233 \end{lscinst}
2234 \end{verbatim}}%
2235 \verbunskip%
2236 {\begin{verbatim}
2237 \lscLocinv[l]{li}%
2238 {incl}{excl}{hot}{$x = 0$}
2239 \lscLocinv{lj}%
2240 {excl}{incl}{cold}{$y = 0$}
2241 \end{verbatim}}%
2242 \verbunskip%
2243 {\begin{verbatim}
2244 \end{Lsc}
2245 \end{verbatim}}%
2246 \end{minipage}
2247 \end{center}%>@>
2248
2249 In the example above, we used a simregion (cf. Section~\ref{sec:simreg}) to
2250 highlight the point where the local invariant connects to the instance line in
2251 lack of other elements.
2252 %
2253 Local invariants in the wild typically end at simultaneous regions with other
2254 elements as the LSC's automaton becomes non-deterministic otherwise.
2255
2256 Note that the local invariant kandis behaves like that of narrow conditions.
2257 %
2258 That is, it looks too low if \var{label} has no over- or underlength and it
2259 scales unproportionally with multiline \var{label}s (cf.
2260 Section~\ref{sec:cond:narrow}).
2261
2262 Further note that the
2263 \index{box boundary}%
2264 box boundary of the LSC doesn't consider the amounts by which local invariants
2265 kandis stand out to the left or the right.
2266 %
2267 One has to explicitly treat kandis overlapping other text by adding vertical
2268 space to the left or the right.%
2269 \footnote{%
2270 Technically the problem is that the box boundary is determined when the
2271 \mLsc{} environment is opened. At this point in time the extension of local
2272 invariants is not yet known. And the dimension cannot be changed afterwards
2273 (as far as the author knows).
2274 }
2275
2276 \index{lscLocinvOffset@$\mlscLocinvOffset$}%
2277 \begin{center}\fbox{
2278 \mlscLocinvOffset
2279 }\end{center}
2280
2281 The length \mlscLocinvOffset{} (default: 0) is added to the horizontal
2282 distance between instance line and local invariant.
2283 %
2284 To move the local invariant further outwards, set it to a positive number
2285 and to move it further inwards, set it to a negative number.
2286
2287 \begin{center}%<@<
2288 \begin{minipage}{0.45\textwidth}
2289 \scalebox{0.9}{%
2290 \begin{Lsc}{none}{2}{3}
2291 \begin{lscinst}{Inst1}
2292 \lscLocinvBegin{li}
2293 \lscLine{hot}{1}
2294 \begin{simregion}
2295 \lscLocinvStart{lj}
2296 \end{simregion}
2297 \lscLine{hot}{1}
2298 \lscLocinvEnd{li}
2299 \lscLine{hot}{1}
2300 \end{lscinst}
2301 \begin{lscinst}{Inst2}
2302 \lscLine{hot}{2}
2303 \lscLocinvEnd{lj}
2304 \lscLine{hot}{1}
2305 \end{lscinst}
2306 \pssetlength{\lscLocinvOffset}{0.5}
2307 \lscLocinv[l]{li}{incl}{excl}{hot}{$x = 0$}
2308 \pssetlength{\lscLocinvOffset}{-0.5}
2309 \lscLocinv{lj}{excl}{incl}{cold}{$y = 0$}
2310 \end{Lsc}
2311 }%
2312 \end{minipage}
2313 \hfill
2314 \begin{minipage}{0.52\textwidth}%
2315 \small%
2316 {\gray\begin{verbatim}
2317 \begin{Lsc}{none}{2}{3}
2318 \begin{lscinst}{Inst1}
2319 \end{verbatim}}%
2320 \verbunskip%
2321 {\begin{verbatim}
2322 \lscLocinvBegin{li}
2323 \end{verbatim}}%
2324 \verbunskip%
2325 {\gray\begin{verbatim}
2326 \lscLine{hot}{1}
2327 \begin{simregion}
2328 \end{verbatim}}%
2329 \verbunskip%
2330 {\begin{verbatim}
2331 \lscLocinvStart{lj}
2332 \end{verbatim}}%
2333 \verbunskip%
2334 {\gray\begin{verbatim}
2335 \end{simregion}
2336 \lscLine{hot}{1}
2337 \end{verbatim}}%
2338 \verbunskip%
2339 {\begin{verbatim}
2340 \lscLocinvEnd{li}
2341 \end{verbatim}}%
2342 \verbunskip%
2343 {\gray\begin{verbatim}
2344 \lscLine{hot}{1}
2345 \end{lscinst}
2346 \begin{lscinst}{Inst2}
2347 \lscLine{hot}{2}
2348 \end{verbatim}}%
2349 \verbunskip%
2350 {\begin{verbatim}
2351 \lscLocinvEnd{lj}
2352 \end{verbatim}}%
2353 \verbunskip%
2354 {\gray\begin{verbatim}
2355 \lscLine{hot}{1}
2356 \end{lscinst}
2357 \end{verbatim}}%
2358 \verbunskip%
2359 {\begin{verbatim}
2360 \pssetlength{\lscLocinvOffset}{0.5}
2361 \lscLocinv[l]{li}%
2362 {incl}{excl}{hot}{$x = 0$}
2363 \pssetlength{\lscLocinvOffset}{-0.5}
2364 \lscLocinv{lj}%
2365 {excl}{incl}{cold}{$y = 0$}
2366 \end{verbatim}}%
2367 \verbunskip%
2368 {\begin{verbatim}
2369 \end{Lsc}
2370 \end{verbatim}}%
2371 \end{minipage}
2372 \end{center}%>@>
2373
2374 The vertical position of the kandis is fixed. It is always drawn centred
2375 between the beginning and end point.
2376 %>@>
2377
2378
2379 \section{Timer Sets, Timer Resets, and Timeouts}
2380 \label{sec:tset}
2381 \label{sec:treset}
2382 \label{sec:tout}
2383
2384 %<@<
2385 \index{lscTimerSet@$\mlscTimerSet$}%
2386 \index{lscTimerReset@$\mlscTimerReset$}%
2387 \index{lscTimeout@$\mlscTimeout$}%
2388 \begin{center}\fbox{\parbox{0.875\textwidth}{
2389 \mlscTimerSet%
2390 \optparam{\underline{\this{$\mr$}}\orthat{$\ml$}}%
2391 \param{\var{label}}%
2392 \param{\var{duration}}%
2393 \newline
2394 \mlscTimerReset%
2395 \optparam{\underline{\this{$\mr$}}\orthat{$\ml$}}%
2396 \param{\var{label}}%
2397 \newline
2398 \mlscTimeout%
2399 \optparam{\underline{\this{$\mr$}}\orthat{$\ml$}}%
2400 \param{\var{label}}%
2401 }}\end{center}
2402
2403 The atomic commands \mlscTimerSet{}, \mlscTimerReset{}, and \mlscTimeout{}
2404 render the timer symbols.
2405 %
2406 The position of the hourglass symbols can be controlled by the optional
2407 parameter (default: \mr{} (to the right)).
2408
2409 The parameter \var{label} is not an identifier as used with composite commands
2410 but arbitrary text. To connect, e.g., timer setting and timeout they should
2411 obtain the same \var{label}.
2412
2413 A timer type is currently not explicitly supported. It may be written as part
2414 of the \var{label}.
2415
2416 \begin{center}%<@<
2417 \begin{minipage}{0.4\textwidth}
2418 \scalebox{0.9}{%
2419 \begin{Lsc}{none}{1}{4}
2420 \begin{lscinst}{Inst}
2421 \lscLine{hot}{0.75}
2422 \lscTimerSet{$t$ : superstep}{3}
2423 \lscLine{hot}{1}
2424 \lscTimerReset[l]{$t$}
2425 \lscLine{hot}{1}
2426 \lscTimeout{$t$}
2427 \lscLine{hot}{1.25}
2428 \end{lscinst}
2429 \end{Lsc}
2430 }%
2431 \end{minipage}
2432 \hfill
2433 \begin{minipage}{0.5\textwidth}%
2434 \small%
2435 {\gray\begin{verbatim}
2436 \begin{Lsc}{none}{1}{4}
2437 \begin{lscinst}{Inst}
2438 \lscLine{hot}{0.75}
2439 \end{verbatim}}%
2440 \verbunskip%
2441 {\begin{verbatim}
2442 \lscTimerSet{$t$ : superstep}{3}
2443 \end{verbatim}}%
2444 \verbunskip%
2445 {\gray\begin{verbatim}
2446 \lscLine{hot}{1}
2447 \end{verbatim}}%
2448 \verbunskip%
2449 {\begin{verbatim}
2450 \lscTimerReset[l]{$t$}
2451 \end{verbatim}}%
2452 \verbunskip%
2453 {\gray\begin{verbatim}
2454 \lscLine{hot}{1}
2455 \end{verbatim}}%
2456 \verbunskip%
2457 {\begin{verbatim}
2458 \lscTimeout{$t$}
2459 \end{verbatim}}%
2460 \verbunskip%
2461 {\gray\begin{verbatim}
2462 \lscLine{hot}{1.25}
2463 \end{lscinst}
2464 \end{Lsc}
2465 \end{verbatim}}%
2466 \end{minipage}
2467 \end{center}%>@>
2468 %>@>
2469
2470
2471 \section{Actions}
2472 \label{sec:act}
2473
2474 %<@<
2475 \index{lscAct@$\mlscAct$}%
2476 \begin{center}\fbox{
2477 \mlscAct%
2478 \param{\var{label}}%
2479 }\end{center}
2480
2481 The \lscAct{} atomic command draws a rectangular action symbol annotated with
2482 \var{label}.
2483
2484 \begin{center}%<@<
2485 \begin{minipage}{0.3\textwidth}
2486 \scalebox{0.9}{%
2487 \begin{Lsc}{none}{1}{3}
2488 \begin{lscinst}{Inst}
2489 \lscLine{hot}{1}
2490 \lscAct{Aaand -- action!}
2491 \lscLine{hot}{2}
2492 \end{lscinst}
2493 \end{Lsc}
2494 }%
2495 \end{minipage}
2496 \hfill
2497 \begin{minipage}{0.40\textwidth}%
2498 \small%
2499 {\gray\begin{verbatim}
2500 \begin{Lsc}{none}{1}{3}
2501 \begin{lscinst}{Inst}
2502 \lscLine{hot}{1}
2503 \end{verbatim}}%
2504 \verbunskip%
2505 {\begin{verbatim}
2506 \lscAct{Aaand -- action!}
2507 \end{verbatim}}%
2508 \verbunskip%
2509 {\gray\begin{verbatim}
2510 \lscLine{hot}{2}
2511 \end{lscinst}
2512 \end{Lsc}
2513 \end{verbatim}}%
2514 \end{minipage}
2515 \end{center}%>@>
2516 %>@>
2517
2518
2519 \section{Self Destructions}
2520 \label{sec:kill}
2521
2522 %<@<
2523 \index{lscKill@$\mlscKill$}%
2524 \begin{center}\fbox{
2525 \mlscKill%
2526 }\end{center}
2527
2528 The atomic \mlscKill{} command draws a cross at the current position to
2529 indicate
2530 \index{termination}%
2531 termination of the instance.
2532 %
2533 It is typically not followed by any more \mlscLine{} commands.
2534
2535 There is no explicit
2536 \index{deletion arrow}%
2537 deletion arrow (like there is a creation arrow) since instantaneous messages
2538 may be used for this purpose.
2539
2540 \begin{center}%<@<
2541 \begin{minipage}{0.5\textwidth}
2542 \scalebox{0.9}{%
2543 \begin{Lsc}{none}{2}{3}
2544 \begin{lscinst}[SD]{Inst1}
2545 \lscLine{hot}{1.5}
2546 \lscInstSnd{rip}
2547 \lscLine{hot}{1}
2548 \lscKill
2549 \end{lscinst}
2550 \begin{lscinst}[SD]{Inst2}
2551 \lscLine{hot}{1.5}
2552 \lscInstRcv{rip}
2553 \lscKill
2554 \end{lscinst}
2555 \lscInst{rip}{hot}{RIP}
2556 \end{Lsc}
2557 }%
2558 \end{minipage}
2559 \hfill
2560 \begin{minipage}{0.39\textwidth}%
2561 \small%
2562 {\gray\begin{verbatim}
2563 \begin{Lsc}{none}{2}{3}
2564 \begin{lscinst}[SD]{Inst1}
2565 \lscLine{hot}{1.5}
2566 \lscInstSnd{rip}
2567 \lscLine{hot}{1}
2568 \end{verbatim}}%
2569 \verbunskip%
2570 {\begin{verbatim}
2571 \lscKill
2572 \end{verbatim}}%
2573 \verbunskip%
2574 {\gray\begin{verbatim}
2575 \end{lscinst}
2576 \begin{lscinst}[SD]{Inst2}
2577 \lscLine{hot}{1.5}
2578 \lscInstRcv{rip}
2579 \end{verbatim}}%
2580 \verbunskip%
2581 {\begin{verbatim}
2582 \lscKill
2583 \end{verbatim}}%
2584 \verbunskip%
2585 {\gray\begin{verbatim}
2586 \end{lscinst}
2587 \lscInst{rip}{hot}{RIP}
2588 \end{Lsc}
2589 \end{verbatim}}%
2590 \end{minipage}
2591 \end{center}%>@>
2592 %>@>
2593
2594
2595 \section{Coregions}
2596 \label{sec:coreg}
2597
2598 %<@<
2599 \index{coregion@$\mcoregion$}%
2600 \begin{center}\fbox{%
2601 \mbegin{coregion}%
2602 \optparam{\underline{\this{$\ml$}}\orthat{$\mr$}}%
2603 \dots
2604 \mend{coregion}
2605 }\end{center}
2606
2607 The elements and instance line segments enclosed in a \mcoregion{} environment
2608 are marked with a parallel dotted line to indicate that they form a
2609 \index{coregion}%
2610 coregion.
2611 %
2612 The optional parameter controls whether the line appears to the left (\ml{},
2613 the default) or to the right (\mr) of the instance line.
2614 %
2615 \mcoregion{} environments shall not be nested.
2616
2617 \begin{center}%<@<
2618 \begin{minipage}{0.45\textwidth}%
2619 \scalebox{0.9}{%
2620 \begin{Lsc}{none}{2}{3}
2621 \begin{lscinst}{Inst1}
2622 \lscLine{hot}{1}%
2623 \lscInstSnd{e}%
2624 \lscLine{hot}{1}%
2625 \lscInstRcv{f}%
2626 \lscLine{hot}{1}%
2627 \end{lscinst}
2628 %
2629 \begin{lscinst}{Inst2}
2630 \lscLine{hot}{1}%
2631 \begin{coregion}[r]
2632 \lscInstRcv{e}%
2633 \lscLine{hot}{0.5}%
2634 \lscInstSnd{f}%
2635 \psset{linecolor=red}
2636 \end{coregion}
2637 \lscLine{hot}{1.5}%
2638 \end{lscinst}
2639 %
2640 \lscInst{e}{hot}{E}%
2641 \lscInst{f}{cold}{F}%
2642 \end{Lsc}}
2643 \end{minipage}%
2644 \hfill%
2645 \begin{minipage}{0.49\textwidth}%
2646 \small%
2647 {\gray\begin{verbatim}
2648 \begin{Lsc}{none}{2}{3}
2649 \begin{lscinst}{Inst1}
2650 \lscLine{hot}{1}\lscInstSnd{e}%
2651 \lscLine{hot}{1}\lscInstRcv{f}%
2652 \lscLine{hot}{1}%
2653 \end{lscinst}
2654 \begin{lscinst}{Inst2}
2655 \lscLine{hot}{1}%
2656 \end{verbatim}}%
2657 \verbunskip%
2658 {\begin{verbatim}
2659 \begin{coregion}[r]
2660 \end{verbatim}}%
2661 \verbunskip%
2662 {\gray\begin{verbatim}
2663 \lscInstRcv{e}%
2664 \lscLine{hot}{0.5}%
2665 \lscInstSnd{f}
2666 \end{verbatim}}%
2667 \verbunskip%
2668 {\begin{verbatim}
2669 \psset{linecolor=red}
2670 \end{coregion}
2671 \end{verbatim}}%
2672 \verbunskip%
2673 {\gray\begin{verbatim}
2674 \lscLine{hot}{1.5}%
2675 \end{lscinst}
2676 \lscInst{e}{hot}{E}%
2677 \lscInst{f}{cold}{F}%
2678 \end{Lsc}}
2679 \end{verbatim}}%
2680 \end{minipage}
2681 \end{center}%>@>
2682
2683 The \mcoregion{} environment doesn't set the line's colour so it can be
2684 manipulated using \cmd{psset}.
2685 %
2686 But it does set the width to ensure that the dotted line is noticeable. To
2687 change the width one may temporary redefine the internal length
2688 \index{lsccoregwidth@$\cmd{lsc\AT{}coregwidth}$}%
2689 \cmd{lsc@coregwidth}.
2690
2691 The coregion line is drawn when the environment is closed. This has the
2692 (not so nice) effect that the line lies above condition kandis, action boxes
2693 etc. So currently coregions look best when applied to message ends.
2694 %>@>
2695
2696
2697 \section{Simultaneous Regions}
2698 \label{sec:simreg}
2699
2700 %<@<
2701 \index{simregion@$\msimregion$}%
2702 \begin{center}\fbox{%
2703 \mbegin{simregion}%
2704 \optparam{\underline{\this{$\mb$}}\orthat{$\mf$}}%
2705 \dots
2706 \mend{simregion}
2707 }\end{center}
2708
2709 The elements enclosed in a \msimregion{} environment are marked with a large
2710 dot to explicitly indicate that they lie in a
2711 \index{simultaneous region}%
2712 simultaneous region.
2713 %
2714 \index{b@$\mb$}%
2715 The optional parameter controls whether the dot appears behind (\mb{}, the
2716 \index{f@$\mf$}%
2717 default) or in front of (\mf) the elements.
2718 %
2719 \msimregion{} environments shall not be nested and shall not comprise instance
2720 line segments.
2721
2722 \begin{center}%<@<
2723 \begin{minipage}{0.5\textwidth}
2724 \scalebox{0.9}{%
2725 \begin{Lsc}{none}{2}{3}
2726 \begin{lscinst}{Inst1}
2727 \lscLine{hot}{0.75}
2728 \lscInstSnd{e}
2729 \lscLine{hot}{1}
2730 \begin{simregion}
2731 \lscInstRcv{f}
2732 \lscCond{hot}{$x=0$}
2733 \end{simregion}
2734 \lscLine{hot}{1.25}
2735 \end{lscinst}
2736 \begin{lscinst}{Inst2}
2737 \lscLine{hot}{0.75}
2738 \begin{simregion}[f]
2739 \lscCond{hot}{$y=0$}
2740 \lscInstRcv{e}
2741 \end{simregion}
2742 \lscLine{hot}{1}
2743 \lscInstSnd{f}
2744 \lscLine{hot}{1.25}
2745 \end{lscinst}
2746 \lscInst{e}{hot}{E}
2747 \lscInst{f}{hot}{F}
2748 \end{Lsc}
2749 }%
2750 \end{minipage}
2751 \hfill
2752 \begin{minipage}{0.36\textwidth}%
2753 \small%
2754 {\gray\begin{verbatim}
2755 \begin{Lsc}{none}{2}{3}
2756 \begin{lscinst}{Inst1}
2757 \lscLine{hot}{0.75}
2758 \lscInstSnd{e}
2759 \lscLine{hot}{1}
2760 \end{verbatim}}%
2761 \verbunskip%
2762 {\begin{verbatim}
2763 \begin{simregion}
2764 \end{verbatim}}%
2765 \verbunskip%
2766 {\gray\begin{verbatim}
2767 \lscInstRcv{f}
2768 \lscCond{hot}{$x=0$}
2769 \end{verbatim}}%
2770 \verbunskip%
2771 {\begin{verbatim}
2772 \end{simregion}
2773 \end{verbatim}}%
2774 \verbunskip%
2775 {\gray\begin{verbatim}
2776 \lscLine{hot}{1.25}
2777 \end{lscinst}
2778 \begin{lscinst}{Inst2}
2779 \lscLine{hot}{0.75}
2780 \end{verbatim}}%
2781 \verbunskip%
2782 {\begin{verbatim}
2783 \begin{simregion}[f]
2784 \end{verbatim}}%
2785 \verbunskip%
2786 {\gray\begin{verbatim}
2787 \lscInstRcv{e}
2788 \lscCond{hot}{$y=0$}
2789 \end{verbatim}}%
2790 \verbunskip%
2791 {\begin{verbatim}
2792 \end{simregion}
2793 \end{verbatim}}%
2794 \verbunskip%
2795 {\begin{verbatim}
2796 \lscLine{hot}{1}
2797 \lscInstSnd{f}
2798 \lscLine{hot}{1.25}
2799 \end{lscinst}
2800 \lscInst{e}{hot}{E}
2801 \lscInst{f}{hot}{F}
2802 \end{Lsc}
2803 \end{verbatim}}%
2804 \end{minipage}
2805 \end{center}%>@>
2806
2807 Note that the order of elements (except for cuts) of different kinds in a
2808 simultaneous region is not significant.
2809 %
2810 The
2811 \index{drawing order}%
2812 drawing order is (from bottom to top):
2813 %
2814 \begin{enumerate}
2815 \item
2816 \index{simultaneous region}%
2817 simultaneous region dot, if it should go into the background
2818 \item
2819 white background of
2820 \index{wide condition}%
2821 wide condition behind the instance line
2822 (\mlscWidecondOn{})
2823 \item
2824 white background of
2825 \index{wide condition}%
2826 wide condition in front of the instance line
2827 (\mlscWidecondOff{})
2828 \item
2829 \index{action}%
2830 action or
2831 \index{narrow condition}%
2832 narrow condition
2833 \item
2834 \index{timer set}%
2835 timer set,
2836 \index{timer reset}%
2837 reset, or
2838 \index{timeout}%
2839 timeout
2840 \item
2841 \index{atom}%
2842 atom (cf. Section~\ref{sec:tech:atom})
2843 \item
2844 \index{simultaneous region}%
2845 simultaneous region dot, if it should go into the foreground
2846 \end{enumerate}
2847
2848 Per simregion, at most one action or narrow condition can be drawn. If one
2849 really needs to put one above the other (typically sacrificing readability)
2850 one may use instance line segments of length 0. Two actions or narrow
2851 conditions can also be stacked one above the other using a manually tailored
2852 instance line segment in between and a foreground simregion circle like in the
2853 following example.
2854
2855 \begin{center}%<@<
2856 \begin{minipage}{0.3\textwidth}
2857 \scalebox{0.9}{%
2858 \begin{Lsc}{none}{1}{3}
2859 \begin{lscinst}{Inst}
2860 \lscLine{hot}{1}
2861 \lscCond{hot}{x=0}
2862 \lscLine{hot}{0.5}
2863 \begin{simregion}[f]
2864 \lscCond{hot}{y=0}
2865 \end{simregion}
2866 \lscLine{hot}{1.5}
2867 \end{lscinst}
2868 \end{Lsc}
2869 }%
2870 \end{minipage}
2871 \hfill
2872 \begin{minipage}{0.36\textwidth}%
2873 \small%
2874 {\gray\begin{verbatim}
2875 \begin{Lsc}{none}{1}{3}
2876 \begin{lscinst}{Inst}
2877 \lscLine{hot}{1}
2878 \end{verbatim}}%
2879 \verbunskip%
2880 {\begin{verbatim}
2881 \lscCond{hot}{x=0}
2882 \lscLine{hot}{0.5}
2883 \begin{simregion}[f]
2884 \lscCond{hot}{y=0}
2885 \end{simregion}
2886 \end{verbatim}}%
2887 \verbunskip%
2888 {\gray\begin{verbatim}
2889 \lscLine{hot}{1.5}
2890 \end{lscinst}
2891 \end{Lsc}
2892 \end{verbatim}}%
2893 \end{minipage}
2894 \end{center}%>@>
2895
2896 The order of the finalising commands of composite commands and cuts \emph{is}
2897 significant. They are drawn immediately, the one occurring first is drawn
2898 first.
2899 %>@>
2900
2901
2902 \section{Technicalities}
2903 \label{sec:tech}
2904
2905 The \lscsty{} package is in particular used to describe the semantics of LSCs
2906 which depends on the notion of atoms and cuts, i.e. sets of atoms.
2907 %
2908 There commands introduced in this section are mainly intended to be able to
2909 illustrate such descriptions. For example, to show the position of a cut.
2910
2911 \subsection{Atoms}
2912 \label{sec:tech:atom}
2913
2914 %<@<
2915 \index{lscAtom@$\mlscAtom$}%
2916 \index{lscLabelAtom@$\mlscLabelAtom$}%
2917 \index{lscLabelAtomAt@$\mlscLabelAtomAt$}%
2918 \begin{center}\fbox{\parbox{0.55\textwidth}{%
2919 \mlscAtom%
2920 \param{\var{id}}%
2921 \newline
2922 \mlscLabelAtomAt%
2923 \param{\var{angle}}%
2924 \param{\var{id}}%
2925 \param{\var{label}}%
2926 \newline
2927 \mlscLabelAtom%
2928 \optparam{\underline{\this{$\mra$}}\orthat{$\mrb$}\orthat{$\mla$}\orthat{$\mlb$}}%
2929 \param{\var{id}}%
2930 \param{\var{label}}%
2931 }}\end{center}
2932
2933 The \mlscAtom{} command marks the (atom(s) at the) current location with a
2934 dashed circle and equips it with an identity \var{id}.
2935 %
2936 This identity may then be used to label the
2937 \index{atom mark}%
2938 atom mark.
2939
2940 The command \mlscLabelAtomAt{} puts the \var{label} at position \var{angle}
2941 relative to the atom mark with identity \var{id}.
2942
2943 The command \mlscLabelAtom{} is a shortcut for the most common angles.
2944 %
2945 \index{ra@$\mra$}
2946 The default is $-45$ degrees (\mra{} (right above)), the other options are
2947 \index{rb@$\mrb$}
2948 \index{la@$\mla$}
2949 $-135$ degrees (\mrb{} (right below)), $45$ degrees (\mla{} (left above)), and
2950 \index{lb@$\mlb$}
2951 $135$ degrees (\mlb{} (left below)).
2952
2953 \begin{center}%<@<
2954 \begin{minipage}{0.3\textwidth}
2955 \scalebox{0.9}{%
2956 \begin{Lsc}{none}{2}{4}
2957 \begin{lscinst}{Inst}
2958 \lscLine{hot}{0.5}
2959 \lscAtom{aa}
2960 \lscLine{hot}{1.5}
2961 \lscAtom{ab}
2962 \lscLine{hot}{1}
2963 \lscAtom{ac}
2964 \lscLine{hot}{1}
2965 \end{lscinst}
2966 \lscLabelAtom{ab}{right above}
2967 \lscLabelAtomAt{93}{ac}{other}
2968 \end{Lsc}
2969 }%
2970 \end{minipage}
2971 \hfill
2972 \begin{minipage}{0.45\textwidth}%
2973 \small%
2974 {\gray\begin{verbatim}
2975 \begin{Lsc}{none}{2}{4}
2976 \begin{lscinst}{Inst}
2977 \lscLine{hot}{0.5}
2978 \end{verbatim}}%
2979 \verbunskip%
2980 {\begin{verbatim}
2981 \lscAtom{aa}
2982 \end{verbatim}}%
2983 \verbunskip%
2984 {\gray\begin{verbatim}
2985 \lscLine{hot}{1.5}
2986 \end{verbatim}}%
2987 \verbunskip%
2988 {\begin{verbatim}
2989 \lscAtom{ab}
2990 \end{verbatim}}%
2991 \verbunskip%
2992 {\gray\begin{verbatim}
2993 \lscLine{hot}{1}
2994 \end{verbatim}}%
2995 \verbunskip%
2996 {\begin{verbatim}
2997 \lscAtom{ac}
2998 \end{verbatim}}%
2999 \verbunskip%
3000 {\gray\begin{verbatim}
3001 \lscLine{hot}{1}
3002 \end{lscinst}
3003 \end{verbatim}}%
3004 \verbunskip%
3005 {\begin{verbatim}
3006 \lscLabelAtom{ab}{right above}
3007 \lscLabelAtomAt{93}{ac}{other}
3008 \end{verbatim}}%
3009 \verbunskip%
3010 {\gray\begin{verbatim}
3011 \end{Lsc}
3012 \end{verbatim}}%
3013 \end{minipage}
3014 \end{center}%>@>
3015 %>@>
3016
3017 \subsection{Cuts}
3018 \label{sec:tech:cut}
3019
3020 %<@<
3021 \index{lscCut@$\mlscCut$}%
3022 \index{lscSetCutColour@$\mlscSetCutColour$}%
3023 \index{lscSetCutLinestyle@$\mlscSetCutLinestyle$}%
3024 \index{lscSetCutWidth@$\mlscSetCutWidth$}%
3025 \begin{center}\fbox{\parbox{0.55\textwidth}{%
3026 \mlscCut%
3027 \newline
3028 \mlscSetCutColour%
3029 \param{\var{colour}}%
3030 \newline
3031 \mlscSetCutLinestyle%
3032 \param{\var{linestyle}}%
3033 \newline
3034 \mlscSetCutWidth%
3035 \param{\var{length}}%
3036 }}\end{center}
3037
3038 The \mlscCut{} atomic command draws a vertical line at the current position
3039 indicating the location of the
3040 \index{cut}%
3041 cut on the current instance line. The line is connected to the last existing
3042 cut on the left.
3043 %
3044 There shall not be more than one \mlscCut{} command per instance line.
3045
3046 The command \mlscSetCutColour{} sets the colour to the colour name
3047 \var{colour} (default: red), \mlscSetCutLinestyle{} sets the line style to
3048 \var{linestyle} (default: solid), and \mlscSetCutWidth{} sets the width to
3049 \var{length} (default: 3pt).
3050
3051 \begin{center}%<@<
3052 \begin{minipage}{0.45\textwidth}%
3053 \scalebox{0.9}{%
3054 \begin{Lsc}{none}{2}{3}
3055 \begin{lscinst}{Inst1}
3056 \lscLine{hot}{1}%
3057 \lscAsynSnd{e}%
3058 \lscCut%
3059 \lscLine{hot}{2}%
3060 \end{lscinst}
3061 %
3062 \begin{lscinst}{Inst2}
3063 \lscCut%
3064 \lscLine{hot}{2}%
3065 \lscAsynRcv{e}%
3066 \lscLine{hot}{1}%
3067 \end{lscinst}
3068 %
3069 \lscAsyn{e}{hot}{E}%
3070 \end{Lsc}}
3071 \end{minipage}%
3072 \hfill%
3073 \begin{minipage}{0.49\textwidth}%
3074 \small%
3075 {\gray\begin{verbatim}
3076 \begin{Lsc}{none}{2}{3}
3077 \begin{lscinst}{Inst1}
3078 \lscLine{hot}{1}%
3079 \end{verbatim}}%
3080 \verbunskip%
3081 {\begin{verbatim}
3082 \lscCut%
3083 \end{verbatim}}%
3084 \verbunskip%
3085 {\gray\begin{verbatim}
3086 \lscAsynSnd{e}%
3087 \lscLine{hot}{2}%
3088 \end{lscinst}
3089 \begin{lscinst}{Inst2}
3090 \end{verbatim}}%
3091 \verbunskip%
3092 {\begin{verbatim}
3093 \lscCut%
3094 \end{verbatim}}%
3095 \verbunskip%
3096 {\gray\begin{verbatim}
3097 \lscLine{hot}{1}%
3098 \lscAsynRcv{e}%
3099 \psset{linecolor=red}
3100 \end{coregion}
3101 \lscLine{hot}{1.5}%
3102 \end{lscinst}
3103 \lscAsyn{e}{hot}{E}%
3104 \end{Lsc}}
3105 \end{verbatim}}%
3106 \end{minipage}
3107 \end{center}%>@>
3108
3109 \index{lscNamedCut@$\mlscNamedCut$}%
3110 \index{lscSetNamedCutColour@$\mlscSetNamedCutColour$}%
3111 \index{lscSetNamedCutLinestyle@$\mlscSetNamedCutLinestyle$}%
3112 \index{lscSetNamedCutWidth@$\mlscSetNamedCutWidth$}%
3113 \begin{center}\fbox{\parbox{0.55\textwidth}{%
3114 \mlscNamedCut%
3115 \param{\var{id}}%
3116 \newline
3117 \mlscSetNamedCutColour%
3118 \param{\var{id}}%
3119 \param{\var{colour}}%
3120 \newline
3121 \mlscSetNamedCutLinestyle%
3122 \param{\var{id}}%
3123 \param{\var{linestyle}}%
3124 \newline
3125 \mlscSetNamedCutWidth%
3126 \param{\var{id}}%
3127 \param{\var{length}}%
3128 }}\end{center}
3129
3130 To allow
3131 \index{cut!multiple}%
3132 multiple cuts in a single LSC, there is a corresponding set of commands for
3133 \index{cut!named}%
3134 named cuts.
3135 %
3136 They take an \var{id} as first parameter.
3137
3138 If not set explicitly, the colour, line style, and width of named cuts is
3139 inherited from the general cut colour, line style, and width as set by
3140 \mlscSetCutColour{}, \mlscSetCutLinestyle{}, and \mlscSetCutWidth{}.
3141
3142 \begin{center}%<@<
3143 \begin{minipage}{0.45\textwidth}%
3144 \scalebox{0.9}{%
3145 \lscSetCutColour{lightgray}
3146 \lscSetNamedCutWidth{Xb}{1.5pt}
3147 \lscSetNamedCutColour{Xc}{green}
3148 \lscSetNamedCutColour{Xb}{blue}
3149 \begin{Lsc}{none}{2}{3}
3150 \begin{lscinst}{Inst1}
3151 \lscNamedCut{Xa}%
3152 \lscLine{hot}{0.95}%
3153 \lscNamedCut{Xb}%
3154 \lscLine{hot}{0.05}
3155 \lscAsynSnd{e}%
3156 \lscLine{hot}{0.05}
3157 \lscNamedCut{Xc}%
3158 \lscLine{hot}{1.45}%
3159 \lscNamedCut{Xd}%
3160 \lscLine{hot}{0.5}%
3161 \end{lscinst}
3162 %
3163 \begin{lscinst}{Inst2}
3164 \lscNamedCut{Xa}%
3165 \lscLine{hot}{0.05}%
3166 \lscNamedCut{Xb}%
3167 \lscLine{hot}{1.95}%
3168 \lscNamedCut{Xc}%
3169 \lscAsynRcv{e}%
3170 \lscLine{hot}{0.5}%
3171 \lscNamedCut{Xd}%
3172 \lscLine{hot}{0.5}%
3173 \end{lscinst}
3174 %
3175 \lscAsyn{e}{hot}{E}%
3176 \end{Lsc}}
3177 \end{minipage}%
3178 \hfill%
3179 \begin{minipage}{0.45\textwidth}%
3180 \small%
3181 {\begin{verbatim}
3182 \lscSetCutColour{lightgray}
3183 \lscSetNamedCutWidth{Xb}{1.5pt}
3184 \lscSetNamedCutColour{Xc}{green}
3185 \lscSetNamedCutColour{Xb}{blue}
3186 \end{verbatim}}%
3187 \verbunskip%
3188 {\gray\begin{verbatim}
3189 \begin{Lsc}{none}{2}{3}
3190 \begin{lscinst}{Inst1}
3191 \end{verbatim}}%
3192 \verbunskip%
3193 {\begin{verbatim}
3194 \lscNamedCut{Xa}%
3195 \end{verbatim}}%
3196 \verbunskip%
3197 {\gray\begin{verbatim}
3198 \lscLine{hot}{0.95}%
3199 \end{verbatim}}%
3200 \verbunskip%
3201 {\begin{verbatim}
3202 \lscNamedCut{Xb}%
3203 \end{verbatim}}%
3204 \verbunskip%
3205 {\gray\begin{verbatim}
3206 \lscLine{hot}{0.05}
3207 \lscAsynSnd{e}%
3208 \lscLine{hot}{0.05}
3209 \end{verbatim}}%
3210 \verbunskip%
3211 {\begin{verbatim}
3212 \lscNamedCut{Xc}%
3213 \end{verbatim}}%
3214 \verbunskip%
3215 {\gray\begin{verbatim}
3216 \lscLine{hot}{1.45}%
3217 \end{verbatim}}%
3218 \verbunskip%
3219 {\begin{verbatim}
3220 \lscNamedCut{Xd}%
3221 \end{verbatim}}%
3222 \verbunskip%
3223 {\gray\begin{verbatim}
3224 \lscLine{hot}{0.5}%
3225 \end{lscinst}
3226 \begin{lscinst}{Inst2}
3227 \end{verbatim}}%
3228 \verbunskip%
3229 {\begin{verbatim}
3230 \lscNamedCut{Xa}%
3231 \end{verbatim}}%
3232 \verbunskip%
3233 {\gray\begin{verbatim}
3234 \lscLine{hot}{0.05}%
3235 \end{verbatim}}%
3236 \verbunskip%
3237 {\begin{verbatim}
3238 \lscNamedCut{Xb}%
3239 \end{verbatim}}%
3240 \verbunskip%
3241 {\gray\begin{verbatim}
3242 \lscLine{hot}{1.95}%
3243 \end{verbatim}}%
3244 \verbunskip%
3245 {\begin{verbatim}
3246 \lscNamedCut{Xc}%
3247 \end{verbatim}}%
3248 \verbunskip%
3249 {\gray\begin{verbatim}
3250 \lscAsynRcv{e}%
3251 \lscLine{hot}{0.5}%
3252 \end{verbatim}}%
3253 \verbunskip%
3254 {\begin{verbatim}
3255 \lscNamedCut{Xd}%
3256 \end{verbatim}}%
3257 \verbunskip%
3258 {\gray\begin{verbatim}
3259 \lscLine{hot}{0.5}%
3260 \end{lscinst}
3261 \lscAsyn{e}{hot}{E}%
3262 \end{Lsc}
3263 \end{verbatim}}%
3264 \end{minipage}
3265 \end{center}%>@>
3266
3267 To avoid cuts to hide each other, one will typically add very short instance
3268 line segments in between as shown in the example above.
3269
3270 \medskip
3271
3272 Using line style `none' one can easily obtain an animation effect as shown in
3273 the following example.
3274
3275 \begin{center}%<@<
3276 \begin{minipage}{0.35\textwidth}
3277 \newcommand{\lscanim}[1]{%
3278 \lscSetCutLinestyle{none}%
3279 \lscSetNamedCutLinestyle{#1}{solid}%
3280 \begin{Lsc}{none}{2}{3}
3281 \begin{lscinst}{Inst1}
3282 \lscNamedCut{Xa}%
3283 \lscLine{hot}{1}%
3284 \lscNamedCut{Xb}%
3285 \lscNamedCut{Xc}%
3286 \lscAsynSnd{e}%
3287 \lscLine{hot}{1.5}%
3288 \lscNamedCut{Xd}%
3289 \lscLine{hot}{0.5}%
3290 \end{lscinst}
3291 %
3292 \begin{lscinst}{Inst2}
3293 \lscNamedCut{Xa}%
3294 \lscNamedCut{Xb}%
3295 \lscLine{hot}{2}%
3296 \lscNamedCut{Xc}%
3297 \lscAsynRcv{e}%
3298 \lscLine{hot}{0.5}%
3299 \lscNamedCut{Xd}%
3300 \lscLine{hot}{0.5}%
3301 \end{lscinst}
3302 %
3303 \lscAsyn{e}{hot}{E}%
3304 \end{Lsc}}
3305 %
3306 \scalebox{0.7}{\lscanim{Xa}}
3307 \\[\bigskipamount]
3308 \scalebox{0.7}{\lscanim{Xb}}
3309 \\[\bigskipamount]
3310 \scalebox{0.7}{\lscanim{Xc}}
3311 \\[\bigskipamount]
3312 \scalebox{0.7}{\lscanim{Xd}}
3313 \end{minipage}
3314 \hfill
3315 \begin{minipage}{0.525\textwidth}%
3316 \small%
3317 {\begin{verbatim}
3318 \newcommand{\lscanim}[1]{%
3319 \lscSetCutLinestyle{none}%
3320 \lscSetNamedCutLinestyle{#1}{solid}%
3321 \end{verbatim}}%
3322 \verbunskip%
3323 {\gray\begin{verbatim}
3324 \begin{Lsc}{none}{2}{3}
3325 \begin{lscinst}{Inst1}
3326 \lscNamedCut{Xa}%
3327 \lscLine{hot}{1}%
3328 \lscNamedCut{Xb}%
3329 \lscNamedCut{Xc}%
3330 \lscAsynSnd{e}%
3331 \lscLine{hot}{1.5}%
3332 \lscNamedCut{Xd}%
3333 \lscLine{hot}{0.5}%
3334 \end{lscinst}
3335 \begin{lscinst}{Inst2}
3336 \lscNamedCut{Xa}%
3337 \lscNamedCut{Xb}%
3338 \lscLine{hot}{2}%
3339 \lscNamedCut{Xc}%
3340 \lscAsynRcv{e}%
3341 \lscLine{hot}{0.5}%
3342 \lscNamedCut{Xd}%
3343 \lscLine{hot}{0.5}%
3344 \end{lscinst}
3345 %
3346 \lscAsyn{e}{hot}{E}%
3347 \end{Lsc}}
3348 \end{verbatim}}%
3349 \verbunskip%
3350 {\begin{verbatim}
3351 \lscanim{Xa}\lscanim{Xb}
3352 \lscanim{Xc}\lscanim{Xd}
3353 \end{verbatim}}%
3354 \end{minipage}
3355 \end{center}%>@>
3356 %>@>
3357
3358 \subsection{Putting Stuff at the Current Location}
3359 \label{sec:tech:put}
3360
3361 %<@<
3362 \index{lscPut@$\mlscPut$}%
3363 \begin{center}\fbox{
3364 \mlscPut%
3365 \param{\var{stuff}}%
3366 }\end{center}
3367
3368 The \mlscPut{} command typesets \var{stuff} at the current location.
3369 %
3370 This is useful to put additional labels or elements for which there is no
3371 explicit support.
3372
3373 We use \mlscPut{}, for example, to draw the dashed frames indicating the
3374 location dimensions in Figure~\ref{fig:locdim}.
3375
3376 \begin{center}%<@<
3377 \begin{minipage}{0.3\textwidth}
3378 \scalebox{0.9}{%
3379 \begin{Lsc}{none}{1}{3}
3380 \begin{lscinst}{Inst}
3381 \lscLine{hot}{1.5}
3382 \lscPut{%
3383 \psline{<-}(0.5,0.5)%
3384 \rput[lb](0.5,0.5){You are here.}}
3385 \lscLine{hot}{1.5}
3386 \end{lscinst}
3387 \end{Lsc}
3388 }%
3389 \end{minipage}
3390 \hfill
3391 \begin{minipage}{0.575\textwidth}%
3392 \small%
3393 {\gray\begin{verbatim}
3394 \begin{Lsc}{none}{1}{3}
3395 \begin{lscinst}{Inst}
3396 \lscLine{hot}{1.5}
3397 \end{verbatim}}%
3398 \verbunskip%
3399 {\begin{verbatim}
3400 \lscPut{%
3401 \psline{<-}(0.5,0.5)%
3402 \rput[lb](0.5,0.5){You are here.}}
3403 \end{verbatim}}%
3404 \verbunskip%
3405 {\gray\begin{verbatim}
3406 \lscLine{hot}{1.5}
3407 \end{lscinst}
3408 \end{Lsc}
3409 \end{verbatim}}%
3410 \end{minipage}
3411 \end{center}%>@>
3412 %>@>
3413
3414
3415 \section{Typesetting Play-Engine LSCs}
3416 \label{sec:pipo}
3417
3418 As mentioned in the introduction, \lscsty{} in general renders LSC in the
3419 \index{style}%
3420 style of \cite{Klose2003}.
3421 %
3422 But it provides a couple of commands which support the typesetting of LSCs in
3423 the
3424 \index{style!play-engine}%
3425 play-engine style.
3426
3427 In cases where the play-engine style is not supported, it may be sufficient to
3428 modify the existing elements, for example, by manually adding an hourglass to
3429 an action box to represent the saving of a timer.
3430
3431 \subsection{Actors, Clocks, and Environments}
3432 \label{sec:pipo:actor}
3433 \label{sec:pipo:clock}
3434 \label{sec:pipo:env}
3435
3436 %<@<
3437 \index{lscActor@$\mlscActor$}%
3438 \index{lscClock@$\mlscClock$}%
3439 \index{lscEnv@$\mlscEnv$}%
3440 \begin{center}\fbox{\parbox{5em}{%
3441 \mlscActor%
3442 \newline
3443 \mlscClock%
3444 \newline
3445 \mlscEnv%
3446 }}\end{center}
3447
3448 The \mlscActor{}, \mlscClock{}, and \mlscEnv{} draw the symbols which are used
3449 to mark the
3450 \index{instance line!actor}%
3451 \index{actor}%
3452 actor,
3453 \index{instance line!clock}%
3454 \index{clock}%
3455 clock, and
3456 \index{instance line!environment}%
3457 \index{environment}%
3458 environment instance line.
3459 %
3460 They are best used as the label of a \mnoboxSD{} instance.
3461
3462 \begin{center}%<@<
3463 \begin{minipage}{0.4\textwidth}
3464 \scalebox{0.9}{%
3465 \pssetlength{\lscLocationWidth}{1.75}%
3466 \begin{Lsc}{none}{3}{3}
3467 \begin{lscinst}[noboxSD]{\lscActor}
3468 \lscLine{hot}{3}
3469 \end{lscinst}
3470 \begin{lscinst}[noboxSD]{\lscClock}
3471 \lscLine{hot}{3}
3472 \end{lscinst}
3473 \begin{lscinst}[noboxSD]{\lscEnv}
3474 \lscEnvLine{cold}{3}
3475 \end{lscinst}
3476 \end{Lsc}
3477 }%
3478 \end{minipage}
3479 \hfill
3480 \begin{minipage}{0.525\textwidth}%
3481 \small%
3482 {\gray\begin{verbatim}
3483 \begin{Lsc}{none}{3}{3}
3484 \end{verbatim}}%
3485 \verbunskip%
3486 {\begin{verbatim}
3487 \begin{lscinst}[noboxSD]{\lscActor}
3488 \end{verbatim}}%
3489 \verbunskip%
3490 {\gray\begin{verbatim}
3491 \lscLine{hot}{3}
3492 \end{lscinst}
3493 \end{verbatim}}%
3494 \verbunskip%
3495 {\begin{verbatim}
3496 \begin{lscinst}[noboxSD]{\lscClock}
3497 \end{verbatim}}%
3498 \verbunskip%
3499 {\gray\begin{verbatim}
3500 \lscLine{hot}{3}
3501 \end{lscinst}
3502 \end{verbatim}}%
3503 \verbunskip%
3504 {\begin{verbatim}
3505 \begin{lscinst}[noboxSD]{\lscEnv}
3506 \end{verbatim}}%
3507 \verbunskip%
3508 {\gray\begin{verbatim}
3509 \lscEnvLine{cold}{3}
3510 \end{lscinst}
3511 \end{Lsc}
3512 \end{verbatim}}%
3513 \end{minipage}
3514 \end{center}%>@>
3515 %>@>
3516
3517 \subsection{Existential Symbolic Instances}
3518 \label{sec:pipo:inst}
3519
3520 %<@<
3521 \index{lscBalloon@$\mlscBalloon$}%
3522 \begin{center}\fbox{%
3523 \mlscBalloon%
3524 \param{\this{$\mexistential$}\orthat{$\muniversal$}}%
3525 \param{\var{stuff}}%
3526 }\end{center}
3527
3528 The \mlscBalloon{} command draws
3529 \index{balloon}%
3530 \index{think balloon}%
3531 think balloons that are used to provide
3532 \index{binding expression}%
3533 binding expressions of
3534 \index{symbolic instance}%
3535 symbolic instances.
3536
3537 They have to be explicitly positioned using, e.g., \cmd{lscPut} and one has to
3538 care for vertical space before the LSC as they are not considered in the
3539 computation of the boundary box.
3540 %
3541 That is, symbolic instances can at best be called semi-supported.
3542
3543 \begin{center}%<@<
3544 \begin{minipage}{0.45\textwidth}%
3545 \scalebox{0.9}{%
3546 \begin{Lsc}{none}{2}{3}
3547 \begin{lscinst}[esymMSC]{esymMSC}
3548 \lscPut{%
3549 \rput(0,0.9){\lscBalloon{existential}{.ID$=$ID}}}
3550 \lscLine{hot}{3}
3551 \end{lscinst}
3552 \begin{lscinst}[esymSD]{esymSD}
3553 \lscPut{%
3554 \rput(0,0.9){\lscBalloon{universal}{.Alloc$> 0$}}}
3555 \lscLine{hot}{3}
3556 \end{lscinst}
3557 \end{Lsc}}
3558 \end{minipage}%
3559 \hfill%
3560 \begin{minipage}{0.5\textwidth}%
3561 \small%
3562 {\gray%
3563 \begin{verbatim}
3564 \begin{Lsc}{none}{2}{3}
3565 \end{verbatim}}%
3566 \verbunskip%
3567 \begin{verbatim}
3568 \begin{lscinst}[esymMSC]{esymMSC}
3569 \end{verbatim}%
3570 \verbunskip%
3571 {\gray\begin{verbatim}
3572 \lscPut{\rput(0,0.9){%
3573 \end{verbatim}}%
3574 \verbunskip%
3575 {\begin{verbatim}
3576 \lscBalloon%
3577 {existential}{.ID$=$ID}}}
3578 \end{verbatim}}%
3579 \verbunskip%
3580 {\gray\begin{verbatim}
3581 \lscLine{hot}{3}
3582 \end{verbatim}}%
3583 \verbunskip%
3584 \begin{verbatim}
3585 \end{lscinst}
3586 \begin{lscinst}[esymSD]{esymSD}
3587 \end{verbatim}%
3588 \verbunskip%
3589 {\gray\begin{verbatim}
3590 \lscPut{\rput(0,0.9){%
3591 \end{verbatim}}%
3592 \verbunskip%
3593 {\begin{verbatim}
3594 \lscBalloon%
3595 {universal}{.Alloc$> 0$}}}
3596 \end{verbatim}}%
3597 \verbunskip%
3598 {\gray\begin{verbatim}
3599 \lscLine{hot}{3}
3600 \end{verbatim}}%
3601 \verbunskip%
3602 \begin{verbatim}
3603 \end{lscinst}
3604 \end{verbatim}%
3605 \verbunskip%
3606 {\gray%
3607 \begin{verbatim}
3608 \end{Lsc}
3609 \end{verbatim}}
3610 \end{minipage}
3611 \end{center}%>@>
3612
3613 The combination on the right above is not a well-formed LSC instance. It is
3614 only used to demonstrate both kinds of loops in the same figure.
3615 %>@>
3616
3617 \subsection{Branching, Subcharts, and Loops}
3618 \label{sec:pipo:scopes}
3619
3620 %<@<
3621 Both
3622 \index{branch}%
3623 branching and
3624 \index{loop}%
3625 loops are based on
3626 \index{subchart}%
3627 subcharts.
3628 %
3629 Subcharts are not directly supported but can be simulated by putting frames
3630 using \mlscPut{}.
3631
3632 \begin{center}%<@<
3633 \pssetlength{\lscLocationWidth}{2}%
3634 \begin{minipage}{0.30\textwidth}
3635 \scalebox{0.9}{%
3636 \begin{Lsc}{none}{3}{4}
3637 \begin{lscinst}{Inst1}
3638 \lscLine{hot}{1.5}
3639 \lscInstSnd{e}
3640 \lscLine{hot}{1}
3641 \lscInstSnd{f}
3642 \lscLine{hot}{1.5}
3643 \end{lscinst}
3644 \begin{lscinst}{Inst2}
3645 \lscLine{hot}{0.5}
3646 \lscCond{hot}{$j = 0$}
3647 \lscLine{hot}{1}
3648 \lscInstRcv{e}
3649 \lscLine{hot}{0.5}
3650 \lscPut{\psframe[dimen=inner]%
3651 (-1.5\lscLocationWidth,0)%
3652 (0.5\lscLocationWidth,1.5\lscLocationHeight)}
3653 \lscLine{hot}{0.5}
3654 \lscInstRcv{f}
3655 \lscLine{hot}{0.5}
3656 \lscPut{\psframe[dimen=inner]%
3657 (-1.5\lscLocationWidth,0)%
3658 (0.5\lscLocationWidth,1\lscLocationHeight)}
3659 \lscLine{hot}{1}
3660 \end{lscinst}
3661 \lscInst{e}{hot}{E}
3662 \lscInst{f}{hot}{F}
3663 \end{Lsc}
3664 }%
3665 \end{minipage}
3666 \hfill
3667 \begin{minipage}{0.685\textwidth}%
3668 \small%
3669 {\gray\begin{verbatim}
3670 \begin{Lsc}{none}{3}{4}
3671 \begin{lscinst}{Inst1}
3672 \lscLine{hot}{1.5}\lscInstSnd{e}
3673 \lscLine{hot}{1}\lscInstSnd{f}
3674 \lscLine{hot}{1.5}
3675 \end{lscinst}
3676 \begin{lscinst}{Inst2}
3677 \lscLine{hot}{0.5}
3678 \lscCond{hot}{$j = 0$}
3679 \lscLine{hot}{1}\lscInstRcv{e}
3680 \lscLine{hot}{0.5}
3681 \end{verbatim}}%
3682 \verbunskip%
3683 {\begin{verbatim}
3684 \lscPut{\psframe[dimen=inner]%
3685 (-1.5\lscLocationWidth,0)%
3686 (0.5\lscLocationWidth,1.5\lscLocationHeight)}
3687 \end{verbatim}}%
3688 \verbunskip%
3689 {\gray\begin{verbatim}
3690 \lscLine{hot}{0.5}\lscInstRcv{f}
3691 \lscLine{hot}{0.5}
3692 \end{verbatim}}%
3693 \verbunskip%
3694 {\begin{verbatim}
3695 \lscPut{\psframe[dimen=inner]%
3696 (-1.5\lscLocationWidth,0)%
3697 (0.5\lscLocationWidth,1\lscLocationHeight)}
3698 \end{verbatim}}%
3699 \verbunskip%
3700 {\gray\begin{verbatim}
3701 \lscLine{hot}{1}
3702 \end{lscinst}
3703 \lscInst{e}{hot}{E}\lscInst{f}{hot}{F}
3704 \end{Lsc}
3705 \end{verbatim}}%
3706 \end{minipage}
3707 \end{center}%>@>
3708
3709 \begin{center}%<@<
3710 \pssetlength{\lscLocationWidth}{2}%
3711 \begin{minipage}{0.30\textwidth}
3712 \scalebox{0.9}{%
3713 \begin{Lsc}{none}{3}{3}
3714 \begin{lscinst}{Inst1}
3715 \lscLine{hot}{1.5}
3716 \lscInstSnd{e}
3717 \lscLine{hot}{1.5}
3718 \end{lscinst}
3719 \begin{lscinst}{Inst2}
3720 \lscLine{hot}{1.5}
3721 \lscInstRcv{e}
3722 \lscLine{hot}{0.5}
3723 \lscPut{\psframe[dimen=inner]%
3724 (-1.5\lscLocationWidth,0)%
3725 (0.5\lscLocationWidth,1.5\lscLocationHeight)%
3726 \rput[lt](-1.5\lscLocationWidth,%
3727 1.5\lscLocationHeight){%
3728 \rput(0.3,-0.3){\textbf{3}}}}
3729 \lscLine{hot}{1}
3730 \end{lscinst}
3731 \lscInst{e}{hot}{E}
3732 \end{Lsc}
3733 }%
3734 \end{minipage}
3735 \hfill
3736 \begin{minipage}{0.685\textwidth}%
3737 \small%
3738 {\gray\begin{verbatim}
3739 \begin{Lsc}{none}{3}{3}
3740 \begin{lscinst}{Inst1}
3741 \lscLine{hot}{1.5}\lscInstSnd{e}
3742 \lscLine{hot}{1.5}
3743 \end{lscinst}
3744 \begin{lscinst}{Inst2}
3745 \lscLine{hot}{1.5}\lscInstRcv{e}
3746 \lscLine{hot}{0.5}
3747 \end{verbatim}}%
3748 \verbunskip%
3749 {\begin{verbatim}
3750 \lscPut{\psframe[dimen=inner]%
3751 (-1.5\lscLocationWidth,0)%
3752 (.5\lscLocationWidth,1.5\lscLocationHeight)
3753 \rput[lt](-1.5\lscLocationWidth,%
3754 1.5\lscLocationHeight){%
3755 \rput(0.3,-0.3){\textbf{3}}}}
3756 \end{verbatim}}%
3757 \verbunskip%
3758 {\gray\begin{verbatim}
3759 \lscLine{hot}{1}
3760 \end{lscinst}
3761 \lscInst{e}{hot}{E}
3762 \end{Lsc}
3763 \end{verbatim}}%
3764 \end{minipage}
3765 \end{center}%>@>
3766 %>@>
3767
3768
3769 \section{Tricks and Tweaks}
3770 \label{sec:tricks}
3771
3772 \subsection{Linewidth}
3773 \label{sec:tricks:lines}
3774
3775 %<@<
3776 All parts of the LSC (except for cuts) are rendered with the current
3777 \pstricks{}
3778 \index{linewidth}%
3779 linewidth.
3780 %
3781 That it, if the lines appear too
3782 \index{fat}%
3783 fat they can be globally be changed using
3784 \cmd{psset}.
3785
3786 \begin{center}%<@<
3787 \begin{minipage}{0.45\textwidth}
3788 \scalebox{0.9}{%
3789 \psset{linewidth=0.25pt}
3790 \begin{Lsc}{none}{2}{3}
3791 \begin{lscinst}{Inst1}
3792 \lscLine{hot}{1}%
3793 \lscAsynSnd{e}%
3794 \lscLine{hot}{2}%
3795 \end{lscinst}
3796 %
3797 \begin{lscinst}{Inst2}
3798 \lscLine{hot}{2}%
3799 \lscAsynRcv{e}%
3800 \lscLine{hot}{1}%
3801 \end{lscinst}
3802 %
3803 \lscAsyn{e}{hot}{E}%
3804 \end{Lsc}}
3805 \end{minipage}
3806 \hfill
3807 \begin{minipage}{0.35\textwidth}%
3808 \small%
3809 {\begin{verbatim}
3810 \psset{linewidth=0.25pt}
3811 \end{verbatim}}%
3812 \verbunskip%
3813 {\gray\begin{verbatim}
3814 \begin{Lsc}{none}{2}{3}
3815 \begin{lscinst}{Inst1}
3816 \lscLine{hot}{1}%
3817 \lscAsynSnd{e}%
3818 \lscLine{hot}{2}%
3819 \end{lscinst}
3820 \begin{lscinst}{Inst2}
3821 \lscLine{hot}{2}%
3822 \lscAsynRcv{e}%
3823 \lscLine{hot}{1}%
3824 \end{lscinst}
3825 \lscAsyn{e}{hot}{E}%
3826 \end{Lsc}
3827 \end{verbatim}}%
3828 \end{minipage}
3829 \end{center}%>@>
3830 %>@>
3831
3832 \subsection{Scaling}
3833 \label{sec:tricks:scaling}
3834
3835 %<@<
3836 LSCs can be
3837 \index{scale}%
3838 scaled by changing the width and height of locations (cf.
3839 Section~\ref{sec:inst:dim}) keeping the size of text.
3840 %
3841 To scale the LSC including all annotations, the \mFullLsc{} and \mLsc{}
3842 environments can be passed to a
3843 \index{scalebox}%
3844 \cmd{scalebox} command.
3845
3846 \begin{center}%<@<
3847 \begin{minipage}{0.35\textwidth}
3848 \centering
3849 \newcommand{\scalex}{%
3850 \begin{Lsc}{none}{2}{3.5}
3851 \begin{lscinst}{$i_1$}
3852 \lscLine{hot}{1}%
3853 \lscAsynSnd{e}%
3854 \lscLine{hot}{2.5}%
3855 \end{lscinst}
3856 \begin{lscinst}{$i_2$}
3857 \lscLine{hot}{2}%
3858 \lscAsynRcv{e}%
3859 \lscLine{hot}{1.5}%
3860 \end{lscinst}
3861 \lscAsyn{e}{hot}{$E$}%
3862 \end{Lsc}
3863 }
3864
3865 {\pssetlength{\lscLocationWidth}{2}
3866 \pssetlength{\lscLocationHeight}{0.666}
3867 \scalex}%
3868
3869 \bigskip
3870 {\pssetlength{\lscLocationWidth}{1.5}
3871 \pssetlength{\lscLocationHeight}{0.5}
3872 \scalex}%
3873
3874 \bigskip
3875 {\pssetlength{\lscLocationWidth}{1}
3876 \pssetlength{\lscLocationHeight}{0.333}
3877 \scalex}%
3878
3879 \bigskip
3880 \scalebox{0.5}{\scalex}
3881 \end{minipage}
3882 \hfill
3883 \begin{minipage}{0.535\textwidth}%
3884 \small%
3885 {\gray\begin{verbatim}
3886 \newcommand{\scalex}{%
3887 \begin{Lsc}{none}{2}{3.5}
3888 \begin{lscinst}{$i_1$}
3889 \lscLine{hot}{1}%
3890 \lscAsynSnd{e}%
3891 \lscLine{hot}{2.5}%
3892 \end{lscinst}
3893 \begin{lscinst}{$i_2$}
3894 \lscLine{hot}{2}%
3895 \lscAsynRcv{e}%
3896 \lscLine{hot}{1.5}%
3897 \end{lscinst}
3898 \lscAsyn{e}{hot}{$E$}%
3899 \end{Lsc}
3900 \end{verbatim}}%
3901 \verbunskip%
3902 {\begin{verbatim}
3903
3904 {\pssetlength{\lscLocationWidth}{2}
3905 \pssetlength{\lscLocationHeight}{0.666}
3906 \scalex}%
3907
3908 {\pssetlength{\lscLocationWidth}{1.5}
3909 \pssetlength{\lscLocationHeight}{0.5}
3910 \scalex}%
3911
3912 {\pssetlength{\lscLocationWidth}{1}
3913 \pssetlength{\lscLocationHeight}{0.333}
3914 \scalex}%
3915
3916 \scalebox{0.5}{\scalex}
3917 \end{verbatim}}%
3918 \end{minipage}
3919 \end{center}%>@>
3920 %>@>
3921
3922 \printindex
3923
3924 \bibliographystyle{alpha}
3925 \bibliography{lsc}
3926
3927 \clearpage
3928 \appendix
3929 \section*{License}
3930
3931 This work may be distributed and/or modified under the conditions of the
3932 \LaTeX{} Project Public License, either version 1.3 of this license or (at
3933 your option) any later version.
3934
3935 The latest version of this license is in
3936 %
3937 \begin{quote}
3938 \tt http://www.latex-project.org/lppl.txt
3939 \end{quote}
3940 %
3941 and version 1.3 or later is part of all distributions of \LaTeX{} version
3942 2005/12/01 or later.
3943 %
3944 This work has the LPPL maintenance status `maintained'.
3945
3946 The Current Maintainer of this work is the copyright holder.
3947 %
3948 This work consists of the files README, lsc.sty, lsc.tex, lsc.bib.
3949
3950 \medskip
3951
3952 In addition, all examples from this manual may of course be freely used,
3953 modified, copied, and distributed in whole or partly.
3954
3955 \end{document}
3956 vim:foldmethod=marker commentstring=%%s foldmarker=<@<,>@>