uml

Undefined amount of arguments in UML

懵懂的女人 提交于 2019-12-11 15:05:33
问题 I want to make an public method: fun createStringBinding(@PropertyKey(resourceBundle = BUNDLE_NAME) key: String, vararg args: Any): StringBinding { return Bindings.createStringBinding(Callable { get(key, *args) }, Settings.language) } how would this look like in an UML i was doing it like that but i am not sure if this is correct and i also don't know where to look for that... Is this correct? 回答1: The notation for operations is described in the UML specifications published by OMG, version 2

Aggregation or composition or simple association?

…衆ロ難τιáo~ 提交于 2019-12-11 14:39:32
问题 There is one example to explaining associations in UML. A person works for a company; a company has a number offices. But I am unable to understand the relationship between Person, Company, and Office classes. My understanding is: a company consists of many persons as employees but these classes exist independently so that is simple association with 0..* multiplicity on Person class' end a company has many offices and those offices will not exist if there is no company so that is composition

Extend all use-case

余生颓废 提交于 2019-12-11 14:22:52
问题 I have a question about uml and extend notation of use-case. How I can extend all use case. For example if I created a connection down use case that extend almost all use case, but I don't want to connect all with the notation on the use case diagram cause is very orrible to see. How can I do? 回答1: First of all : the importance of Use Cases Modeling Use Case Diagrams ( Use Case Modeling ) is SO important step in Software Analysis and Use Case Modeling should be performed by professional

How to show “Iterator” at UML class diagram in VisualStudio?

自古美人都是妖i 提交于 2019-12-11 13:17:51
问题 Is there any way to mark operation in UML diagram as iterator? My purpose is, to get iterator in generated from UML diagram code. 回答1: What you can always do in such cases is to stereotype it: 来源: https://stackoverflow.com/questions/34391415/how-to-show-iterator-at-uml-class-diagram-in-visualstudio

What is the difference between conceptual domain models, application class models, and consolidated class models?

痴心易碎 提交于 2019-12-11 13:15:47
问题 I need to make these three UML diagrams for a class project, but they all seem like the exact same thing, a class diagram. 回答1: The difference is the level of abstraction those models deal with the reality they try to reflect. The conceptual model is just a rough draft of the domain. You try to gather business objects (contents and relations). The application class model is one that is designed towards coding the system under consideration (SUC). The term "consolidated class model" is not a

purpose of tokens in Activity diagrams of Uml 2.5

帅比萌擦擦* 提交于 2019-12-11 12:49:07
问题 UML specs 2.5 says: The effect of one ActivityNode on another is specified by the flow of tokens over the ActivityEdges between the ActivityNodes. But above definition is obscure; specially because tokens are not explicitly modeled in an Activity . After reading 15.2.3.3 Activity Edges section of specifications, I think purpose of them is: to capable the diagram to describe it may wait for other token or refuse flow instead of entering next node immediately Is it true? Also is it the only

How to express loops in Communication Diagrams?

筅森魡賤 提交于 2019-12-11 11:35:51
问题 I'd like to know how to express in a Communication Diagram something like: foreach (User user in UsersCatalog) { list.add(user.getId()); } I actually have something like the following alt text http://img691.imageshack.us/img691/9213/semttuloyc.png (Utilizador = User) but as you'll notice it does not represent well the fact that I am doing something like a loop. How can I accomplish this? 回答1: Just define getId() : int with an asterisk(*): 1.4 *getId() for the given example. 回答2: Why don't you

GMF display diagram example

二次信任 提交于 2019-12-11 11:35:49
问题 How can I display a GMF diagram, with the file format "*.ecorediag" in Eclipse in a View? The diagram should not be editable. Is there a simple sample view that loads a diagram from say "/home/diagrams/test.ecorediag" 回答1: The GMF diagrams (including ecorediag) are rendered on the editor with the help of "org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer". So the bare minimum code to make this work DiagramGraphicalViewer viewer = new DiagramGraphicalViewer(); viewer

Interfaces, inheritance and Genrics in UML Class Diagram

你说的曾经没有我的故事 提交于 2019-12-11 11:16:32
问题 I'm modeling a persistence layer based on DAO pattern and I have some doubts related to the use of Genrics and interfaces inheritance. I'd start saying that basic CRUD operations are the same for all the persistable entities so I've decided to provide a basic DAO interface using Generics. Then there would be other interfaces that inherit the basic contract plus some other specific methods related to the entity that will be managed by the concrete implementation. It may sound complicated but

UML Class Diagram - Notation for 'OR'

天大地大妈咪最大 提交于 2019-12-11 11:08:01
问题 I have 4 tables: Doctors ID,Name,roomNumber Appointments ID,whenOccured,ifAttended Patients ID, name, address DPappointments DoctorID,PatientID,AppointmentID this roughly becomes However, i now want to change it such that an appointment can be made to see either a Doctor OR a NURSE? How can i change the class diagram to reflect an 'OR' type relation? 回答1: Depending on the rest of your model's structure, there are different solutions. I supose there is also a class Nurse and that id does not