O'Reilly Forums: What Design Patterns Can I See In This Diagram? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

What Design Patterns Can I See In This Diagram? Can't figure out what design patterns can be recognized here.

#1 User is offline   boris90 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 26-June 12

Posted 26 June 2012 - 10:27 AM

Hi, I'm new here, and I was wondering if anyone could help me determine what Design Patterns are being used in this class diagram?
I've been given certain class relationships and I made this diagram using them. Now the next step in my work is to decide which Design Patterns are being used in this diagram. If anyone could help me, I'd be very grateful.

The Disk class is generalized from Medijum (Media).

Translations, just in case:
Delo - work (as noun; someone's work)
...naziv - name

Medijum - Media

Osoba - Person
...ime - name
...prezime - last name
...jmbg - personal ID

Kopija - Copy
Kaseta - Cassette

Glumac - Actor
...glumi - acts

Reziser - Film Director
...snimiFilm - film a movie / shoot a movie

Disk - Disc

Radnik - Worker / Employee
...iznajmiIzdanje - rent an edition
...vodiEvidenciju - make evidence of rental

Fotograf - Photographer
...slikaj - take a photo

Izdanje - Edition
MiniDV - MiniDV
VHS - VHS
Film - Film
CD - CD
DVD - DVD
Fotografija - Photography

Videoteka - video (rental) library
...brojIzdanja - number of editions
...dodajPozajmicu - add a rental

I think relations are pretty obvious, but if you need translation, tell me.
The image of the diagram is in the link.

http://freepicupload.../149Capture.png
It's also in the attachment.
Thanks!
0

#2 User is offline   boris90 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 26-June 12

Posted 26 June 2012 - 10:28 AM

Here's the attached image.

Attached thumbnail(s)

  • Attached Image: Capture.PNG

0

#3 User is offline   boris90 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 26-June 12

Posted 26 June 2012 - 10:45 AM

The first thing I noticed is that the Abstract Factory DP may be present here: Kaseta, Disk and Izdanje inherit from Medijum, which is an abstract class, Reziser and Glumac inherit from Osoba and Film and Fotografiija inherit from Delo; Film, as Delo's child, is associated with Kaseta, Reziser and Glumac. I'm not sure if this satisfies the conditions for making these classes part of the Abstract Factory pattern.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users