Playground - Lyukx/SDExplorer GitHub Wiki
We prepare a playground to show the basic behavior of SDExplorer.
Usage
- Generate a sequence diagram:
- Write traces in the left text box.
- Press
Generate
button.
- Unfold/fold a group:
- Click folded group (yellow boxes) and group will be unfolded.
- Click unfolded group (box containing objects) and it will be folded.
- Compress a sequence diagram:
- Press
Compress
button to summarize the loops. And the button text will becomeDecompress
.- (Note) fold/unfold operation is unusable after compressing.
- Press
Decompress
button to recover the initial sequence diagram.
- Press
- See the detail of messages:
- Double-click on a message and a hintbox will pop out.
- Double-click on the message again and it will disappear.
Trace syntax
To simplify the input of traces, we designed a simple language.
A message(trace) can be written in the form:
FROM_WHOM -> TO_WHOM :: MESSAGE_CONTENTS
To describe a return
message, simply use return
and the top message of call stack will be returned (If the messages are not returned, return messages will be automatically added at the end):
return
A group can be written in the form:
GROUP_NAME :: OBJECT_1, OBJECT_2, OBJECT_3, ...
There are 2 limitations that:
- Group information should be placed after message information
- The first message is regarded as message from
main thread
, and multi-thread is not yet supported in this playground