uml

How can I model this class in a database?

让人想犯罪 __ 提交于 2019-11-28 14:20:56
I need a little of help. This is my design to organize several categories. Category 1 Sub Category 1.1 Sub Category 1.1.1 Sub Category 1.2 Sub Category 1.3 It would be a collection. I want to store it in a database, but I don't know how can I model it in a database table. I'm using SQL Server CE. UPDATE : I forgot put the objective number in the class (1.1, 1.1.1). You'd have a table something like this: category id (primary key, not null) name (text, not null) parent_category_id (foreign key to category.id, nullable) Then, if a category has a parent, you reference the id of that other row. So

UML Class Diagram for User Login

妖精的绣舞 提交于 2019-11-28 14:12:29
问题 The diagram below is my very first attempt at creating a UML class diagram describing a user login into a website. I'm sure its a poor design and full of flaws, but I'm hoping to learn from you guys how you would design a simple login like this. I'm particularly interested in your use of design patterns and which patterns you would use, how you would implement it in the design, and why. Any advise, criticisms, comments and suggestions will be really appreciated. Thanks in advance. 回答1: Here

8.每周总结

岁酱吖の 提交于 2019-11-28 12:35:11
这周做的事 继续自学UML和java; 去pta平台练习基础编程; 学习html; 每天坚持阅读 下周将做的事: 1.进入PTA平台进行程序的编写; 2.阅读java程序设计 用java实现一些 复杂 的程序; 3.每天自学1-2个小时的JAVA; 4.自学html和UML; 来源: https://www.cnblogs.com/zzmds/p/11407405.html

假期周进度报告8

别等时光非礼了梦想. 提交于 2019-11-28 12:21:39
  本周每天都敲了2-3道PTA的题,目前PTA所做题目分数已达到老师的要求。并且预习了部分建模语言UML的知识。   下周要看完UML,进一步学习JAVA的知识。   本周遇到的问题是不清楚JAVA中对类和方法的限定的适用场景。 来源: https://www.cnblogs.com/wuren-best/p/11407029.html

Is correct relationships of class diagram in UML?

笑着哭i 提交于 2019-11-28 11:52:45
问题 The image shows the logistics of the Warehouse. Very very simplistic. What is its concept: There are documents: ReceivingWayBill , DispatchingWaybill , ReplacementOrder . They interact with the main classes: Warehouse , Counterparty , Item . And the Register class: ItemRemainsInWarehouse . It turns out, the document is confirmation of the operation, reception, sending, and so on. The Register simply stores information about the number of remaining goods. If you miss a lot of problems of this

UML Class diagram C++ struct

你说的曾经没有我的故事 提交于 2019-11-28 11:32:26
How can I show struct members in the UML class diagram. In class diagram, I added struct as attribute and don't know how to add 'x', 'next' elements to that struct. if I generate the C++ from class diagram, it should have 'x' and 'next' elements in struct. class LinkList { private: // how to show the struct and its members in UML class diagram struct node { int x; node *next; }*p; public: // add an element void append(int num); // counts number of elements int count(); }; something like this?! and you would just remove the <<ptr>> stereotype and use the * as well, like +next:node* 来源: https:/

Representing a C# Generic Method in a UML Class Diagram

眉间皱痕 提交于 2019-11-28 11:12:24
I have the following interface: public interface IRegisterable { T Register<T>(string username, string passw) where T : User, ICanLogin, new(); } User is an abstract class, and ICanLogin is another interface. Now, I want to represent the above interface with its method in a UML Class Diagram, in Visio. How can I represent the above generic method with its constraints in a Class Diagram ? UML does not support type parametric methods directly. About the closest you'll get is to define a nested class which has the type constraints with a stereotype which you will interpret as meaning it's a type

第八周的收获

眉间皱痕 提交于 2019-11-28 11:02:25
今天离开学只剩一周了,开始了暑假作业的收尾工作,这个暑假要求达到500分的pta上的题,还有要求的实验报告,我这周主要是写完了pta和pta相关的实验报告,还有看了UML的第一章导言,知道了什么是统一建模语言,UML的发展史、UML的结构模型和行为模型,看了第一章的用例图,知道了用例之间的关系,这周没有对Java进行复习,主要是对假期作业的总结和对作业的完成。 来源: https://www.cnblogs.com/1234yyf/p/11405948.html

How to show usage of static methods UML Class Diagram

青春壹個敷衍的年華 提交于 2019-11-28 10:57:54
How do i show the use of static methods in a UML class diagram? class A{ public static void test(){ } } class B{ public void b(){ A.test(); } } How would a class diagram look like, which shows the relationship? UML 2.0 would be prepared, if there is a difference. To show a static method you underline the name of the static method - have a look here for more detailed info. As for navigating that relationship; class B is dependent on the existance of class A . We can say that class B has a "usage dependency" on class A class B ----uses----> class A Hope this helps. umlcat @RobertMS is right.

IntelliJ IDEA UML shortcut

…衆ロ難τιáo~ 提交于 2019-11-28 10:57:36
问题 According to this page I can get UML model using "CTRL+ALT+U" shortcut. But I cannot make it work in my instance of IDEA, Community Edition version 13.1.3 回答1: Possible steps: 1) Right click on a package from the project panel 2) Near the bottom of the popup, select "Diagrams" then "Show Diagram" 3) Hopefully you will see a class model of the package. 回答2: Diagrams are not available in the Community Edition. Community vs Ultimate editions comparison. 来源: https://stackoverflow.com/questions