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

Can aggregation relationship in UML have one to one relationship

Can aggregation relationship in UML have one to one relationship? Our application is a store billing one. During billing we will provide member id to get him certain discount. So is relationship between member class and billing class a aggregation?…
Neil
  • 1,715
  • 6
  • 30
  • 45
0
votes
1 answer

how to define a constant member function in enterprise architect?

I can't get the **int getId() const; member function to be generated by enterprise architect How do I specify a constant member function in enterprise architect?
m4l490n
  • 1,592
  • 2
  • 25
  • 46
0
votes
1 answer

How virtual/abstract methods are displayed in class diagrams?

First, I am coming from the Java community, and still a learner in C++. Please have a look at the following classes The second picture shows a sub class of the class "GameObject". It also has a Display() method. There are 5 sub classes of the…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
1 answer

Visual Paradigm Class Diagram Drawing

I need to create a Class Diagram with some Model Packages. I have to use Visual Paradigm as modeling editor. The target I'm looking for is a diagram like this one: My problem is the following: how to create a Class like the classes in this…
eang
  • 1,615
  • 7
  • 21
  • 41
0
votes
1 answer

Class digram to Usecase

I am trying to make a use-case to my project but i have some problem with draw a use case Is their any software to convert Class diagram into Use-case?
0
votes
1 answer

Am I doing my UML diagram correctly?

So as mentioned this a Homework question so please go easy on me. basically I've got to create a use-case diagram for TWO sub-systems. I've got the jist of it however I cannot differentiate the two and am sort of confused on how they are meant to be…
Anish B
  • 39
  • 1
  • 8
0
votes
1 answer

Class diagram and administrator rights

As an exercise, I would like to create a forum in Java EE, using JSF. I'm a total nooby in class diagram. I can't figure out if I need to create a class for the administrators. For example, having a class User, then the admin class by inheritance.…
dyesdyes
  • 1,147
  • 3
  • 24
  • 39
0
votes
1 answer

asp.net mvc 4 - Multiple Users class Diagram

I've been searching about this subject, but not found exactly what I want. Basically I started to plan a project with all UML stuff, Use Cases, class diagram bla bla. Then we decided to use ASP.NET MVC. The application is a kind of O-Desk or…
0
votes
1 answer

More than one relationship to a class in a Class Diagram

In a class diagram, is it possible to have two classes with more than one relationship? For example, a generalization relationship and a composition relationship? For instance, You can have either a composition relationship or a generalization…
Marcello
  • 423
  • 1
  • 5
  • 12
0
votes
1 answer

UML class diagram with inheritance depending on properties values

The example is the following : ----------- -------------------- | X | 1..1 0..1 | <> | | |<>------------| Y | |-----------| |--------------------| | +a:bool | …
Elvex
  • 656
  • 5
  • 22
0
votes
3 answers

MVC pattern & other patterns included

I need to know what design patterns are included in MVC, because I've checked out online that this MVC pattern uses Observer, in order to notify the view from changes in the model. Is there any other pattern included, like Composite, Strategy or…
0
votes
1 answer

Codedom at runtime

I am building a code generation tool using vs 2010 visualisation & modelling sdk. One of the things that I need to generate is a simple data capture ui (windows forms, preferably using devexpress layout control), with capture fields & labels for…
0
votes
1 answer

mediator design pattern

In my system, I have 2 classes: User and LoginUser class. LoginUser is child of User. There may various communications (Friends request, photo requesr, Friends request accept etc) possible between 2 objects - User and LoginUser. On the basis of…
Tanu Gupta
  • 602
  • 1
  • 11
  • 26
0
votes
1 answer

Does a Class Diagram for CSS make sense?

How can create class diagram for CSS? Does it really make sense to have Class Diagram for CSS?
Mukesh Kumar
  • 783
  • 1
  • 9
  • 24
0
votes
1 answer

Representing method overloading in Java using Visual Paradigm (VP UML) class diagrams

I need to represent overloaded methods like this: +setAttribute(int) +setAttribute(float) +setAttribute(boolean) in a a single Java class. VP UML does not allow me to type in duplicate method names. If I try to do this, the program will revert the…
user1550058
  • 45
  • 1
  • 6