File: exJ3.signalling

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (27 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (2)
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
##Include another chart
##inline chart include entire language block diagram graph
##Using 'symbol <language>' you can insert an entire chart of any language msc-generator supports. Specify its position/size as for any other symbol and enclose the text of the included chart between '<<<' and '>>>' tokens.
Client1, Client2, Server, Backend1, Backend2;

{
    defstyle arrow [color=green-50];
    Client1->Server;  Server->Backend1;
    Server<-Backend1; Client1<-Server;
} {
    defstyle arrow [color=blue];
    Client2->Server;  Server->Backend2;
    Server<-Backend2; Client2<-Server;
} {    
    symbol block left at Client1+ right at Client2- <<<
        background.color=lgray+40;
        col { box Client1, Client2;}
        box [line.type=dotted, fill.color=lgray] {
            box Server;
            col { box Backend1, Backend2;}
        }
        arrows use color=green-50;
        Client1->Server->Backend1;
        arrows use color=blue;
        Client2->Server->Backend2;
    >>>;
};