EE2.sad > Coursework > Lab 2 | ||||||||||||||||||||||||
![]() EE2.sad: Laboratory 2[ Home | Syllabus | Exercises | Coursework | Exams ] | ||||||||||||||||||||||||
[
Design activity |
Lab 1: A,B,C |
Lab 2: A,B,C |
Groups ]
Instructions for the second laboratory (groups SQL, VB, XML and Z)Just as for the first lab, you won't be able to finish the laboratory and the assignment during the supervised session (total 3-4 hrs work), so just try to get the most out of it and make as much headway as you can.
Getting started
1. Turning a logical ERD into a physical designYou are now entering the design stage, and you therefore need to transform your logical model into a physical one. Treat each entity in turn, and follow the steps, as described in your System Design handouts and in chapter 8 of Dennis & Wixom:
An example, taken from the air traffic control ERD that is in your notes,
is given, illustrating both the logical design:
![]() and the physical design: ![]() In this example, I've introduced an intersection entity, FLIGHT, to avoid having the many-many relationships that were between AIRCRAFT and RUNWAY. Like this, each instance of the FLIGHT entity will uniquely correspond to one aircraft and one runway for take off and one for landing. 2. Draw the level-1 logical DFDYou will have been assigned a process that forms part of the Travel Booking System (Group 1). Using the information given in the lower portion of the scenario description, draw the level-1 logical DFD for that process. For groups SQL, VB, XML and Z: scenario 1, scenario 2, scenario 3.Ensure that all the data flows are shown in order to provide your process' full functionality, and that your level-1 DFD is consistent with the level-0 DFD. Note that you may need to add some further detail to the scenario description to do this. 3. Sketch the partial Structure ChartSketch the partial Structure Chart of all processes and subprocesses on your diagrams. Using all the bubbles that have been defined so far (from the context diagram, through the level-0 DFD, down to the level-1 DFD), draw out by hand their invocation hierarchy using a structure chart. Include all the processes and subprocesses mentioned in the three scenario descriptions, down as far as level 1. This chart won't be totally complete, as there may be further information down at the lower levels, but for the sake of clarity you should not go any lower. You need not annotate the function calls in your structure chart with any data flows; just show the flow of control. 4. Write a Process specificationFor this exercise, you are to write a process specification, or P-spec, for one of the subprocesses from your level-1 DFD. Those given Process 1 should specify subprocess 1.2 (Open connection).Write the P-spec for your assigned subprocess using structured English. It should contain a list of the main steps needed to be able to complete the operation that the subprocess is to perform. A good example of this is given on page 51 of you notes (Fig. 47), and others can be found on pp. 27, 63, 70. There is also a short section on it in Dennis & Wixom, on pp. 177-178. 5. Convert the logical level-1 DFD into a physical DFDConverting the logical level-1 DFD into a physical one is similar to the technique for ERDs. Treat each subprocess in turn, and follow the steps, as described in your System Design handouts and in chapter 8 of Dennis & Wixom:
As a minimum, the extra information given in the detailed design should include:
Tips and sources of extra help
For each of the five exercises in this lab, the main thing is to read the
instructions carefully, and to apply what you have learnt in the lectures.
Below, I have listed some extra sources of information that should
help you understand what you are supposed to do more fully (the best
ones are in bold):
In the CASE tool, Web engineer, you can change both the cardinality and the modality of a relationship in an ERD with the "change degree" option. The cardinality refers to the maximum number of instances of a given entity that may be related, and is typically single or many. The modality refers to the minimum number of instances of a given entity that may be related, and is typically zero or one, making the relationship optional or mandatory. If you try changing these in the CASE tool, you'll soon see how they should be drawn. As an alternative to the Web Engineer CASE tool, you might choose to use a simpler utility, Dia, for drawing ERDs and DFDs. Just enter "dia &" in a terminal window and it will fire it up. DFDs can be drawn using the "Gane and Sarson" option, and ERDs with "ER". As you will see, there are plenty of other diagram notations that it provides, including UML. There is also a package called Umbrello on our system that provides for diagramming using UML notation, and of course Microsoft Visio. For structure charts, I like to use xfig but you could use Powerpoint or any other drawing package. If you have any other specific questions, you can email me. |
![]() Dept. |
[
CVSSP |
Dept. |
Fac. |
Univ.
]
© 2002-8, maintained by Philip Jackson, last updated on 20 Nov 2008. |
![]() Faculty |