Anyone good with design patterns?

stuck on a design pattern question, should be quite a simple one but i

Page 1 of 1

5 Replies - 2015 Views - Last Post: 30 August 2006 - 06:07 AM Rate Topic: -----

#1 kaligula  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 29-August 06

Anyone good with design patterns?

Posted 29 August 2006 - 01:47 PM

Hi all,

Got a bit of work to do when i have to decide on what design patterns to use and explain why. Unfortuntely I'm stuck on a question and there isn't anyone aorund to help me. I'll copy and paste the part of the question:


“The CAD system will contain a primary class called SEModel. This will store and manage the model being created in the CAD software. Each model is made up of a number of components, which are described with the SEComponent class. The SEComponent class stores information about the shape of the component being modelled, its colour and material properties. It provides an interface to allow information to be queried, the component to be rendered and editing operations to be performed.

A hierarchy of components can be modelled in the system. This is not done in the SEModel class but in the SEComponent class. Each component stores a reference to its parent component, if it has one (ie. if it is part of a hierarchy). If it does not, the reference pointer will be null.

The CAD software renders information to an on-screen view represented by the SEView class. Information about each component is displayed in various SEEditField objects used to show on-screen edit fields.”


You have identified a number of key areas of the design where more attention is needed. These are…

(i) The application needs to report information about a component’s position, orientation and material properties to the user.


Its just the (i) part I need help with

I'm guessing that this requires a structural pattern, but I've no idea if I'm right or which one.

It just seems so simple that why would it even need a pattern?


Any advice would be much appreciated

Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Anyone good with design patterns?

#2 MarkoDaGeek  Icon User is offline

  • Dirty Technophile
  • member icon

Reputation: 11
  • View blog
  • Posts: 11,158
  • Joined: 13-October 01

Re: Anyone good with design patterns?

Posted 29 August 2006 - 01:58 PM

Wow, CAD.... I dunno where to put this topic...

It's kinda graphical related no? Let's try Graphics.
Was This Post Helpful? 0
  • +
  • -

#3 kaligula  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 29-August 06

Re: Anyone good with design patterns?

Posted 29 August 2006 - 02:05 PM

View PostMarkoDaGeek, on 29 Aug, 2006 - 01:58 PM, said:

Wow, CAD.... I dunno where to put this topic...

It's kinda graphical related no? Let's try Graphics.


It doesn't really have anything to do with CAD, its about applying particular design patterns to design problems, CAD is just an example they use for the question.

I wasn't sure where to put it either, but graphics it definately isn't, could you just put it in a general programming one?

Cheers
Was This Post Helpful? 0
  • +
  • -

#4 MarkoDaGeek  Icon User is offline

  • Dirty Technophile
  • member icon

Reputation: 11
  • View blog
  • Posts: 11,158
  • Joined: 13-October 01

Re: Anyone good with design patterns?

Posted 29 August 2006 - 06:29 PM

Yeah.
Was This Post Helpful? 0
  • +
  • -

#5 xof  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 74
  • Joined: 27-August 06

Re: Anyone good with design patterns?

Posted 30 August 2006 - 05:47 AM

This looks interesting... and to be clear I said looks ;)

Could you give some further technical detail about what you are using to implement the solution?

Computer language
development environment,
Operating System,
Platform?

I would like to be sure.
Was This Post Helpful? 0
  • +
  • -

#6 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Anyone good with design patterns?

Posted 30 August 2006 - 06:07 AM

This may, in fact, be a conceptual question, as opposed to an actual implementation...perhaps kaligula can clarify?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1