90 Introduction to Java Applications Chapter 2 The (Sex offenders web site)

90 Introduction to Java Applications Chapter 2 The company requests that we display the results of the simulation graphically, as shown in Fig. 2.22, Fig. 2.23 and Fig. 2.24. At various points in time, the screen should display a person walking to the elevator, pressing a button and entering, riding and exiting the elevator. The display also should also show the elevator moving, the doors opening, the lights turning on and off, the buttons illuminating when they are pressed and the buttons darkening when they are reset. The company requests that audio be integrated into the simulation. For example, as a person walks, the application user should hear the footsteps. Each time a floor or elevator button is pressed or reset, the user should hear a click. The bell should ring upon the elevator s arrival, and doors should creak when they open or close. Lastly, elevator music should play as the elevator travels between floors. Analyzing and Designing the Elevator System We must analyze and design our system before we implement it as Java code. The output of the analysis phase is intended to specify clearly in a requirements document what the system is supposed to do. The requirements document for this case study is essentially the description of what the elevator simulator is supposed to do presented informally in the last few pages. The output of the design phase should specify clearly how the system should be constructed to do what is needed. In the next several Thinking About Objects sections, we perform the steps of an object-oriented design (OOD) process on the elevator system. The UML is designed for use with any OOD process many such processes exist. One popular method is the Rational Unified Process developed by Rational Software Corporation. For this case study, we present our own simplified design process. For many of our readers, this will be their first OOD/UML experience. Person exiting and walking Floor light lit when Elevator door open away on floor elevator arrives Fig. 2.24 Person walking away from elevator. Copyright 1992 2002 by Deitel & Associates, Inc. All Rights Reserved. 7/2/01
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision personal web hosting services

Leave a Reply