File: boxes_example.mscin

package info (click to toggle)
mscgen 0.20-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,172 kB
  • sloc: ansic: 3,924; sh: 1,254; yacc: 320; lex: 234; makefile: 50
file content (55 lines) | stat: -rw-r--r-- 1,574 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# boxes_example.msc: Example MSC using boxes
#
# This file is PUBLIC DOMAIN and may be freely reproduced,  distributed,
# transmitted, used, modified, built upon, or otherwise exploited by
# anyone for any purpose, commercial or non-commercial, and in any way,
# including by methods that have not yet been invented or conceived.
#
# This file is provided "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
# EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#


//
// This example shows how to make and use different kind of "boxes".
//
//
// Run "mscgen -T png -i boxes_example.msc -o boxes_example.png"
// to transform it into a png.
//
// A very similar sample is displayed at: http://www.mcternan.me.uk/mscgen/
//

msc {

   # The entities
   A, B, C;

   # The relations
   |||;

   // The following three boxes will be aligned due to the use
   // of "comma" to separate them (instead of semi-colon).

   A box A [label="box"],   // Box (with "square corners") placed upon line "A"
   B rbox B [label="rbox"], // Box (with "round corners") upon the line "B"
   C abox C [label="abox"], // Box (with "<>-sides") upon the line "C"
   |||; // This adds some space between the boxes here and the boxes below.
        //  - similar to an empty line in a text document.


   A abox B [label="abox"]; // Box spanning from A to B (covering both).
   |||;
   B rbox C [label="rbox"];
   |||;
   A box A [label="box"],
   B rbox B [label="rbox"],
   C abox C [label="abox"],
   ---;
   ---;

}