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.
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.
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?
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).
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?
Originally posted by Andrew Monkhouse:
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.
[ September 15, 2003: Message edited by: Andrew Monkhouse ]