uml

Role name in association relationship

南楼画角 提交于 2019-11-30 07:25:51
From the UML bible, about role : Role: A role name explains how an object participates in the relationship. Each object needs to hold a reference to the associated object or objects. The reference is held in an attribute value within the object. When there is only one association then there is only one attribute holding a reference. What does this sentence mean? Can anyone please offer an example to explain it? Roles:A role name explains how an object participates in the relationship. You have two classes, Professor and Book and they are associated as in the following diagram: The role gives a

JSDoc UML Diagram

戏子无情 提交于 2019-11-30 07:08:41
Question: I'm editing and using an open source javascript library that has JSDoc tags in its code. I was wondering if anyone knew of a JSDoc plugin that would allow me to generate a class diagram from the JSDoc tags. Edit I decided to try out js/uml and found the following. The JS/UML eclipse extension requires an older version of Eclipse (Indigo) and a non-supported dependency library UML2tools. I found the dependencies needed and according to the Eclipse software manager installed correctly. When I tried to enable the uml functionality (having configured the js root), the process would hang.

UML Diagram Tool - Eclipse plugin? [closed]

房东的猫 提交于 2019-11-30 06:57:37
Can anyone help me? I am currently using Eclipse Java IDE, and would like a plug-in that will automatically look at my classes and draw up a class diagram in UML. Any suggestions? I recommend the ObjectAid UML plugin . It works very nicely. sethrq The challenge in what you are trying to do is that you can have multiple correct UML diagrams for any piece of code. Just trying to automatically get a diagram ends up with too much garbage when using most UML tools - and the tools just end up getting in the way. We created Architexa to help in this situation - Architexa helps you to get to useful

Standard UML file format

早过忘川 提交于 2019-11-30 06:39:45
I have designed UML diagrams in different tools (StarUML, BoUML, Papyrus, Omondo, Rational Rose, etc.) depending on the project and the date (rose was first, after Omondo, then starUMl, ..., now papyrus). However, I see that I cannot open my old UML diagrams because the tool is obsolete. I would like to know if there is a standard format for UML diagrams. Probably not in production, but at least to know if there is proposal of standard format. Probably, Eclipse is doing something like that with the M2 project, but do the other tools (not eclipse based) are interested in reading this format.?

How to represent a C# property in UML?

帅比萌擦擦* 提交于 2019-11-30 06:36:46
问题 Not quite an Attribute, not quite a Method. Stereotypes? <<get>> <<set>> ? I'm retro-modelling an existing system, so I need to clearly reflect that this is not the same as a readonly field or a methods pair (regardless of what the IL says), so I think I'll go with the stereotype, but I'll accept the language independant get_ set_ as a general solution. Thanks all for the sanity test. 回答1: Properties are just a convenient way of writing get_MyValue() and set_MyValue(value) allowing assignment

UML各种图识别

家住魔仙堡 提交于 2019-11-30 05:46:31
UML有哪些图: 2、如何识别: 1、用例图(UseCase Diagrams):   用例图主要回答了两个问题:1、是谁用软件。2、软件的功能。从用户的角度描述了系统的功能,并指出各个功能的执行者,强调用户的使用者,系统为执行者完成哪些功能。 2、类图(Class Diagrams):重点看图里有没有泛化、聚合的符号      用户根据用例图抽象成类,描述类的内部结构和类与类之间的关系,是一种静态结构图。 在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency)。各种关系的强弱顺序: 泛化 = 实现 > 组合 > 聚合 > 关联 > 依赖 3、对象图(Object Diagrams):      描述的是参与 交互的各个对象在交互过程中某一时刻的状态 。对象图可以被看作是类图在某一时刻的实例。 4、状态图(Statechart Diagrams):      是一种由状态、变迁、事件和活动组成的状态机,用来描述类的对象所有可能的状态以及时间发生时状态的转移条件。 5、活动图(Activity Diagrams):      是状态图的一种特殊情况,这些状态大都处于活动状态。本质是一种流程图

Multiplicity vs Cardinality

假如想象 提交于 2019-11-30 04:50:10
When talking about data models and databases, the term Cardinality is often used to describe the number of allowed elements in a given set. UML often refers to the same property as Multiplicity . Is there any differences between these two terms or are they synonymous? The simplest explanation would be to say: Multiplicity = Cardinality + Participation Cardinality: Denotes the maximum number of possible relationship occurrences in which a certain entity can participate in (in simple terms: at most). Participation: Denotes if all or only some entity occurrences participate in a relationship (in

How do I represent a loop in an activity diagram?

删除回忆录丶 提交于 2019-11-30 04:33:23
I'd like to represent a loop in a UML activity diagram. Here's my situation: For each folder, I check each document within that folder For each document I check its content: If it's invalid (based on keyword searching), do action X and pass to next document. When all document are verified, continue to the next folder. Can anyone show me what this should look like? There are 3 different notations that you can use. As your loop is based on some elements (folders, documents) the most convenient way is to use Expansion Region (of iterative type). Second option, that is a preferred choice when you

Is TIME an actor in a use case?

 ̄綄美尐妖づ 提交于 2019-11-30 03:55:51
Alright, on a true false question: a)The actors of a system are only represented by humans or another software components. I said TRUE, and the teacher marked it as wrong, not because he considered that I missed hardware components (which I guess I would partially concede), but because, on his words: "TIME is also an actor." How would an use case diagram consider TIME as an actor?? Please refer to any bibliography which considers time an actor. I haven't found any, and truthfully I don't think it makes any sense. Time doesn't act by itself, it's either a system or a person that works on a

UML Class diagram, how to show a Class extends thread?

安稳与你 提交于 2019-11-30 02:56:10
问题 I have a class called ServerSide in which another class resides called Cserver. The following code fragment should explain what I am talking about: public static void main (String [] args) throws Exception { System.out.println("The server is running."); int clientnumber = 1; ServerSocket server = new ServerSocket(9090); try { while (true) { new cserver(server.accept(), clientnumber++).start(); } }finally { server.close(); } } private static class cserver extends Thread { private Socket socket