Questions tagged [class-diagram]

UML diagram describing object classes and relations among them.

A class diagram is a component of the Unified Modeling Language decribing object classes in the object oriented programming paradigm :

  • What they contain (attributes)
  • How they behave (methods)
  • How they are linked together (dependancy)
1529 questions
0
votes
1 answer

how can i show a conroller class in class_diagram? and what roles does it have?

i can't understand how a controller class can exist inside of a class diagram? and if it is possible what roles does it have and how can i detect such a thing? what design patterns can i find about deploying controller classes in class_diagrams? can…
sia
  • 401
  • 3
  • 8
  • 20
0
votes
1 answer

Need to understand Instance level relationship

I need to understand Instance level relationship in UML. I have read several documents regarding this but not getting satisfied. I am still confused in aggregation,composition etc. I know that some of you may feel that this is not the correct place…
shantanu
  • 1,748
  • 3
  • 19
  • 34
0
votes
1 answer

read string between two double quote php

good day, I have a UML class diagram exported to an XML file, and the code basically and repeatedly is like this: So,…
MichaelS
  • 15
  • 4
0
votes
2 answers

need to figure out class abstraction

I have a user class that contains name, email, city, state, zip. This is common to both sub groups of mobile user and web user. the sub group has different methods. Should user be an abstract class and the two sub groups be like so?
KiloJKilo
  • 465
  • 1
  • 6
  • 16
0
votes
2 answers

use case steps and use case scenrios

I am modelling a system and i have the following are some of my use cases{appoint teacher(adimin),record grades(teacher), manage students(admin),record attendance(teacher), manage cocurricular(admin)} I have some problems with coming up with use…
mnmyles
  • 75
  • 1
  • 6
0
votes
2 answers

does a class diagram reveal too much from a closed source program?

I was wondering if i can deploy a class diagram of a closed source program. does closed source standard (if there is) forbid such action? does it reveal too much information about the program / is it possible to recreate parts of the program?
Wandang
  • 912
  • 2
  • 8
  • 37
0
votes
2 answers

Determine Class Associations using Reflection

I am working on a solution that extracts all the class associations between each other. If we click a class in the object browser we can see the option Find All References. I want something similar that finds the associations a class has to other…
Afnan Bashir
  • 7,319
  • 20
  • 76
  • 138
0
votes
2 answers

UML MVC pattern List class use

When designing a class diagram for a theoretical MVC-Pattern-based system, is it best to use List classes? For example: With List class: Without list class: I personally feel the latter is a better approach due to less code duplication, is there a…
Chomp
  • 114
  • 2
  • 13
0
votes
1 answer

In UML what kind of association exists between two classes if one uses a static method of the other?

For example let's say we have a class called "Secretary" and another class called "Utils" Utils has some functions that do general stuff, for example finding the maximum of 3 integers. "Secretary" needs to call some of these functions and in this…
Jas
  • 15
  • 2
0
votes
1 answer

Should this be considered as a class in UML class diagram or as a type?

I am creating the class diagram for my project. I will use some WebViews in a class. My question is: Should I write the WebView class in my UML class diagram or can I only use a WebView as a type? For example, if a have a string: String a, in my…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
0
votes
1 answer

Which relationship line to use in a UML class diagram?

In a UML class diagram I want to show the relationship between two classes where the second class is the type of a class variable in the first. I've looked here but am still unsure which relationship I should be using. I think it may be the…
Chris
  • 3,036
  • 5
  • 36
  • 53
-1
votes
1 answer

Database : Account table with Joined Tables Inheritance

I have Joined Tables Inheritance in my database : a Client table that can be a Company or a Person. I need to create an account for the client but only one if it's a person and one or many if it's a company. I also have users for backoffice that…
Stov
  • 29
  • 5
-1
votes
1 answer

Write OCL restrictions related to associations with other classes

How do you model the following restriction? A place is popular if it has been bookmarked by 2 or more than 2 users. Here the corresponding uml diagram: uml I tried several ways, for example: context place inv: place.popular =…
JesusCrt
  • 23
  • 3
-1
votes
3 answers

How to mark classes as Obsolete on UML

I have a few classes on my UML diagram which should not be used, but still available. Is there any way to mark these classes as obsolete? I've seen <> notation somewhere, but can not find how to use it in MS Visio 2003. And another question.…
trailmax
  • 34,305
  • 22
  • 140
  • 234
-1
votes
1 answer

How to create facebook database diagram on small scale

How to create a Facebook database on small scale. about the project: User can signup and create a account (info is store in UserTB table) User can edit there profile & address informaion (info is store in ProfileTB & addressTB tables) User can add…
Xin
  • 1
  • 2