uml

UML help C# Design Principles

断了今生、忘了曾经 提交于 2019-11-30 16:12:51
I have a problem understanding an UML below: Specifically, what is the relationship between PersistentSet and ThirdPartyPersistentSet ? What is the relationship between PersistentObject and ThirdPartyPersistentSet ? Please note that the UML is from Agile Principles, Patterns, and Practices in C# By Martin C. Robert, Martin Micah 2006. Chapter 10 Thanks in advance! The relationship between PersistentSet and ThirdPartyPersistentSet is an Aggregation, which means the PersistentSet contains one or more ThridPartyPersistenSet instances. This is a "weak" relationship, meaning the instances of

Where could I find some UML samples? [closed]

Deadly 提交于 2019-11-30 16:06:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I need a punch of samples of UML diagrams to get an start point to develop my own diagrams. Does anyone know about a good website where I could find it? Thanks! 回答1: The best resource for learning UML is Martin Fowler's "UML Distilled". Now in its third edition, this thin gem has stood the test of time. 回答2: I

Free Tools to Automatically Create UML Diagrams from an Existing .Net Project

ⅰ亾dé卋堺 提交于 2019-11-30 16:06:31
问题 Are there any free tools to automatically create UML diagrams from an existing .Net/Visual Studio 2005 projects? 回答1: If you are using Visual Studio Team Suite 2005 (note: not 2008) I believe you have the option to reverse engineer the .Net code into UML in Visio, Note, this doesn't apply to Visual Studio Team Suite 2008! To reverse engineer .Net code into UML with Team Suite 2005 you should be able to click on the following menu items: Projects -> Visio UML -> Reverse Engineer. For Team

UML-设计模式-本地服务容错-代理模式

廉价感情. 提交于 2019-11-30 16:04:57
在《 本地服务容错-适配器+工厂模式 》中,总是优先尝试本地服务。但是,有时候需要先尝试外部服务,然后才是本地服务。GoF的代理模式可以解决这个问题。 1、代理模式的一般结构 2、使用代理模式解决本地服务容错 代理模式:代理类和被代理类,接口相同。 适配器模式:接口可不相同,主要是为了兼容老系统接口。 来源: https://www.cnblogs.com/yaoyuan2/p/11603128.html

UML-线程标示法

醉酒当歌 提交于 2019-11-30 15:53:12
继续前一章《 缓存策略 》,既然用缓存,那如何保证数据同步呢?即:缓存里的数据和DB里的数据一致。 解决:LocalProducts每隔N分钟查询并更新它的缓存(定时器) 如果LocalProducts对象每隔N分钟查询并更新它的缓存来解决数据一致性问题时,那么可将其设计为拥有控制线程的主动对象(active object)。线程休眠N分钟,唤醒后读取数据,再次休眠,如此反复。UML中提供了标示线程和异步调用的表示法,如图: 来源: https://www.cnblogs.com/yaoyuan2/p/11602470.html

Does a relation (aggregation, composition) replace an attribute?

戏子无情 提交于 2019-11-30 15:48:32
问题 I'm pretty new at UML modelling so bear with me. Say I have a class with an attribute students that is a list of Student instances. I have set an aggregation relation to the Student class which is also in the diagram. Does this relation replace an attribute entry such as #students : Student[] in the container class, or can the attribute and relation co-exist? Thanks in advance for any answers! 回答1: Short answer: Can the attribute and relationship both exist? No... But if your classes are

Where could I find some UML samples? [closed]

↘锁芯ラ 提交于 2019-11-30 15:36:26
I need a punch of samples of UML diagrams to get an start point to develop my own diagrams. Does anyone know about a good website where I could find it? Thanks! The best resource for learning UML is Martin Fowler's "UML Distilled" . Now in its third edition, this thin gem has stood the test of time. I've found Agile Modeling to be a good resource for samples, and +1 for UML Distilled. Here you can find a good bunch of described examples: http://it.toolbox.com/blogs/enterprise-solutions/using-the-uml-a-live-example-21114 by the way it would be useful to know which kind of UML diagrams are you

UML representation of PHP trait

拥有回忆 提交于 2019-11-30 15:31:13
问题 I'm creating projects with Symfony2/Doctrine and try to implement traits. So far no problem on small tryouts, but I usually do UML class and sequence diagrams before deep in complex projects. What is the UML design object(s) to be used to symbolize PHP traits, which can be seen as far as I know as behaviors? Is ther any clean way to do so? Thanks a lot for your answers ! Nicolas 回答1: PHP Trait is basically UML Abstract Class or UML Class Template connected to the used-in class with the UML

UML representation of PHP trait

回眸只為那壹抹淺笑 提交于 2019-11-30 15:26:03
I'm creating projects with Symfony2/Doctrine and try to implement traits. So far no problem on small tryouts, but I usually do UML class and sequence diagrams before deep in complex projects. What is the UML design object(s) to be used to symbolize PHP traits, which can be seen as far as I know as behaviors? Is ther any clean way to do so? Thanks a lot for your answers ! Nicolas xmojmr PHP Trait is basically UML Abstract Class or UML Class Template connected to the used-in class with the UML Generalization Relationship utilizing the multiple inheritance notation See also: Figure "UML Diagram

UML association and dependency

吃可爱长大的小学妹 提交于 2019-11-30 15:21:43
What is the difference between association and dependency? Can you give code examples? What is the relationship between class A and B? class A { B *b; void f () { b = new B (); b->f(); delete b; } } The short answer is: how any specific source language construct should be represented in UML is not strictly defined. This would be part of a standardized UML profile for the language in question, but these are sadly few and far between. Long answer follows. In your example, I'm afraid I would have to say "neither", just to be difficult. A has a member variable of type B , so the relationship is