uml

Better UML class diagram structure to represent marriage of individuals

走远了吗. 提交于 2020-07-22 10:57:27
问题 Currently I am working on a part of a bigger project, but I am not quite sure how to approach this part of the system. Each individual can be married multiple times, each marriage needs to have an officiant, partner1, partner2 and witnesses. Individuals can represent these roles in multiple marriages. I am wondering if there is a way to represent all of the necessary individuals with less associations, since the diagram quickly turns into a mess when looking at the whole system. Updated class

Can a [GoF]-ConcreteSubject override the notify method?

本秂侑毒 提交于 2020-07-21 03:36:13
问题 I'm modelling a situation in wich there are: NotificationBox : the observer list1 , list2 , list3 : the subjects now I would make a piece of diagram in wich using observer pattern describe the fact that each list implement different type of notify() (for example some change in the state of a list need to be notified only to some observer, with some criterion) I made something like: in this case each subject override the notify method in order to notify only some subset of observer depend on

Automagically create class diagram from java code in umbrello?

心不动则不痛 提交于 2020-07-20 08:23:24
问题 I was able to import the java code into umbrello. However, how can I generate the class diagram automagically? Perhaps umbrello does not have that feature. 回答1: From the handbook: Note that Umbrello UML Modeller will not create any kind of Diagram for showing your classes, they will only be imported into your Model so that you can use them later in any diagram you want. Once you've done that, it looks like you just drag and drop the items onto the class diagram and it even connects them for

How to correctly use port and interfaces in a UML2 component diagram

99封情书 提交于 2020-06-27 17:31:30
问题 I haven't understood well how to use port, connector and interfaces in a UML2 component Diagram. I understand that a component can be a physical or a logical component, is the same with interfaces? For example a required import becomes a required interface in component diagram or a simple usage as in class diagram? And also I don't understand the concept of a port as an interaction point: is only a representation of enter and exit point in amicroservice? To understand I've made two very

What is Navigability in UML diagrams?

巧了我就是萌 提交于 2020-06-22 22:57:27
问题 What is an example of Navigability in UML diagrams? My professor has provided the follow figure, but I can't seem to figure it out: 回答1: This shows navigability. A can see (means it has an attribute referencing) B . In contrast B has no idea about/reference to A . UML spec: Arrow notation is used to denote association end navigability. By definition, all class-owned association ends are navigable. By convention, all association-owned ends in the metamodel are not navigable. An association

Override method in uml

心不动则不痛 提交于 2020-06-15 19:59:50
问题 I am trying to create UML diagram. For example I have a class A with method a() and class B that extends A and overrides method a(). Is there any standard to indicate overridden methods in UML? 回答1: As indicated in that answer https://stackoverflow.com/a/28932482/2458991 there is a specific indicator to indicate a member (for instance an operation) is inherited, but that indicator is not mandatory, the norm says : Members that are inherited by a Classifier may be shown on a diagram of that

Are there any good + free + Lightweight+ Linux UML Design tools? [closed]

為{幸葍}努か 提交于 2020-05-24 08:07:07
问题 Closed. This question does not meet Stack Overflow guidelines. 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 am looking for a UML design tool (just for design, no need for code generation). Key features Free For Linux Easy to use Lightweight 回答1: Most of the UML tools for Linux look really bad, but you could use these: ArgoUML (Java based, I had some glitches with diagrams) Umbrello Violet

UML use case diagram for a plugin performing various functions through importing a CSV

旧时模样 提交于 2020-05-16 22:35:52
问题 I'm creating a plug-in which adds various functions on top of a core application. The plug-in gives administrators the ability to upload a CSV file and performs the following functions depending on the information entered in the file (by performing operations on the database of the core application): Creating users Can be administrators or normal users Creating projects Can be parent projects or sub-projects of a parent project Sub-projects get copied from a given parent project (so the

UML use case diagram for a plugin performing various functions through importing a CSV

怎甘沉沦 提交于 2020-05-16 22:35:27
问题 I'm creating a plug-in which adds various functions on top of a core application. The plug-in gives administrators the ability to upload a CSV file and performs the following functions depending on the information entered in the file (by performing operations on the database of the core application): Creating users Can be administrators or normal users Creating projects Can be parent projects or sub-projects of a parent project Sub-projects get copied from a given parent project (so the

Implementing Composition in Java

此生再无相见时 提交于 2020-05-13 04:18:22
问题 class Book { private Chapter[] chapters = new Chapter[5]; } class Chapter { private Book book; } Is this the correct way to implement the above relationship? I need explanation on this. Thanks. 回答1: That is not enough. In Composition relationship, If whole instance is destroyed, the part instance should also be destroyed immediately . You should have some codes (some machanisms) to do that. For example if you push the instances of Chapter s from external the class (for example by using a