SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
RoomConnector (in the Network Layer) Class's static methods as follows
One question though. Is that my "RoomConnector" was instantiated on the clientside not the network layer, so I am a little confused at what you mean here.
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Your a bugger Monkhouse
I assume the model is a singelton that contains the various logic for accessing the db to provide booking, reading records etc, that provides a connection to the db server on start up.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Just one question - you say your GUIController class connects to the connector. Or is it that the controller makes the connection which it passes to the model, and the model does all the work?
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
This is quite a common modification to the MVC design, usually implemented when the controller has little or no functionality.
The Controller is responsible for control - it can verify whether a person only has rights to view available records, or whether they have rights to make bookings, or whether they have rights to add and delete records. (To give one example).
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
In my humble openion, the differences in the patterns somtimes tend to be rather trivial.
I have quit worrying about what specifically a pattern am I using
In your experience, how useful do you think is the ability to correctly classify a specific design pattern being used?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by Andrew Monkhouse:
Hi Max,
Thanks for explaining your understanding of MVC. It is good to be able to consider alternate understandings.
Just to keep to the restaurant concept, I will put my understanding in the same format:
In my way of thinking, the blackboard menu (for chef specials - in other words a changeable list) is the View, the waiter is the controller, and the chef is the model. I see something in the menu (view) I like, and I tell the waiter (I do something which triggers the controller). The waiter goes and tells the chef that I ordered some Oysters (triggers an action on the model). The chef starts abusing everybody for having Oysters on the menu in September (my brother is a chef ) so the waiter comes back and crosses the oysters off the menu (the view gets updated). I then make another choice which gets fulfilled.
Regards, Andrew
[ September 15, 2003: Message edited by: Andrew Monkhouse ]
It will give me the powers of the gods. Not bad for a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|