sequence-diagram

UML sequence diagram: how do i draw cron job?

你离开我真会死。 提交于 2019-12-21 03:42:37
问题 I'm developing an application that takes advantages of restaurants' dataset. Each week my system will run a CRON job in order to synchronize the restaurants that are available on a public API to my database. However, how do I draw the sequence diagram for this CRON job? Who is the actor? 回答1: The actor would be some scheduler (or you can use the Cron object if you like). The target would be your Synchronizer object doing all that fancy web scanning. You can use a loop fragment to show the

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

为君一笑 提交于 2019-12-17 10:38:13
问题 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

Need help in a login sequence diagram

眉间皱痕 提交于 2019-12-13 20:11:40
问题 hi everyone i'm à newbie in uml and my question is simple:i want to draw a sequence diagram for members login and the steps are as follows: the member visits the login page enters email/pwd clicks login then the system goes to the database if record exists if account active display login success msg else (account not active) display error msg else(record does not exists) display error msg and the diagram should contains the following objects: member login page System database so can any one

Eclipse plugin or a Open source tool to reverse engineer java code for sequence diagram

China☆狼群 提交于 2019-12-13 11:46:21
问题 I am looking out for a eclipse plugin or an open source tool to reverse engineer the sequence diagrams. I tried using Alto UML, but it just gives out sequence diagram of the class chose. I would like to have a sequence diagram of the whole call stack with methods, input arguments and output arugments as well. Could you please let me know some pointers on this? Thanks! 回答1: Take a look at the MoDisco open source eclipse project MoDisco 回答2: Architexa does have sequence diagrams for the whole

Project and software analysis - where to begin?

会有一股神秘感。 提交于 2019-12-13 04:08:38
问题 Recently i took project and software analysis lessons. At first i found the subject kinda boring but then i began to see the importance of them. Modeling is pretty important. My teacher showed us some basic diagrams: classes, use cases, sequence and statemachine. It was only 7 lessons and now i want to pursue further education on the subject. As a developer, i think it would improve my work. Where do i begin? Any books or web sites? I'm still pretty much a newbie at it so please, not too much

sequence diagram for books exchange

ε祈祈猫儿з 提交于 2019-12-11 22:28:23
问题 Please can anyone suggest any improvements or corrections in the attached sequence diagram. The diagram is regarding student registration and search book. 回答1: You should not think on classes creation being in sequence diagram. Make a class diagram, maybe an object diagram, and after that make your sequence diagram with instances of created classes as timelines. Add a class diagram here, without it it is impossible to answer your questions. As is, you are working with elements of use case

Generating Sequence Diagrams Using UMLGraph

断了今生、忘了曾经 提交于 2019-12-11 09:04:03
问题 I am using UMLGraph to generate sequence diagrams. I have a problem using the pic2plot program to generate svg images. It clips the image and parts of the image don't show. This problem is also documented in the FAQ: How can I prevent clipped SVG images in sequence diagrams? This appears to be a limitation of pic2plot. You can work around it, by increasing the width and height values appearing in the SVG XML file that pic2plot generates. However, I have tried but failed to change the width

How to generate UML sequence diagrams from C code?

依然范特西╮ 提交于 2019-12-11 07:25:54
问题 I have looked at a utility trace2uml which parses the source code and looks for a Trace2UML syntax to describe the sequence diagram and creates the sequence diagram. I am interested to know if it is possible to create the sequence diagram by parsing the C source code alone? 回答1: I am not a big connoisseur of UML diagrams but i know that generating diagrams from the code like: sequential diagram or class diagram are intended for object oriented languages like Java, c++, c# and many others. So

uml 2.0 sequence diagram: is a reply message obligatory when modeling a synchronous message

戏子无情 提交于 2019-12-11 03:26:09
问题 i have found some articles on uml sequence diagrams, which mention a reply message would be optionally, but i could not find any hint to confirm this in the 2.2 uml super structure specification. maybe someone who is familiar with that spec could answer the question and give me a hint in which part of the uml superstructure documentation i could find a definitive answer on this question. thanks a lot in advance. thomas 回答1: Sounds like it is in fact optional. From Pg. 495 (pdf page 511) of

constructor in UML sequence diagram

青春壹個敷衍的年華 提交于 2019-12-10 19:37:00
问题 what is the meaning of the following sequence diagram and exactly the constructor(that is represented as a create object)? 回答1: It means that ClassA instantiates ClassB . The arrow represents that the constructor of ClassB is called by ClassA 回答2: The message's name "Class B()" is wrong : it should be "create". Is that what confusing you ? 回答3: Chriss, hopefully you've figured it out by now. Please accept Cratylus's answer as it is correct. Here is an example in Java: Main.java package com