4. MSCGEN (message sequence charts generator)#
mscgetnはblockdiagとは独立なプログラムで、ネットワークプロトコルのようなメッセージ シークエンスを表示する画像を生成します。 sphinxcontrib-mscgenとともにmscgenプログラムをインストールする必要があります。 mscgenはblockdiagとおなじくgraphvizの DOT formatの影響をうけた形式の指令を使います。
sphinxconrib-mscgen example.
.. msc::
hscale="0.5";
a,b,c;
a -> b [ label = " ab()" ];
b -> c [ label = "bc(TRUE)" ];
c => c [ label = "process()" ];
Quote from website:
Mscgen is a small program that parses Message Sequence Chart
descriptions and produces PNG, SVG, EPS or server side image maps
(ismaps) as the output. Message Sequence Charts (MSCs) are a way
of representing entities and interactions over some time period
and are often used in combination with SDL. MSCs are popular in
Telecoms to specify how protocols operate although MSCs need not
be complicated to create or use. Mscgen aims to provide a simple
text language that is clear to create, edit and understand, which
can also be transformed into common image formats for display or
printing.
4.1. MSC for some fictional process#
Example rendered MSC
# Fictional client-server protocol