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

Creating UML diagram from specification

I have to create/model a UML diagram from specification provided and was wondering if the diagram below correctly reflects the specification? Are all the associations correct? If so, I will be implementing the digram and start coding. Many thanks.…
user2875117
  • 23
  • 1
  • 1
  • 7
0
votes
3 answers

is UML class diagram necessary to design the UI?

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?
Paarmin
  • 43
  • 1
  • 4
0
votes
1 answer

Using constant fields vs initial data

I'm designing some new class diagrams for extending an existing office automation application. In a special case I have an option to use extra fields on Entity1 to determine something or use additional data rows in Entity2 to determine that. I…
Afshar Mohebi
  • 10,479
  • 17
  • 82
  • 126
0
votes
3 answers

How to omit base classes in UML class diagram

In an UML class diagram, how do I omit irrelevant base classes without giving a wrong impression? Let's consider the following class hierarchy: I want to illustrate the fact that both Blackbirds and Airplanes are FlyingThings. But I don't want to…
Daniel Wolf
  • 12,855
  • 13
  • 54
  • 80
0
votes
1 answer

Class Diagram - Suggestions Needed

I'm learning UML. Can I get some constructive criticism on this Class Diagram. Any suggestions for improvement? Does the cardinality make sense?
user2085599
0
votes
1 answer

How to draw layered class diagram in Visual Studio following DDD?

We are trying to model our new ordering application using DDD. I see a window called Layer Explorer in visual studio. Can we use this feature to model complex business application spanned over multiple layers? Is there any advantage of using…
Abhijeet
  • 13,562
  • 26
  • 94
  • 175
0
votes
2 answers

UML - Representing third party libraries in class diagram

Could somebody guide me on representing third party libraries in a class diagram. For instance I am trying to draw a class diagram for my logging functionality. Which internally uses 'log4net' for logging. And I want to represent 'log4net' in my…
Naresh
  • 2,667
  • 13
  • 44
  • 69
0
votes
3 answers

Instancing an Interface in Object Oriented Programming

I am trying to represent the following situation in a UML Class Diagram. We have a class named Selection where the user select how will the next screen be. The selection class has a property screen: Screen, where screen is an interface. There are…
nest
  • 1,385
  • 1
  • 15
  • 34
0
votes
1 answer

How to represents a relationship in UML class diagram where relationship type depends on a field in related class?

We have two classes namely Client and View, where View has a field type whose possible values are owned and assigned. Clients can have zero or more views. Now how can i represent it in class diagram if existence of view depends whether it is owned…
Amit P
  • 467
  • 6
  • 20
0
votes
2 answers

What are the details in this UML instance?

So far these are the assumptions made, correct these assumptions if they are wrong. A Mountain can have to 0 to Many classifications (Not sure if it's the converse) 0 to Many Mountains have 0 to Many Routes A Route has 0 to Many Parties 0 to Many…
Geesh_SO
  • 2,156
  • 5
  • 31
  • 58
0
votes
3 answers

Should I place a built in Class (such as Date) as a separate class in my UML

I'm creating a UML Class Diagram for an inventory system as part of a class assignment. I used members such as String and Date in a few of my Classes. My group members are saying that I should include a Date class because it is an object. My…
Julian
  • 1,853
  • 5
  • 27
  • 48
0
votes
1 answer

How to model different superclasses in UML

I have an existing system with People (private), Companies(business) and Employees(business) available. I want to create realations between those entities to define who is an supplier and who is a customer. The next options should be possible: A…
michel
  • 97
  • 2
  • 6
0
votes
2 answers

UML - How I insert attributes which are objects from java classes?

) My question is (class diagram): E.g. I have two classes: classA and classB. Now I would like to add three attributes to classB: int a; int b; classA test; That is no Problem because every UML tool know the primitive datatypes and the classes…
Peter Panne
  • 475
  • 1
  • 5
  • 15
0
votes
2 answers

Class diagram for xpages project

I am working on a project with Xpages.I wanted to know how to make the representation of a class diagram to my project.Notes is a documentary database so no relationnal.How I could represent my entities?
0
votes
2 answers

What is this class diagram generated from?

I am given this class diagram. But trying to understand the symbols and pointers it has. I googled it for similar images. But no luck. Can anyone tell me what tool is used to generate this image? (Doesn't seem to be UML). I need to understand the…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173