sequence-diagram

How to illustrate multiple threads in sequence diagram?

≯℡__Kan透↙ 提交于 2019-11-28 16:28:54
How can you clearly illustrate multiple threads of execution in a sequence diagram or similar diagram? I haven't been able to find any clear examples. All diagrams I see are used to illustrate a single thread. Update : The accepted answer was the best example I saw but it does leave a fair bit to be desired. I ended up illustrating the threads in separate sequence diagrams. I'm not sure if the sequence diagram necessarily works for multiple threads. James Black Here is one diagram that may be useful, and on the left-hand side you can see the explanation: http://sdedit.sourceforge.net

Sequence Diagram Reverse Engineering

萝らか妹 提交于 2019-11-28 16:13:58
I'm looking for a tool that will reverse engineer Java into a sequence diagram BUT also provides the ability to filter out calls to certain libraries. For example, the Netbeans IDE does a fantastic job of this but it includes all calls to String or Integer which clutter up the diagram to the point it is unusable. Any help is greatly appreciated!!!!!!! I think jtracert is what you are looking for. It generates a sequence diagram from a running Java program. Also, because its output is a text description of the diagram (in the formats of several popular SD tools), you can use grep to filter for

How to Generate a Sequence Diagram from Java Source Code

人盡茶涼 提交于 2019-11-28 15:47:40
问题 I have a question about generating sequence diagram from Java source code. When I googled I saw someone told to use visual paradigm (VP), but it does not generate sequence diagram for me. Some steps in my VP are different from manual. The manual says to choose method but my VP does not allow to select method in a special class. Reverse Engineering Sequence Diagram from Java Source Code Does anyone have a new idea to generate sequence diagram from Java source code? 回答1: With Intellij 2019

self message(non recursive) vs self recursive message

做~自己de王妃 提交于 2019-11-27 21:12:03
问题 What is the difference of these two messages? I searched the web a bit and most what I could find is A self message is a message that an object sends to itself. It is a message that represents the invocation of message of the same lifeline. A self message can represent a recursive call of an operation, or one method calling another method belonging to the same object. What is the benefit of additional activation bar that recursive message brings? In graphical notation: non recursive self

How to correct PlantUML Line Path

走远了吗. 提交于 2019-11-27 16:02:20
问题 I created this diagram using the following code. But as you can see, the lines going from (Cancel Order) and (Place Order) to (Publisher) decide to take a terribly rounded path to get their, instead of going straight to the right and then down to publisher. I tried using manual direction commands like "-down" but none of them seemed to help. Does anybody know how to fix this? And here is my code. I appreciate any help. Thank you. @startUML EBook Use Case Diagram left to right direction Actor

How to get the caller class name inside a function of another class in python?

别等时光非礼了梦想. 提交于 2019-11-27 12:24:31
My objective is to stimulate a sequence diagram of an application for this I need the information about a caller and callee class names at runtime. I can successfully retrieve the caller function but not able to get a caller class name? #Scenario caller.py: import inspect class A: def Apple(self): print "Hello" b=B() b.Bad() class B: def Bad(self): print"dude" print inspect.stack() a=A() a.Apple() When I printed the stack there was no information about the caller class. So is it possible to retrieve the caller class during runtime ? Well, after some digging at the prompt, here's what I get:

How to show “if” condition on a sequence diagram?

99封情书 提交于 2019-11-27 10:12:54
I was wondering, how can one represent " if " statement on a sequence diagram? if (somethingShouldBeDone) { // Do it } else { // Do something else } Can it be represented at all? The thing is ... in my code, fair amount of conditions are checked to determine a variety of actions. If i am going to show the actions, I'd like to explicitly state that actions are caused by particular events. If possible create an image representation of a solution. GETah If else condition, also called alternatives in UML terms can indeed be represented in sequence diagrams. Here is a link where you can find some

How to illustrate multiple threads in sequence diagram?

限于喜欢 提交于 2019-11-27 09:39:24
问题 How can you clearly illustrate multiple threads of execution in a sequence diagram or similar diagram? I haven't been able to find any clear examples. All diagrams I see are used to illustrate a single thread. Update : The accepted answer was the best example I saw but it does leave a fair bit to be desired. I ended up illustrating the threads in separate sequence diagrams. I'm not sure if the sequence diagram necessarily works for multiple threads. 回答1: Here is one diagram that may be useful

free UML sequence diagram reverse engineering eclipse plugin working out of the box - does such a thing exist? [closed]

佐手、 提交于 2019-11-27 06:34:29
I tried (though not very comprehensively) numerous solutions including ModelGoon (only class and interaction diagrams available), ObjectAid (class diagram only), eUML free edition (quits with an ominous "license not found" error on first use), MoDisco (with the only option on the menu being "browse corresponding model element"). And also some standalone tools - ArgoUML and BOUML either dont provide this feature or at least i was not able to find it. Jsonde started only after i fixed a msvcr71.dll-error and was then unable to connect to the VM for reasons unknown... Java Call Tracer is just a

UML diagram for dependency between systems

泪湿孤枕 提交于 2019-11-27 02:03:17
Which UML diagram is the best for showing dependency between our IT system and other external IT systems? For example I would like to show on diagram: system A gets data from system B system B can call some functionality from system A I'm wondering between component diagram and sequence diagram. What do you think? Components definitelly, and dependencies. Dependency does not go in direction of the data-flow, but from the component that "knows" other component (invokes something from it, creates an object, etc). The following diagram shows the idea. It is common (and highly recommendable)