uml

Association Class vs. Attribute

谁都会走 提交于 2019-12-24 12:04:30
问题 Let's assume I have 2 classes with association relation. What is the difference between adding attributes to one of the classes and adding an Association Class with attributes? I understand that association class describes the association relation, but cannot I use simple class attributes instead? What are the added values of Association Class? 回答1: Association and attributes are actually different renderings of the same thing. The difference is more a bit of esoteric nature. An association

A diagram for Procedural PHP pages?

折月煮酒 提交于 2019-12-24 12:02:40
问题 I have an application made with php. It is not object oriented. But there is a logic between pages. Example: if connected go to page A , else go to page B Is there any diagram to represent this logic between php pages? Can I use UML sequence diagram in this case even without POO ? 回答1: You could use a wireframe profile for this. Each screen is a class (which might consist of classes for widgets). Now you may use controller classes, if if you had coded the, procedural. That could show the

UML notation for 'ending' composition

我只是一个虾纸丫 提交于 2019-12-24 10:11:58
问题 Is there a UML notation for how many levels deep a recursion can be? In a simple composition model I have branches that can have branches or leaves. But a branch can only have a kid-branch and a grandkid branch, after that, It only can have leaves. Thanks! 回答1: Not in UML but there is suplement called OCL (Object Constraint Language). Here is specification http://www.lri.fr/~wolff/teach-material/2008-09/IFIPS-VnV/UML2.0OCL-specification.pdf 回答2: You can always add manually a constraints on

UML class diagram: Association or Composition?

三世轮回 提交于 2019-12-24 10:04:28
问题 I'm a little confused on what the relationship would be for the scenario below. When examples of composition are used they always tend to use simple ones such as rooms and a building. This scenario is that doctor patient visits are recorded. Would it be an association, composition or a mix of both? I've included a picture below of the two different relationships I am stuck between. I am thinking composition because the visit belongs to each party? Derived association 回答1: In general my rule

UML CLASS DIAGRAM: FITNESS TRACKER

邮差的信 提交于 2019-12-24 09:48:37
问题 Hey I am new to making class diagrams and I am assigned to make a simple class diagram for a fitness program my team is going to develop. I am good with making the classes and attributes. I am having a problem with the relationships part of it, aggregation and all of that good stuff. Here is a simple run down: There is a trainer, and each trainer has one client. There is a before and after report for each client. Also there is a daily workout regiment, weekly prescription and logs, for each

UML context diagram

强颜欢笑 提交于 2019-12-24 07:38:01
问题 May i know what is UML context diagram? I went online and searched for it and what i get is a system context diagram with process, entity and data storage. If they are the same, why is it called UML context diagram instead of context diagram. 回答1: A UML context diagram does not exist. The UML defines many diagram types but no context diagrams. In UML you would use e.g. use case diagrams for the same purpose. 来源: https://stackoverflow.com/questions/13676386/uml-context-diagram

Linux Device Drivers 3Ed File IO & How to Influence Scheduling with Explanatory UML Diagrams

落爺英雄遲暮 提交于 2019-12-24 05:11:39
问题 I've used UMLet to draw some UML diagrams describing various entity relationships for each of the chapters of Linux Device Drivers 3Ed (LDD3), by Corbet, Rubini, Kroah-Hartman. The latest version of the diagrams can be found here: Linux Device Drivers 3Ed UML Diagrams I would like to ask help understanding a scheduling problem which is supported by documentation in the Non-Blocking File IO Sequence Diagram(s) at the above link, and in LDD3 on P156-158, and in particular this code snippet from

UML: 1-To-Many Relationship Representation?

走远了吗. 提交于 2019-12-24 04:37:06
问题 I am new to UML, and I don't quite understand the notation yet. This is my understanding of the diagram. The system has many doctors. Doctors can have many patients; however, patients can only have one doctor. Therefore this is a **One-To-Many** relationship However, I feel like this can also be interpreted as... The system has 1 doctor. That one doctor has many patients. Which is the correct interpretation and why? 回答1: To put it simply: your first interpretation is correct. Each Doctor is

Breaking down CRUD In Use Case Modeling

自古美人都是妖i 提交于 2019-12-24 04:09:07
问题 I have a follow up question from CRUD in a use-case diagram? If i am required to break down complex use case such as " Manage User " (Let's assume this is complex), would it be alright to extend them into different cases? Or should i use include? 回答1: This is fine. <<extend>> means that the extending UC is optional. As a side note: avoid <<extend>> and <<include>> since they are a sign of functional decomposition. And that's not what you are supposed to do with use case synthesis. CRUD

UML class diagram for simple web portal [closed]

我与影子孤独终老i 提交于 2019-12-24 02:18:07
问题 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 3 years ago . I want to ask you about my class diagram. I'm making a class diagram for simple web portal for my weekend university studies. Is it made correctly? What would you change if I you were mine? Use cases you can find here Class diagram from use case diagram. Should I create each