uml

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

What does a diamond sign signify in UML class diagrams?

橙三吉。 提交于 2019-11-27 09:11:01
问题 Consider the below two diagrams. The top one contains a plain arrow at the right end, and the bottom one contains an arrow with a diamond at the left end and a plain arrow at the right end. The great book GoF has usages of both of these two kinds of diagrams. I want to understand what does the diamond signify in the second case, and which one of these two gives a stronger association between Customer and Order . Is the Customer class responsible for the lifecycle of Order class in either of

What is the difference between a domain class diagram and a design class diagram?

大城市里の小女人 提交于 2019-11-27 07:28:05
Can someone briefly explain the difference between a domain class diagram and a design class diagram? I found a explanation on Yahoo answers , but I find it quite confusing. A domain model is called conceptual model in database modeling, while a design model is called logical model . These distinctions are also used in model-driven development, where we have a succession of three types of models: (solution-independent) domain models resulting from domain/requirements engineering in the system analysis, or inception, phase of a development project (platform-independent) design models resulting

类之间的关系

ⅰ亾dé卋堺 提交于 2019-11-27 07:18:10
UML把类之间的关系分为五种: 一、关联   关联指的是类之间的特定对应关系,其实质是类的对象之间的关系。   关联的两个类对应关系分为一对一、一对多、多对多三种。   如图所示,表示了Customer类和Order类之间的关联关系。关联关系表明了Customer类的对象和Order类的对象存在对应关系,本例为一对多关系,即一个Customer类的对象对应多个Order类的对象。如果类A与类B关联,那么在类A中会包含类B类型的属性。 定义Order类 1 class Order{ 2 private Customer customer; 3 public void setcustomer(Customer customer){ 4 this .customer = customer; 5 } 6 public Customer getcustomer(){ 7 return this .customer; 8 } 9 } View Code 以上代码定义了Order类与Customer类的关联关系。接下来定义Customer类与Order 类的关联关系。 1 public class Customer( 2 private Set<Order> orders = new HashSet<order> (); 3 public void setOrders(Set orders){

How to represent generic parameter in UML method?

纵饮孤独 提交于 2019-11-27 06:49:36
问题 I have to reverse engineer some classes from a Java application into a UML 2 class diagram. So far so good, I have found how to represent class templates for the whole class as proposed by Jon Skeet here: What is the correct way to represent template classes with UML?. With this info, I have reverse engineered a class like this: public class Foo<T> { //class fields and methods... } Now I have a dilemma trying to reverse engineer a class which only a method contains a generic parameter: public

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

How to create class diagram from source code using either Enterprise Architect or Rational Software Architect?

戏子无情 提交于 2019-11-27 06:04:04
问题 I am not fluent in UML, but I would like to create a class diagram based on existing C++ code. Other StackOverflow questions have indicated that two programs - Enterprise Architect and Rational Software Architect - are fairly good at "reverse engineering" C++ code (i.e., creating UML class diagrams based on existing C++ code). I have downloaded the trial version for both of these applications. However, I cannot make any headway into understanding what to do to create a class diagram in either

How to show usage of static methods UML Class Diagram

徘徊边缘 提交于 2019-11-27 05:57:10
问题 How do i show the use of static methods in a UML class diagram? class A{ public static void test(){ } } class B{ public void b(){ A.test(); } } How would a class diagram look like, which shows the relationship? UML 2.0 would be prepared, if there is a difference. 回答1: To show a static method you underline the name of the static method - have a look here for more detailed info. As for navigating that relationship; class B is dependent on the existance of class A . We can say that class B has a

Is it necessary to include the login for every usecase?

谁说我不能喝 提交于 2019-11-27 05:39:32
iam going to design a system that has a login facility. After login the logged user can do several things so is it needs to include login usecase by that several usecases. In most cases, it will only clutter up your diagrams. Login is neither complex nor does it give you much added value as a use case. In your textual document that includes the use cases with description, include as a prerequisite a list of features that require a successful login. Easier to track and to test. 来源: https://stackoverflow.com/questions/19443682/is-it-necessary-to-include-the-login-for-every-usecase

Questions about UML class diagrams?

我们两清 提交于 2019-11-27 05:31:57
Hello I have a few questions about UML class diagrams any help will be appreciated 1) How do you show pointers in attributes? 2) Whats multiplicity? 3) What direction should the composition arrows be? 4) How do you put enums? According to the current UML standard 2.4.1 and the next one 2.5 (it differs almost only in more simple documentation): Pointers/references should be shown as arrow with small black circle (dot) at the referenced end. If it is not pointer that the object has as an attribute, but it is counted in any way, there will be arrow without the dot. If the line should have arrows