mgansler / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
1 stars 0 forks source link

timer and timestamp #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of mscgen are you using?
Mscgen version 0.20

On what operating system?
Gentoo Linux

What enhancement would you like?
1) Timer support as in ITU-T Z.120
2) Timestamp (or basically any kind of text) for messages on the left side of 
the leftmost timeline or on the right side of the rightmost timeline. This 
feature can be particularly useful if one wants to generate an MSC diagram from 
a log file.

I have implemented the above in a very simple form to add start/stop timer and 
timeout as well as  left side timestamps. See the attached file with the 
modified source (downloaded on 26th May 2012) and a dummy example 
(testinput21.msc):

msc {
  A,B,C;

  B -> A [label="trigger", timestamp="0.011"];
  A timerstart A [label="T(5)", timestamp="0.012"];
  A timeout A [label="too late", timestamp="5.012"];
  A -> * [label="timeout", timestamp="5.013"];
  B timerstart C [label="T2(5)", timestamp="5.015"];
  B box C [label="waiting", timestamp="should not be displayed"];
  B timerstart C [label="T2(5)", timestamp="5.015"];
  B timeout C [label="T2(5)", timestamp="10.014999999999"];
  B -> A [label="lazy"], B timerstart B [label="T2(5)"];
  C -> A [label="lazy"], C timerstart C [label="T2(5)"];
  A -> * [label="done"];
  B timerstop C [label="ok"];
}

Original issue reported on code.google.com by Lajos.Za...@gmail.com on 16 Nov 2012 at 10:12

Attachments: