uml

Game engine design choice [closed]

拈花ヽ惹草 提交于 2019-12-04 19:56:20
I heard composition is preferable over inheritance. So when I design my simple game engine I tend to do the following: http://yuml.me/1252399d instead of: http://yuml.me/51cacb4f Is this a good approach, or should I reconsider? Edit: To clarify the notation. The arrows means inheritance, the arrows with a diamond means composition and the <<>> means interface. More info on the notation is available at the yUML webpage . OK, there are a few things to cover here. First: why do you need to express commonality between PointLight and Spotlight ? Is it Because there are clients who simply want to

bi-directional and uni-directional associations UML

喜欢而已 提交于 2019-12-04 19:15:13
问题 While I think I understand aggregation and composition , I am having difficulties understanding bi-directional and uni-directional association. I've read that with bi-directional association, both classes know about each other and with uni-directional association only one of the classes is aware of the relationship. However this explanation seems too abstract for me and I would like to know what this in particular means for my code and for the program I am writing. It would be very nice if

Enterprise Architect 8 > Displaying Inheritance Chain for a Class

主宰稳场 提交于 2019-12-04 19:01:36
I have imported a PHP source folder into Enterprise Architect. Now, I'd like to see the inheritance chain of any specific class. In other words, I'd like to see one big diagram displaying all relations of a class. Most classes are in folders separate from the parent/child class. How can I do that..? This was my reason for installing Enterprise Architect: I get confused within a lengthy and branched inheritance chain. It would be very disappointing if such a powerful tool that recognizes all relationships could not give an overview of these relationships. For example, I can see a class diagram

Is there an agreed UML diagram style for documenting or illustrating the role of (Docker) containers in a system architecture specification? [closed]

混江龙づ霸主 提交于 2019-12-04 17:54:33
问题 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 last year . I'm planning to draw some UML structure diagrams that illustrate the place of Docker images (or containers, in deployment diagrams) in the overall structure of the software I am architecting. I'm interested in illustrating the contents of containers, the mapping of network

How to read XMI?

蓝咒 提交于 2019-12-04 17:51:18
问题 I need to read UML diagrams that are serialized into XMI. Is there any library that would allow me to conveniently read UML XMI - by conveniently I mean having some methods to iterate over classes/packages/methods/attributest etc. in model. I tried EMF, but I am unable to find any tutorial that would show how to import XMI containing UML. I have also found NSUML/NSMDF but the link to documentation is broken. 回答1: I don't think what you want exists. All tools importing XMI that I know

How to represent Callback in UML Class Diagram

时间秒杀一切 提交于 2019-12-04 17:46:26
问题 I have an Interface say Interface ICallback { public void informFunction(); } I have a Class say: Class Implementation implements ICallback { public Implementation() { new AnotherImplementation(this); } @override public void informFunction() { // do something } } Now consider a class where in the instance of Class Implementation is passed as a interface and is used to make a callback. Class AnotherImplementation { public ICallback mCallback; public AnotherImplementation(ICallback callback) {

Is there a visual diagram format for gui event mapping?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 17:39:54
Does anyone know of any kind of UML variation which can map events in a GUI system? I have a quite complex event driven GUI system and I would like to create a diagram so new developers can easily get an overview of events fired by various views and what models/controllers or view are instantiated/effected by these events. I was looking for something that would look more like a mind map which branches all over the place rather than linear scenarios. Does anyone have any ideas? Regards, Chris State diagrams. Old and pricey, but here is a great text on modeling user interfaces with state charts.

Can I write comments in UML Class diagram?

帅比萌擦擦* 提交于 2019-12-04 17:35:28
问题 What symbol should I use ? 回答1: Below is an extract from the Unified Modeling Language specification. The complete specification is available at http://www.omg.org/spec/UML/2.3. 9.5.1 Comment A comment is a textual annotation that can be attached to a set of elements. Description A comment gives the ability to attach various remarks to elements. A comment carries no semantic force, but may contain information that is useful to a modeler. A comment may be owned by any element. Notation A

Difference between Sequence & Communication Diagram (UML) [closed]

不羁岁月 提交于 2019-12-04 17:17:10
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 . What is the difference between sequence diagrams and communication (collaboration) diagrams in UML? Quoting Wikipedia : Communication diagrams show a lot of the same information as sequence diagrams, but because of how the information is presented, some of it is easier to find in one diagram than the other . Communication diagrams show which elements each one interacts with

How do you show instantiation in a UML Sequence Diagram?

风格不统一 提交于 2019-12-04 17:12:52
问题 How do I show that the WebServer instantiates a View and gets back control of the flow? Maybe I'm not using the right type of diagram? Thanks a bunch! 回答1: The diagram from Ruben's answer is correct, but general UML answer is missing. It creates the other lifeline when the "create" line (dashed in this case) connects to the box/label/top of the created life line. From example: WebServer in it's action creates a View and the action done by the view creates the Widget. ----- | a | ----- | []---