uml

UML generalization and realization

限于喜欢 提交于 2019-12-01 17:44:54
I am pretty new to UML, so I have some questions about Generalization and Realization. I am modeling the behavior of an electronic microcontroller and I need to generate C++ code from the UML description. As far as I know, a class realizes an interface, that means it may provide the implementation of an interface. A generalization relationship may exist between two classes. In that case the derived class inherits all the members of the base class and gains access to public and protected members. Here is my question (I am using Visual Paradigm as modeling tool). Let us assume we have a module

How often is UML diagramming used “in the real world?” [closed]

梦想的初衷 提交于 2019-12-01 17:21:58
Almost every one of my programming classes has made use of UML, but none have really explained when or where it might be used in a professional setting. Is it done for every single file in a project, or is there some rule of thumb of when you might want to use it? Also, is it more commonly done by hand (which I've always dreaded) or using some sort of generator? xmojmr This question is very good example of opinion-based and very broad question with no real problem to solve behind it and no one correct possible answer Certainly in the amount of millions of software developers there are some who

How often is UML diagramming used “in the real world?” [closed]

混江龙づ霸主 提交于 2019-12-01 16:30:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . Almost every one of my programming classes has made use of UML, but none have really explained when or where it might be used in a professional setting. Is it done for every single file in a project, or is there some rule of thumb of when you might want to use it? Also, is it

UML类图与时序图

∥☆過路亽.° 提交于 2019-12-01 15:07:06
UML统一建模语言 结构式图形: 静态图(类图,对象图,包图) 实现图(组件图,部署图) 剖面图 复合结构图 行为式图形: 活动图 状态图 用例图 交互式图形: 通信图 交互概念图(2.0) 时序图(2.0) 时间图(2.0) UML类图: 类名用 正体书写 则说明这是可以实例化的 普通类 。 类名用 斜体书写 ,则说明这是 抽象类 。 类名有 下划线 修饰则说明这是 静态类 。 类图描述的是一个接口,在接口名的上方需要加上《interface》的修饰符 +”public型 “#”protected型 “-”private型 “~”默认型 下划线修饰则说明这是静态属性/方法 用于表示类,实例,接口之间的静态关系;注意UML箭头方向:子类指向父类; 空心三角+实线:继承父类; 空心三角+虚线:实现接口 虚线:依赖关系;【一个类方法使用另一个类作为参数或返回值】 实线:关联关系;【一个类作为另一个类的属性】 空心菱形:聚合关系;整体与部分的关系, 且部分可以离开整体而单独存在 实心菱形:组合关系;是整体与部分的关系, 但部分不能离开整体而单独存在. UML时序图: 显示对象之间交互的图,这些对象是按时间顺序排列的;建模元素包括: 对象,生命线,控制焦点,消息; 来源: https://www.cnblogs.com/Magic-Dev/p/11689904.html

Have I to use the same actors for those extending or included use cases? [closed]

无人久伴 提交于 2019-12-01 14:14:13
I am currently refreshing/altering my knowledge in software development because I will work in this area soon. We have learned a lot about UML diagrams and coding at University, but I have never brought it all together in a real Project. Therefore, I started to create a test web-app in Grails, and I wanted to begin with a requirements analysis and use cases too keep it close to reality. My web-app should allow users to share recipes, find recipes and review recipes by other users. Every recipe has many ingredients, which are not just strings but rather entities so that calories, fat, protein

UML relation between usecases (extend/include)

亡梦爱人 提交于 2019-12-01 14:09:00
I do not understand well following topic since it is a bit ambiguous from what I read: Inlcude is like a reference to next part, the usecase is not completed without it. This part should be referenced from more places otherwise its use has no sense. But I have seen an example when there is "include" only in some IF statement is true, like: Add new product--->include--->Add new manufacturer . //Adds only when doesnt exist. Why there isnt "extend"? Is it because somewhere else could be "Add new manufacturer" used once again? Thanks Exactly. Once you extend another use case you've reached the end

Have I to use the same actors for those extending or included use cases? [closed]

我的未来我决定 提交于 2019-12-01 12:26:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am currently refreshing/altering my knowledge in software development because I will work in this area soon. We have learned a lot about UML diagrams and coding at University, but I have never brought it all together in a real Project. Therefore, I started to create a test web

UML relation between usecases (extend/include)

旧城冷巷雨未停 提交于 2019-12-01 12:16:21
问题 I do not understand well following topic since it is a bit ambiguous from what I read: Inlcude is like a reference to next part, the usecase is not completed without it. This part should be referenced from more places otherwise its use has no sense. But I have seen an example when there is "include" only in some IF statement is true, like: Add new product--->include--->Add new manufacturer . //Adds only when doesnt exist. Why there isnt "extend"? Is it because somewhere else could be "Add new

How to get feedback on design [closed]

ぃ、小莉子 提交于 2019-12-01 11:26:41
As we know design is most important part of Software Development, I want to practice it. But problem is, I cannot get feedback on my design, is there any website where we can submit design (like UML diagrams) and community will review it. Thanks in advance. Joris Van Regemortel Use the Code Review section on stackexchange. 来源: https://stackoverflow.com/questions/17396594/how-to-get-feedback-on-design

Is this an aggregation?

我怕爱的太早我们不能终老 提交于 2019-12-01 11:24:27
问题 I have the following code public static void main(String[] args) { Engine engine = new Engine("This Engine!"); Car b = new Car(engine); b = null; } Is this an aggregation? I always think that an aggregation is when something can still "live" even if the other class is "destroyed"... so for example Car and Engine. if I delete the Car instance, the Engine can still live. Is this correct? 回答1: First, I would say that your code would look better when you do Car b = new Car(); b.setEngine(engine);