Changes between Version 18 and Version 19 of Pic2Plot

Show
Ignore:
Timestamp:
05/20/09 12:49:01 (4 years ago)
Author:
bousch (IP: 62.58.14.41)
Comment:

more complex sequence diagram added

Legend:

Unmodified
Added
Removed
Modified
  • Pic2Plot

    v18 v19  
    9898.PE 
    9999''';'args: -F HersheySans --bitmap-size 1000x1000';crop] 
     100}}} 
     101 
     102A more complex example: 
     103 
     104[[Image(complex_sequence.png)]] 
     105 
     106{{{ 
     107[:pic:''' 
     108.PS 
     109copy "\full\path\to\sequence.pic"; 
     110 
     111# Define the objects 
     112actor(U, ""); 
     113object(G,"g:GUI"); 
     114placeholder_object(Dummy1); # more space 
     115placeholder_object(D); 
     116step(); 
     117 
     118# Message sequences 
     119active(G); 
     120step(); 
     121 
     122create_message(G,D,"db:DB"); 
     123active(D); 
     124step(); 
     125inactive(D); 
     126 
     127async(); # use asynchrone messages (not-filled arrowheads) 
     128 
     129comment(D,C,down 1 right, wid 1 ht 0.7 "waiting for" "condition" "dbMailbox") 
     130 
     131message(U,G,"openBrowser"); 
     132message(G,D,"query()"); active(D); 
     133message(D,G,"result"); inactive(D); 
     134 
     135connect_to_comment(D,C) 
     136 
     137message(U,G,"scroll"); 
     138message(G,D,"query()"); active(D); 
     139message(D,G,"result"); inactive(D); 
     140 
     141connect_to_comment(D,C) 
     142 
     143message(U,G,"Exit"); 
     144step(); 
     145begin_frame(G,F,"OnExit"); 
     146message(G,D,"shutdown()"); inactive(G); active(D); 
     147comment(G,C,down .2 right .2, wid 2 ht 0.25 "wait for cond. dbShutdown") 
     148step(); 
     149comment(D,C,right, wid 2 ht 1 \ 
     150        "all queries preceeding the" \ 
     151        "shutdown in the mailbox" \ 
     152        "are answered already." \ 
     153        "DbQuery-Objects can" \ 
     154        "be destroyed") 
     155message(D,G,"done"); inactive(D); active(G); 
     156 
     157sync(); 
     158destroy_message(G,D,""); 
     159 
     160step(); 
     161end_frame(D,F); 
     162 
     163step(); 
     164inactive(G); 
     165 
     166# Complete the lifelines 
     167step(); 
     168complete(G); 
     169complete(U); 
     170.PE 
     171 
     172''';'args: -F HersheySans --bitmap-size 1000x1000';'crop'] 
    100173}}} 
    101174