






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 1
Layered Architectures Pipe-and-filter Object Oriented Architecture Implicit Invocation Repositories
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 2
Minimizes coupling between modules: Goal: modules don ʼ t need to know much about one another to interact Low coupling makes future change easier Maximizes the cohesion of each module Goal: the contents of each module are strongly inter-related High cohesion means the subcomponents really do belong together module module connector
3 © 2008 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. Conway ʼ s Law
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 4
See: Valetto, et al., 2007.
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 7 Application Logic Storage Layer Presentation Layer
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 8
UML elements can be grouped together in packages Elements of a package may be: other packages (representing subsystems or modules); classes; models (e.g. use case models, interaction diagrams, statechart diagrams, etc) Each element of a UML model is owned by a single package
Different owners who is responsible for working on which diagrams? Different applications each problem has its own obvious partitions; Clusters of classes with strong cohesion e.g., course, course description, instructor, student,… Or: use an architectural pattern to help find a suitable decomposition…
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 9
java::util
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 10
Button Check box <
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 13 Application Logic Layer Package Storage Layer Package Presentation Layer Package
E.g. 3 layer architecture: Presentation Layer Application Logic Layer Storage Layer Java AWT Application Windows Control Objects Business Objects Object to JDBC Relational Java SQL
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 14
Application Logic Layer Package Storage Layer Package Presentation Layer Package Java AWT Application Windows Control Objects Business Objects Object to Relational JDBC Java SQL E.g. 3 layer architecture: Presentation Layer Application Logic Layer Storage Layer
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 15 kernal
Operating Systems communication protocols
Support increasing levels of abstraction during design Support enhancement (add functionality) and re-use can define standard layer interfaces
May not be able to identify (clean) layers kernal utilities application layer users Source: Adapted from Shaw & Garlan 1996, p25. See also van Vliet, 1999, p281.
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 16
Each layer only uses services of the layer immediately below; Minimizes dependencies between layers and reduces the impact of a change.
A layer can use services from any lower layer. More compact code, as the services of lower layers can be accessed directly Breaks the encapsulation of layers, so increase dependencies between layers Layer N Layer N- Layer 2 Layer 1 Layer N Layer N- Layer 2 Layer 1
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 19
abstract data types
data hiding (internal data representations are not visible to clients) can decompose problems into sets of interacting agents can be multi-threaded or single thread
objects must know the identity of objects they wish to interact with
method invocation method invocation method invocation method invocation Source: Adapted from Shaw & Garlan 1996, p22-3.
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 20
Adds a broker between the clients and servers Clients no longer need to know which server they are using Can have many brokers, many servers.
Broker can become a bottleneck Degraded performance
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 21
debugging systems (listen for particular breakpoints) database management systems (for data integrity checking) graphical user interfaces
announcers of events don ʼ t need to know who will handle the event Supports re-use, and evolution of systems (add new agents easily)
Components have no control over ordering of computations
agent agent agent agent announce event announce event listen for event listen for
Source: Adapted from Shaw & Garlan 1996, p23-4. See also van Vliet, 1999 Pp264-5 and p
© 2012 Steve Easterbrook. This presentation is available free for non-commercial use with attribution under a creative commons license. 22
databases blackboard expert systems programming environments
can choose where the locus of control is (agents, blackboard, both) reduce the need to duplicate complex data
blackboard becomes a bottleneck blackboard (shared data) agent agent agent agent agent agent Source: Adapted from Shaw & Garlan 1996, p26-7. See also van Vliet, 1999, p