Unit 9 Flashcards
Draw a state pattern class diagram for a retractable ball point pen.
(TMA03, Q2)
What is the client-server architectural style?
Client-server is an architectural style in which one component (the server) waits for requests from other components (clients), processes each one as it is received, and returns a response to the client.
(b3, p21)
What is the call-return architectural style?
Call-return is an architectural style in which a component (the caller) makes a procedure call to another component (the callee), and waits for the call to return.
(b3, p22)
What is the layered architectural style?
Layered is an architectural style in which the system is structured as a series of layers that are visualised as being stacked on top of another. Each layer uses services provided by the layers below (usually only the layer immediately below). It also supplies services to the layer above.
(b3, p22-23)
What is the peer-to-peer architectural style?
Peer-to-peer is an architectural style similar to client-server, however all components are both clients and servers.
(b3, p23-24)
What is the data flow (pipes and filters) architecture style?
Data flow is an architectural style in which components are objects or small independent subprograms (filters) that process a stream of data and pass the results on to other components for further processing.
Communication is unidirectional and uses fixed channels. Each filter has no knowledge of other filters upstream or downstream, but simply accepts the data, processes it and passes it on.
The connectors are services, provided by the operating environment, that ‘pipe’ data from one filter to another.
(b3, p24)
What is the data-centred architecture style?
Data-centred is an architectural style in which there is a data provider that is a centralised store of persistent data. The structure of the data, the types of items and their relationships are stable and change rarely or not at all.
There are many clients who are data consumers. Items can be created, queries, updated and destroyed on request. The central store may be duplicated, to provide backup in case of failure or to deal with a greater volume of client requests. The communication channels are normally fixed.
(b3, p24)
What are the two forms of data-centred architecture?
- Database (or repository) - Communication is always initiated by clients and the store simply responds to requests. Typically the components are a database server and clients that access it. The connectors are database queries made via a special database connection.
- Blackboard - The store is active and informs users of changes, so that communication may be initiated from either end.
(b3, p24-25)
What is the independent components architecture style?
Independent components is an architectural style in which components execute concurrently and are decoupled as far as possible, but can communicate by messages that allow them to exchange data or coordinate their operations.
The connectors are the message exchange protocols, which are normally asynchronous (the sender can continue without waiting for a response).
(b3, p25-26)
What is the service-oriented architecture style?
Service-oriented is an architectural style in which there are two kinds of component - consumers and providers. A set of service providers makes services available to a set of service consumers. Consumers can combine services in order to carry out business processes.
The connectors are the requests and responses sent between conumers and providers, using standard communication protocols.
In some cases an enterprise service bus (ESB) is used, which supports features such as service look-up and routing of service requests.
(b3, p26)
What is the notification (publish-subscribe) architecture style?
Notification is an architectural style in which the two kinds of components are observers (subscribers) and subjects (publishers). Observers can register themselves with a subject in order to be kept notified whenever some particular event happens at the subject’s end.
(b3, p27)
What is a framework?
A framework is a segment of architecture and code that can be reused in different systems.
(b3, p27)
What four things make up a framework?
- An architecure
- A small amount of software for the framework
- A set of components suitable for use within the framework
- The documentation needed to make use of the framework
(b3, p29)
What are the 8 steps of the product-line process?
- Product-line initiation
- Domain analysis
- Architecture specification
- Component collection
- Specific-requirements capture
- Architecture specialisation
- Component selection and specialisation
- Integration and release
(b3, p28-29)
What is the twin-peaks model?
The twin-peaks model develops requirements and architecture concurrently and iteratively.
It gives equal prominence to requirements and architecure and uses an extension of the spiral process.
As the peaks are descending, requirements and architecture are alternately considered.
Each successive iteration specifies both requirements and architecture in greater detail.
(b3, p11)