class-diagram

Project and software analysis - where to begin?

会有一股神秘感。 提交于 2019-12-13 04:08:38
问题 Recently i took project and software analysis lessons. At first i found the subject kinda boring but then i began to see the importance of them. Modeling is pretty important. My teacher showed us some basic diagrams: classes, use cases, sequence and statemachine. It was only 7 lessons and now i want to pursue further education on the subject. As a developer, i think it would improve my work. Where do i begin? Any books or web sites? I'm still pretty much a newbie at it so please, not too much

Understanding the code process of Ccleaner [closed]

吃可爱长大的小学妹 提交于 2019-12-13 03:55:13
问题 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 5 years ago . How does a Register cleaner tool works if you would analyze the code ? I'm not asking for specific code here...I'm just wondering the code for a tool like Ccleaner for instance is working, roughly explained. The reason why I ask this is because I want to create an class diagram

Displaying a composition & dependency relationship in class diagrams using Visual Studio 2008

只愿长相守 提交于 2019-12-12 13:16:05
问题 I am trying to display a composition and dependency relationship in a class diagram using VS 2008, but there are no diagrams associated with the above mentioned relationship. Please help me with this. 回答1: Visual Studio 2010 Ultimate supports composition, dependency, and many other relationships on UML class diagrams: UML Class Diagrams: Reference : http://msdn.microsoft.com/en-us/library/dd409437%28VS.100%29.aspx 5 : Association : A relationship between the members of two classifiers. 5a :

is UML class diagram necessary to design the UI?

老子叫甜甜 提交于 2019-12-12 03:06:27
问题 I am trying to design a UI based on Use cases, activity diagrams and sequence diagrams. is it necessary to design the Class diagrams for the UI design? 回答1: No diagrams are needed to write the code, but it would make the life hell for a 3rd person to understand the application and work on it. As famous English proverb, images are better than 1000 words. UML diagrams are one of the easy and standard ways to document the application architecture. If you are building the application for your own

Class Diagram - How to describe a graph datatype?

99封情书 提交于 2019-12-12 02:18:24
问题 How do I represent a graph data-type in a class diagram Class Diagram: http://www.uml-diagrams.org/class-diagrams.html Do I have to specify how graph data-type is implemented? Or is there a symbol to denote a graph? 回答1: UML itself includes diagrams that are graphs (state machine diagrams, activity diagrams) but will not provide what you are expecting. UML is originally conceived for object-oriented programming, not programming in general. It will allow you to represent object-oriented

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

What is the difference between conceptual domain models, application class models, and consolidated class models?

痴心易碎 提交于 2019-12-11 13:15:47
问题 I need to make these three UML diagrams for a class project, but they all seem like the exact same thing, a class diagram. 回答1: The difference is the level of abstraction those models deal with the reality they try to reflect. The conceptual model is just a rough draft of the domain. You try to gather business objects (contents and relations). The application class model is one that is designed towards coding the system under consideration (SUC). The term "consolidated class model" is not a

Interfaces, inheritance and Genrics in UML Class Diagram

你说的曾经没有我的故事 提交于 2019-12-11 11:16:32
问题 I'm modeling a persistence layer based on DAO pattern and I have some doubts related to the use of Genrics and interfaces inheritance. I'd start saying that basic CRUD operations are the same for all the persistable entities so I've decided to provide a basic DAO interface using Generics. Then there would be other interfaces that inherit the basic contract plus some other specific methods related to the entity that will be managed by the concrete implementation. It may sound complicated but

UML Class Diagram - Notation for 'OR'

天大地大妈咪最大 提交于 2019-12-11 11:08:01
问题 I have 4 tables: Doctors ID,Name,roomNumber Appointments ID,whenOccured,ifAttended Patients ID, name, address DPappointments DoctorID,PatientID,AppointmentID this roughly becomes However, i now want to change it such that an appointment can be made to see either a Doctor OR a NURSE? How can i change the class diagram to reflect an 'OR' type relation? 回答1: Depending on the rest of your model's structure, there are different solutions. I supose there is also a class Nurse and that id does not

How can I model a custom exception association in a class diagram?

笑着哭i 提交于 2019-12-11 10:32:30
问题 Reading here, it seems modelling a custom exception class using a generalisation is common place. What it doesn't mention is how I can model an association with a class that could potentially throw the custom exception. Note, I'm not asking how to model the sequence behaviour when it comes to raising the exception; I'm specifically wanting to model the association. Or is this a misuse of the class diagram? 回答1: Probably like this: Note that <<throws>> isn't a standard UML stereotype. There's