Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3211764
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:46:05+00:00 2026-05-17T14:46:05+00:00

Anyone have experience with Quick Sequence Diagram Editor ? The combination of instant display

  • 0

Anyone have experience with Quick Sequence Diagram Editor? The combination of instant display + text source code + Java implementation is very attractive to me, but I can’t quite figure out how to make the syntax do what I want, and the documentation’s not very clear. Here’s a contrived example:

al:Actor
bill:Actor
atm:ATM[a]
bank:Bank[a]

al:atm.give me $10
atm:al has $3=bank.check al's account balance
al:atm.what time is it
atm:al.it's now
atm:al.stop bugging me
atm:al.you only have $3
atm:bill.and don't you open your mouth
bill:atm.who asked you?
bill:atm.give me $20
al:atm.hey, I'm not finished!
atm:bill has $765=bank.check bill's account balance
atm:yes I'm sure, bill has $765=bank.hmm are you sure?
atm:bill.here's $20, now go away
atm:great, he's a cool dude=bank.I just gave Bill $20
al:atm.what about my $10?
atm:al.read my lips: you only have $3

Here’s the result from QSDE in single-threaded mode:

single-threaded

and in multi-threaded mode:

multi-threaded

I guess I’m not clear what starts/ends those vertical bars. I have a situation which is single-threaded, but there’s state involved, and all the messages are asynchronous. I guess that means I should use an external object to represent that state and its lifetime. What I want is for one timeline to represent the message sequence

  1. al:atm.give me $10
  2. atm:bank.check al’s account balance
  3. bank:atm.al has $3
  4. atm:al.you only have $3

and another timeline to represent the message sequence

  1. bill:atm.give me $20
  2. atm:bank.check bill’s account balance
  3. bank:atm.bill has $765
  4. atm:bank.hmm are you sure?
  5. bank:atm.yes I’m sure, bill has $765
  6. atm:bill.here’s $20, now go away
  7. atm:bank.I just gave Bill $20
  8. bank:atm.great, he’s a cool dude

with the other “wisecracks” representing other miscellaneous messages that I don’t care about right now.

Is there a way to do this with QSDE?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T14:46:06+00:00Added an answer on May 17, 2026 at 2:46 pm

    When a new thread is started (and a message from an user always starts a new thread) it does not stop until it is explicitly stopped or until the diagram ends. E.g. atm:stop terminates the atm thread

    here a first attempt
    (everything in multithreaded mode):

    atmsmall

    al:Actor
    bill:Actor
    atm:ATM[a]
    bank:Bank[a]
    
    al:atm.give me $10
    atm:al has $3=bank.check al's account balance
    atm:al.you only have $3
    atm:stop
    
    bill:atm.give me $20
    atm:bill has $765=bank.check bill's account balance
    atm:yes I'm sure, bill has $765=bank.hmm are you sure?
    atm:bill.here's $20, now go away
    atm:great, he's a cool dude=bank.I just gave Bill $20
    

    another version with asynchronous messages

    (arguably the messages should be asynchronous, since they are transmitted over the network. Anyway now all arrows look the same)

    “>” at the start of a message starts a new thread (all messages from users and processes start a new thread by default.)

    “&” at the end means that the call returns immediately, and the new thread is not shown. you can use this to simulate sending messages to existing threads.
    (all messages TO users and processes always return immediately by default. )

    atmsmallthreads

    al:Actor
    bill:Actor
    atm:ATM[a]
    bank:Bank[a]
    
    al:atm.give me $10
    atm:>bank.check al's account balance
    bank:>atm.al has $3&
    bank:stop
    atm:al.you only have $3
    atm:stop
    
    bill:atm.give me $20
    atm:>bank.check bill's account balance
    bank:>atm.bill has $765&
    bank:stop
    
    atm:>bank.hmm are you sure?
    bank:>atm.yes I'm sure, bill has $765&
    bank:stop
    
    atm:bill.here's $20, now go away
    atm:>bank.I just gave Bill $20
    bank:>atm.great, he's a cool dude&
    bank:stop
    

    The full example with all the wisecracks

    it is unclear from the example when exactly a thread in ATM should stop. ATM seems to be acting more like a user or process, not an object. So the example does not necessarily make sense

    atmbig

    al:Actor
    bill:Actor
    atm:ATM[a]
    bank:Bank[a]
    
    al:atm[a].give me $10
    atm:al has $3=bank.check al's account balance
    
    al:atm.what time is it
    atm:al.it's now
    atm:stop
    
    atm:al.stop bugging me
    atm:al.you only have $3
    
    atm:bill.and don't you open your mouth
    bill:atm.who asked you?&
    atm:stop
    
    bill:atm.give me $20
    al:atm.hey, I'm not finished!&
    atm:bill has $765=bank.check bill's account balance
    atm:yes I'm sure, bill has $765=bank.hmm are you sure?
    atm:bill.here's $20, now go away
    atm:great, he's a cool dude=bank.I just gave Bill $20
    atm:_
    atm:stop
    
    al:atm.what about my $10?
    atm:al.read my lips: you only have $3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if anyone have experience writing codes in Java while compiling it
hey, does anyone have experience in developing Android app with Java reflection feature? I
Anyone have experience with algorithmic trading (like stocks)? Any good services to use to
Anyone have experience with adding a ReSharper profile to the VS2008 solution and share
Does anyone have experience using the URL Rewrite Module (see here )? Can it
Does anyone have experience using makefiles for Visual Studio C++ builds (under VS 2005)
Does anyone have experience with LLVM , llvm-gcc , or Clang ? The whole
Does anyone have experience with algorithms for evaluating hypergeometric functions? I would be interested
Does anyone have experience with implementing OpenID on a non technical website? If you
Is there a good tutorial or does anyone have experience with setting this up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.