uml

How can I version software components in Sparx Enterprise Architect (EA)?

a 夏天 提交于 2019-12-11 01:29:57
问题 I am working at modelling a software system using Sparx Enterprise Architect 13. This system contains different versions of software components. We typically add services and/or APIs when we release a new version of a software component. Currently, to reflect the fact that component ServiceV1 exposes an interface A and ServiceV2 exposes interfaces A (the same as ServiceV1) and B, I make ServiceV2 extend ServiceV1. But that is not straightforward: the generalization link is not available in

How do I formally document a C# Attribute in UML?

跟風遠走 提交于 2019-12-11 01:25:55
问题 What is the proper way to document a C# Attribute on a class in a UML class diagram? 回答1: I haven't decided if this is my answer, but I figured I'd throw it out there for sake of discussion. Does this look acceptable? Its an instance of the attribute type with the metadata values put into tagged values below. I just figured out how to add custom stereo types. The arrow is just a dependency arrow that is labeled as "applies". 回答2: I don't know if this is "standard", except that it uses a

UML各类箭头

倾然丶 夕夏残阳落幕 提交于 2019-12-11 00:46:56
依赖(Dependency) 一种使用的关系,既一个类的实现需要另一个类的帮助,主要体现在局部变量,方法的参数以及对静态方法的调用,箭头指向被使用者。 泛化(Generalization) 一种继承关系,表示一般和特殊的关系,它指定了子类如何特化父类的所有特征和行为. 实现(Realization) 是一种类与接口的关系, 表示类是接口所有特征和行为的实现. 聚合(Aggregation) 是整体与部分的关系, 且部分可以离开整体而单独存在. 组合(Composition) 是整体与部分的关系, 但部分不可以离开整体而单独存在. 关联(Association) 一种拥有的关系, 它使一个类知道另一个类的属性和方法。 关联可以是双向的,也可以是单向的。双向的关联可以有两个箭头或者没有箭头,单向的关联有一个箭头。 来源: https://www.cnblogs.com/zyf3855923/p/12018985.html

Visio 2003: UML class diagrams - abstract class

六眼飞鱼酱① 提交于 2019-12-10 23:13:13
问题 I am trying to create UML diagrams but can not mark a class as Abstract. Please help. 回答1: Right-click on the class, either in a static structure diagram, or in the Model Explorer. Activate the "Properties" context menu item to bring up the properties dialog for that class. On the first tab, check the "IsAbstract" checkbox. The class will now be displayed in italics. 来源: https://stackoverflow.com/questions/1712340/visio-2003-uml-class-diagrams-abstract-class

关于UML中类图关系的总结

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 23:07:45
关于UML中类图关系的总结 UML中的类图是一大难点,很多人对其中的六种关系的使用都分不清,看了网上的一些资料,感觉实用性都不是很大(我想我们在正常画图的时候应该遇不到鸭子和嘴这种情况),因此,笔者总结了一套自己的类图关系说明,希望可以跟大家分享一下,如果有说的不对的地方,请大家多多包涵。 基本概念 类图当中有六种关系,分别是依赖,关联,泛化,实现,聚合,组合。其中泛化和实现都非常好理解。泛化就是两个类之间有继承的情况,继承就是接口与实现之间的关系。这两种关系都非常好理解。接下来我们主要说说另外四种关系。 依赖 首先说依赖,它是这六种关系中依赖度最小的关系,我认为这种关系就是类与参数之间的关系,比如说我在第一个类中定义了一个int a的参数,而在第二个类中有一个函数save(a),也就是说第一个类的变量变成了第二个类的参数,同样的还有返回值之间的关系建立也是属于这种关系的,我认为这种关系就是所谓的依赖关系。 也就是说,依赖关系就是不需要创建对象,直接可以使用的关系。 关联 首先要说明一下,组合和聚合都属于关联,换句话说关联包括三种类型,一般关联,聚合,组合。其关联度的强弱为:组合>聚合>一般关联。 我认为关联与依赖的区别就是:关联的话就是说在一个类中定义了另一个类的对象,而依赖不定义对象的。 组合 首先从我认为最好理解的组合开始说起吧。我认为组合必须包含两个条件。1

Functional decomposition vs use case

我怕爱的太早我们不能终老 提交于 2019-12-10 20:53:34
问题 Functional decomposition is not used when applied to use case modeling. This phrase is a copied one from a question paper.What is the meaning of that phrase. This is not equal to the question What is Functional Decomposition? 回答1: Use cases deal with synthesizing functions, not decomposing them. A technician decomposes a system to find the pieces it is built of. A business analyst tries to stack single parts of a system on piles so they are formed around a single goal. A use case describes a

Generate getters and setters for PHP in Enterprise Architect

馋奶兔 提交于 2019-12-10 20:04:07
问题 I'm using Enterprise Architect to make a UML class diagram and generate PHP5 code. How can I generate getter and setter methods for a certain class? 回答1: Add the <<Property>> Stereotype to the attribute you want to create Getters and Setters for. For further reference see http://www.sparxsystems.com/uml_tool_guide/modeling/attributes.htm and http://www.sparxsystems.com/uml_tool_guide/modeling/createprop.htm 来源: https://stackoverflow.com/questions/15447025/generate-getters-and-setters-for-php

Android Class Diagram UML

雨燕双飞 提交于 2019-12-10 19:41:49
问题 I'm trying to create a class diagram for an android project. I want my classes represent the activities, services and interfaces that I will implement. There are several questions about it on the web, but I couldn't find a definitive answer. I know that there aren't specific rules for Android and UML, but I have some doubts. How can I represent the relationship between an Activity and a AsyncTask ? How can I indicate that an Activity has an intent to another Activity ? Maybe if someone has an

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

Linking activity diagram to entities to be accessed

社会主义新天地 提交于 2019-12-10 19:36:42
问题 How do we represent in an Activity Diagram, which entities are to be accessed or updated? Is this is to be done as part of an activity diagram, or to be done separately? 回答1: You specify which Classes are accessed or updated using Pins on an Action or using an ActivityParameterNode on an Activity . Those Pins look like little squares on the periphery of the Action , or rectangles on the diagram frame of an Activity , and you connect OutputPins to InputPins using ObjectFlows (which