2949775741

2949775741



The main Controller's responsibility is to react to user actions (e.g. mouse button clicks) and map them to the model operations (State change) or view changes (yiew selectioń). The controller in conjunction with the view takes care of the look and feel of the application.

Unfortunately, the controller semantics is commonly misinterpreted [5]. It is sometimes mistakenly regarded as an element responsible for the behavior of application when at the same time the model is regarded as an element, which contains data only. This interpretation leads to a problematic tight coupling between the presentation layer and application logie. Changes in the first one reąuire changes in the second one and vice versa. This is the main reason why the controller should not contain the application logie but only references to it.

The value of MVC is based on two essential rules. The first one is separation of the model and presentation, which allows to exchange user interface (e.g. provide two interfaces, graphical and batch modę). The second rule is separation of the view and controller. A typical example is providing two controllers (editable and not editable) for one view [5].

It must be noted that classic MVC form is often degenerated. This deformation is usually manifested in tightly coupled view and controller. For instance some SmallTalk versions and Swing library on the Java platform have this kind of design [4]. In Swing MVC framework is replaced by the Model-Delegate architecture.

The specificity of web applications causes that the classic form of MVC architectural framework should be taken into consideration. It will be discussed in section 3.1.

2.2. PCMEF architectural framework

Layered structures are often used in architectural design. They allow to group system classes into vertical hierarchy and to minimise package coupling. Those architectures can be called stable when changes in higher layers don't create a Cascade of modifications in lower layers. This stability is possible when only downward dependencies are allowed (higher layers depend on lower layers). Sometimes for practical reasons, the architecture permits upward dependency realized by loose coupling implemented by, for instance, event Processing.



Wyszukiwarka

Podobne podstrony:
00128 ?541c295e5c443a126cf2c578c908b3 129 Optimization and Sensitivity Analysis is to determine the
00163 8bd8ef6e7bb29535cb91c8bcb2b620 164 McWilliams Constrained Optimization As discussed in the i
img016 (86) 25.    Whose responsibility is it to ensure the safety of pedestrians whi
Answer: A, C, F Explanation: The main function of a router is to connect different, separated networ
12 Joanna Antczak constitute tax obligations. The main objeclive of the article is to present the im
2 12 2 Three stages of negotiation Next Slide i !►    * The main objective of the mid
CBS 710 Automatic Loudness Controller The Model 710 is designed to reduce those portions of the audi
Open interfaces of GSMOpen interfaces of GSM One of the main purposes behind the GSM specifications
synare6 bmp FILTER. CONTROL. Testing. (continued) and to see if the fUter responds properly to its c
Report 8 81 Cherutich 5.8 Cementing The main purpose of cementing is to hołd the casing in place, to
Listening Comprehension TOEFL ELLIS The purposc of the listening portion is to test main ideas, or
Fact Sheet S-03 - Means of Public Relation Introduction The main challenge of public relations is to
pg005 IrcoductO ! Ono of th© main a ms of th© book is to r©move the mystigu© surroundmg th.s subject
W języku angielskim: The aim of today’s lesson is to check your ability to react in everyday life si

więcej podobnych podstron