Sandbox/Mscgen

aus www.kruedewagen.de, Homepage von Ralf und Judith Krüdewagen (Kruedewagen)
Zur Navigation springen Zur Suche springen

This page is for testing the functionality of the Graphviz extension using the mscgen tool and language.

Editing Notes:

  • Each graph on a page must have its own name defined with uniquifier.
  • After a graph has changed you often need to reload the page. Check the notices.
  • See Graphviz for further help.

Example 1

<mscgen uniquifier="example1">
msc {
 arcgradient = 8;

 a [label="Client"],b [label="Server"];

 a=>b [label="data1"];
 a-xb [label="data2"];
 a=>b [label="data3"];
 a<=b [label="ack1, nack2"];
 a=>b [label="data2", arcskip="1"];
 |||;
 a<=b [label="ack3"];
 |||;
}
</mscgen>

<mscgen uniquifier="example1"> msc {

arcgradient = 8;
a [label="Client"],b [label="Server"];
a=>b [label="data1"];
a-xb [label="data2"];
a=>b [label="data3"];
a<=b [label="ack1, nack2"];
a=>b [label="data2", arcskip="1"];
|||;
a<=b [label="ack3"];
|||;

} </mscgen>

Example 2

<mscgen uniquifier="example2">
# Example MSC using boxes

msc {

   # The entities
   A, B, C, D;

   # Small gap before the boxes
   |||;

   # Next four on same line due to ','
   A box A [label="box"],
   B rbox B [label="rbox"],
   C abox C [label="abox"],
   D note D [label="note"];

   # Example of the boxes with filled backgrounds
   A abox B [label="abox", textbgcolour="#ff7f7f"];
   B rbox C [label="rbox", textbgcolour="#7fff7f"];
   C note D [label="note", textbgcolour="#7f7fff"];
}
</mscgen>

<mscgen uniquifier="example2">

  1. Example MSC using boxes

msc {

  # The entities
  A, B, C, D;
  # Small gap before the boxes
  |||;
  # Next four on same line due to ','
  A box A [label="box"],
  B rbox B [label="rbox"],
  C abox C [label="abox"],
  D note D [label="note"];
  # Example of the boxes with filled backgrounds
  A abox B [label="abox", textbgcolour="#ff7f7f"];
  B rbox C [label="rbox", textbgcolour="#7fff7f"];
  C note D [label="note", textbgcolour="#7f7fff"];

} </mscgen>

See also