6.4 Scenarios The purpose of a use case is to meet the goal of its associated actor(s), such as a guest making a reservation with a hotel. This implies that a use case should include everything that must be done to meet that goal. For example, if it is necessary to check the availability of rooms in the hotel for the desired length of stay before accepting a reservation, then we expect the use case to contain that check. In general, a use case contains a narrative about the flow of events that specifies a
6.3 Describing use cases To understand the work, you need a good idea of what each use case means. To get a feel for what this might entail, look again at Figure 3 (reproduced below) which shows a simple use case model for a hotel chain reservation system. Note that Figure 3 is not intended to be an exhaustive model of the hotel domain; the scope of the problem to be solved is confined to reservations and the processes of checking in and out. 6.1 Use case modelling In this section, we take a closer look at use case modelling, and show you how it can be used to model the requirements for a product that includes the development of a software application or, simply, a system. Use case models act as a discussion tool between the requirements analyst and stakeholders, and offer a common language for agreeing the functions of a proposed system. In this discussion, we shall use the Unified Modelling Language (UML) notation (diagrams) for use cases to re 5.1 More information about modelling techniques The four remaining diagramming techniques are described in separate sections below, which you should now study: 1.1 Types of model When the word model is used, you are most likely to bring to mind physical models such as those that are constructed to depict new buildings, cars or other artefacts. Such models are a precursor to actually building the artefact ‘for real’. However, our use of the word goes beyond physical models. For example, when a new house is built there will be a variety of plans produced to show different aspects of the house: its floor plan, a diagram of its location, a drawing of the front elevati 6.1 Further reading There is not a lot published on distributed development paradigms. The book by Coulouris et al. [2] indirectly introduces some of the paradigms introduced in this unit. Lynch's book [3] on distributed algorithms is full of algorithms which are message passing based. The book by Patzer and 14 others [4] is a good practical introduction to many of the technologies detailed in this unit. One of the few current books on JavaSpaces has been written by Freeman et al. [1]. 5.2 An example In order to complete this section I shall present a simple example. This is loosely based on one described in [1], currently one of the very few books written on JavaSpaces technology. An object that can be stored in a space has to implement an interface 4.1 Introduction Many of you will already be familiar with event processing if you have developed visual interfaces with the later versions of Java. Developing such an interface consists of a number of steps: A visual object such as a button is placed in a container such as an applet or a 2.2 Fixed and adaptive protocols The protocol described above for a simple naming service is an example of a fixed protocol. This is a protocol whose vocabulary is fixed: it is embedded in the client and server's code and data and does not change. An adaptive protocol is one where the protocol changes. A fixed protocol could change over a period of time because the functionality provided by a server changes. However, this change will be over months or years rather than over seconds. There are some instances wher 7.2.1 E-shop This is the most ubiquitous form of commerce on the World Wide Web. It involves a company presenting a catalogue of its wares to internet users and providing facilities whereby such customers can purchase these products. Almost invariably such a site will contain facilities for ordering and paying for products by means of credit cards. The sophistication of sites described by this business model range from just the simple presentation of a static catalogue to the presentation of an interactiv 2.7 Other commercial websites So far I have detailed e-commerce applications which are connected with very large organisations; to conclude this section it is worth looking at a number of smaller applications, many of which are distinguished by the fact that they are novel. They are in contrast to the applications discussed in previous subsections which mainly consist of standard functions such as order processing. 1.8 Maintenance Databases are one of the more enduring software engineering artefacts; it is not uncommon to find database implementations whose use can be traced back for 15 years or more. Consequently, maintenance of the database is a key issue. Maintenance can take three main forms: Operational maintenance, where the performance of the database is monitored. If it falls below some acceptable standard, then reorganisation of the database, usuall 1.7 Testing The aim of testing is to uncover errors in the design and implementation of the database, its structure, constraints and associated user and management support. Testing is usually considered to involve two main tasks – validation and verification. Without adequate testing users will have little confidence in their data processing. Validation answers the question: has the right database been developed to meet the requirements? It attempts to confirm that the right database has been co 1.6.2 Populating the database After a database has been created, there are two ways of populating the tables – either from existing data, or through the use of the user applications developed for the database. For some tables, there may be existing data from another database or data files. For example, in establishing a database for a hospital you would expect that there are already some records of all the staff that have to be included in the database. Data might also be bought in from an outside agency (address 6.1.1 The user interface An interface to a washing machine does not need to be like the interface to a personal computer (a user interface is a display/control panel that enables the user to control a machine or interact with a program). It is specific to the task of washing laundry, which involves two things: displaying the choices that relate to washing laundry (such as type of laundry to be washed, water temperature, and spin speed); displaying some indica 5.2 Art and the common computer Art is difficult to define. But all art involves the Exercise of human skill. A natural object, such as a piece of driftwood, a flower, a bird song, can move us to admire it as beautiful or intriguing or comforting, but it isn't art. Artists (be they photographers, painters, sculptors, actors, musicians, authors or dancers) use their skill to transform natural objects, materials or signs (paint, clay, their own body or voice, the sounds of musical instrument, words) into somethi 5.1.2 The human genome All life is ‘encoded’ chemically in genes. What this means is that the structure of an organism, the organs it possesses, its colouring, and so on are all determined by different genes. A very simple organism may have just a few genes, and a complex one tens of thousands. The ‘map’ of an organism's genes is referred to as its genome. It shows, in essence, which genes give rise to which characteristics or traits of the organism. The word ‘template’ would describe the 4.2.2 Using the web more effectively: gateways A gateway on the web is a website intended to direct users to other preselected websites containing information on a particular topic. It can also refer to a computer that acts as a message router on the internet University librarians often set up gateways for particular areas of study, although they may be set up by anyone with sufficient expertise in a topic. Gateways may be fairly general, such as a gateway site for sciences, or more specific, such as a gateway for part 4.1 Where am I and how do I get to … ? Computers can be used to find things and the obvious thing they can find is information. The World Wide Web (WWW or just the web) is just one example of a vast store of information which can be searched to find what you want using computers (The web consists of linked data which is accessed via the internet using a browser). But computers can also ‘find’ things in the sense of locating them geographically, either by generating maps that can be used for navigation or by locat 3.4.1 A computer system is the combination of: the computer (with its processor and storage); other equipment such as a scanner or printer, the software programs that make it all work (software programs that are designed to help with some human task are often referred to as applications).
Diagramming Technique
Section
Use case modelling
Use Cases and Activity Diagrams
Activity diagrams
Use Cases and Activity Diagrams
Entity–
. The objects that form part of the example will just
object.