uml

Differences between EER and UML

大憨熊 提交于 2019-12-12 01:03:05
问题 I'm putting together a visual representation of a database I designed. I've downloaded MySQL workbench and can create a EER diagram. What's the difference between this and a UML diagram? Also, where does a ERD come into this? I can't find a question on here that matches what I'm after here? Thanks. 回答1: I think by UML diagram you mean : UML Class Diagram. [ there are other UML diagrams also] EER (Enhanced entity–relationship) Diagram-Model Used for Database Design . Like class diagrams

sequence diagram for books exchange

ε祈祈猫儿з 提交于 2019-12-11 22:28:23
问题 Please can anyone suggest any improvements or corrections in the attached sequence diagram. The diagram is regarding student registration and search book. 回答1: You should not think on classes creation being in sequence diagram. Make a class diagram, maybe an object diagram, and after that make your sequence diagram with instances of created classes as timelines. Add a class diagram here, without it it is impossible to answer your questions. As is, you are working with elements of use case

Java code which creates UML diagrams

给你一囗甜甜゛ 提交于 2019-12-11 20:43:17
问题 I'm creating a program that will reverse engineer Java Source code into a UML class diagram. I have it reading all of the method names etc already from the source code but I'm wondering if there is any inbuilt Java methods for generating UML such as something like: UMLdiagram u = new UMLdiagram(); Class c = new Class(); u.addClass(c); Is there anything like this or are there any external tools I could use to help draw the UML diagram given that I already know methods, class attribute names

Sparx EA: What type of relationship created when a Component is added to a Node?

只愿长相守 提交于 2019-12-11 20:25:12
问题 In this question (point #3), I asked about getting a Packaging Component recognized as contained by a Node (device or execution environment) on a deployment diagram. No direct answer. However, the answers to other points led me toward an alternative that seems simple in concept: manually create the relationship or link. So, I looked @ one of my Component <--> Node "containment" links to see what Sparx creates in the background. But, from the properties page / dialog of both the Component and

Associations between the classes with aggregation

故事扮演 提交于 2019-12-11 18:45:16
问题 I need to create an UML Class Diagram and I am not sure if I've done it correctly. I will show you on example. So ClassA has an instance of ClassB and ClassA calls methods from ClassC which take as attributes variables from ClassA and ClassB. Should I connect also ClassC with ClassB? Does the association between ClassA and ClassB should be directed? The implementation of the code below: ClassB { constructor() { this.str1 = "Hello"; } } ClassA { constructor() { this.str2 = "World"; this.objB =

Cocos2d with ARC: what is the best implementation of singleton pattern for GameScene when having multiple levels?

孤者浪人 提交于 2019-12-11 17:33:07
问题 EDIT: I am using ARC In my code (based on the ShootEmUp example in this book, which I highly reccomend, source code in chapter 8 available here) I often use the trick of accessing the GameScene via: +(GameScene*) sharedGameScene; which returns a reference to the static instance of GameScene and is used by all children of GameScene (e.g. ShipEntity, InputLayer.. etc..) to dialog with GameScene (EDIT: aka singleton instance of GameScene ). To create multiple levels I thought of implementing a

Is it possible to omit namespaces in VS 2010 Ultimate UML Editor?

南笙酒味 提交于 2019-12-11 17:17:56
问题 when designing UML models in Visual Studio 2010 Ultimate (with Visualization and Modeling Feature Pack 1) I always need to indicate the full Type name (including the namespace) in order to get code that compiles (when doing 'Generate Code...'). Is there a way to "import" namespaces into the model? I can 'Add Reference...' on the Modelling Project, but this won't work because VS puts it as a Layer Reference (which is something else unfortunately). Being forced to indicate the whole namespace

Uni/Bi direction X One/Many X Many/One Association relationships

两盒软妹~` 提交于 2019-12-11 16:54:07
问题 Following question also refers to discussion in following questions as well https://stackoverflow.com/search?page=2&tab=Relevance&q=one%20to%20many%20unidirectional%20java Best practise for adding a bidirectional relation in OO model I tried to implementing 8 association combinations formed by [Unidirectional/Bidirectional] X [(One/Many) to (One/Many)] in Java. I found two cases can not be implemented namely Unidirectional One to One and Unidirectional One to Many (e.g. Person->*Vehicle).

UML class modeling of callback functions/classes

廉价感情. 提交于 2019-12-11 16:15:35
问题 I'm no expert in UML, I just took a course before I graduated that spent a significant amount of time on UML modeling. I understand the basics but I was working on a project the other day and just for my own curiosity, I was wondering how you would model a callback. Here is a portion of the code I was working on class OnChangeHandler(): def my_init(self, rem, loc): self.remotes = rem self.locals = loc def process_IN_CREATE(self, event): #Do some work def process_IN_MODIFY(self, event): #Do

Can Database be count as actor in use case diagram?

核能气质少年 提交于 2019-12-11 16:09:30
问题 I am creating application for Diabetes log system. I am confused whether database in UML -Use case diagram count as actor or not ? the application is recording the diabetes glucose reading which will be saved in firebase and it can also retrieve the readings for showing the progress in chart format. please can someone help me? thank you. 回答1: No, databases should not be included in a Use Case Diagram of an isolated system. Databases are a static internal part of a system and do not directly