File: msg_types.mscin

package info (click to toggle)
mscgen 0.20-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,120 kB
  • ctags: 1,016
  • sloc: ansic: 3,924; sh: 1,282; yacc: 320; lex: 234; makefile: 66
file content (89 lines) | stat: -rw-r--r-- 1,947 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# msg_types.msc: Sample msc input file with URLs
#
# 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 sample uses all the different ways of making "arrows" between lines -
// be it a signal, method, call-back etc... - and also uses links (via "ismap"s).
//
// Run "mscgen -T png -i msg_types.msc -o msg_types.png"
// to transform it into a png and use
// "mscgen -T ismap -i msg_types.msc -o msg_types.ismap"
// to create the ismap.
//
//

msc {

A,B;

--- [label="Start", ID="1"];

A->B [label="signal"];
A<-B [label="signal"];


A=>B [label="method"];
A<=B [label="method"];

A>>B [label="return"];
A<<B [label="return"];

A -X B [label="loss"];
A X- B [label="loss"];


A=>>B [label="call-back"];
A<<=B [label="call-back", URL="www.google.com"];

--- [label="Left arcs", ID="2", IDURL="www.google.co.uk"];

A->A [label="signal"];
A<-A [label="signal"];


A=>A [label="method"];
A<=A [label="method"];

A>>A [label="return"];
A<<A [label="return"];

A=>>A [label="call-back"];
A<<=A [label="call-back", URL="www.google.com", ID="3"];

A -X A [label="loss"];
A X- A [label="loss"];

--- [label="Right arcs"];

B->B [label="signal"];
B<-B [label="signal"];


B=>B [label="method"];
B<=B [label="method"];

B>>B [label="return"];
B<<B [label="return"];

B=>>B [label="call-back", ID="4"];
B<<=B [label="call-back", URL="www.google.com"];

B -X B [label="loss"];
B X- B [label="loss"];


--- [label="End of arcs", URL="www.google.com"];


... [label="Some time passes", URL="www.google.com"];
}