Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I need some help on this question. This is based on Java Programming. A snapshot of the elevator control system Our elevator has the

Hi, I need some help on this question. This is based on Java Programming. image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
A snapshot of the elevator control system Our elevator has the basic function that all elevator systems have, such as moving up and down, open and close doors, and of course, pick up passengers. The elevator is supposed to be used in a building having floors numbered from 1 to MaxFloor, where the first floor is the lobby. There are car(lift) call buttons in the car corresponding to each floor. For every floor except for the top floor and the lobby, there are two hall call buttons for the passengers to call for going up and down. There is only one down hall call button at the top floor and one up hall call button in the lobby. When the car stops at a floor, the doors are opened and the car lantern indicating the current direction the car is going is illuminated so that the passengers can get to know the current moving direction of the car. The car moves fast between floors, but it should be able to slow down early enough to stop at a desired floor. In order to certificate system safety, emergency brake will be triggered and the car will be forced to stop under any unsafe conditions. Use case diagram All systems interact with human or automated actors that use the system for some purpose, and both human and actors expect the system to behave in predictable ways. Elevator (Process Car Calls More Doors Chloe Moving Direction Trigger Emergen Be Figure 1: Use Case Diagram of Elevator System There are seven use cases based on the current requirement of the elevator system, as shown in Figure 1: Process Car/Lift Calls: This use case includes several scenarios, which will be described in detail in later sections of this paper. These scenarios includes that the elevator receives lift/car calls from the passengers, turns on or turns off the light of lift/car call buttons, updates the record of lift/car calls There are seven use cases based on the current requirement of the elevator system, as shown in Figure 1: Process Cat/litt Calls: This use case includes several scenarios, which will be described in detail in later sections of this paper. These scenarios includes that the elevator receives lift/car calls from the passengers, turns on or turns off the light of lift/car call buttons, updates the record of ft/car calls stored in system controlling parts, etc. Process Hall Calls: Similar to uft/Car Call processing this use case includes that the elevator receives hall calls from the passengers, turns on or turns off the light of hall call buttons, updates the record of hall calls in system controlling parts, etc. Move/Stop the Car: The main function of an elevator will include the changing of driving speed, how to make the decision of stop, and driving directions of the car. Indicating Moving Direction: The elevator should have this mechanism to let the passengers know the current moving direction of the car such that the passenger might decide whether to enter the car or not. Indicating Car Position: Similarly, the elevator should let the passengers know whether his/her destination floor is reached so that the passenger may decide to leave the car. Open/Close the Doors: The elevator should be able to open and close the doors for the passengers to get in and out of the car. The functional areas of this use case should also enable the passengers to make door reversals when the doors are closing and the passenger wants to get in the car. Trigger Emergency Brake: There is safety mechanism within the car to make sure that an unsafe state is not transiently generated. Classes/objects: Control objects ElevatorControl: The central controlling object in the elevator system. Elevator Control communicates and controls all other objects in the system. Door: There are two doors in the system, the "god" object-the Elevator Control-command the doors to open and close Classes/Objects: Control objects Elevator Control: The central controlling object in the elevator system. Elevator Control communicates and controls all other objects in the system. Door: There are two doors in the system, the "god" object--the Elevator Control - command the doors to open and close. Car/Lift: The car is being controlled to move up and down (in different speeds), to make stops at floors when necessary Button: The Elevator Control class also controls the button class, which further generalizes two subclasses CarCallbutton and HallCallbutton. The control object communicates with the Button objects, get the information whether a button is pressed and in turn controls the illumination of Button lights Indicator: There are two kinds of Indicators in the system, the CarPositionindicator and the CarDirectionIndicator (.e. the Carlantern). The indicators are controlled to show the information about the current position and moving direction of the car. Safety: Whenever an emergency happens, the Elevator Control commands the Safety Controller classes: Door Control controls the action of Door Motor. Door Motor can be commanded to open, close, or make a door reversal. DriveControl controls the elevator Drive, which acts as the main motor moving the car up and down and stopping at floors when necessary. LanterControl are in the number of two, Car Positionindicator and the CarDirection indicator HallButtonControl exists in pair on each floor, where one controls the Up HallCallbutton and the other Down. The HallButton Control accepts hall call button presses controls as well as gives feedback to hall call lights. COMP 155 assignment.docx (Protected View) - Word p ole cted View O Tell me what you want to do Enable Editing DoorControl controls the action of Door Motor. Door Motor can be commanded to open, close, or make a door reversal DriveControl controls the elevator Drive, which acts as the main motor moving the car up and down, and stopping at floors when necessary LantemControl are in the number of two, CarPositionindicator and the CarDirection indicator HallButtonControl exists in pair on each floor, where one controls the Up Halicallbutton and the other Down. The HallbuttonControl accepts hall call button presses controls as well as gives feedback to hall call lights. CarButton Control is one for each floor and all locate in the lift/car. The CarButtonControl accepts CarCallButton calls and is in charge of turning on/off the corresponding lift/carcall ghts. Car Positionindicator gives value to the CarPositionindicator so that the passengers might know the current position of the lift/car Dispatcher does not control actual elevator components, but it is important in the software system There is one Dispatcher for each lift/car, whose main function is to calculate the target moving direction and destination for the lift/car, as well as to maintain the opening time for the doors. The Dispatcher interacts with nearly all the control objects in the system except for Lantern Control Emergency Brake control control control control Figure 2: Class Diagram - the Software Architecture View A snapshot of the elevator control system Our elevator has the basic function that all elevator systems have, such as moving up and down, open and close doors, and of course, pick up passengers. The elevator is supposed to be used in a building having floors numbered from 1 to MaxFloor, where the first floor is the lobby. There are car(lift) call buttons in the car corresponding to each floor. For every floor except for the top floor and the lobby, there are two hall call buttons for the passengers to call for going up and down. There is only one down hall call button at the top floor and one up hall call button in the lobby. When the car stops at a floor, the doors are opened and the car lantern indicating the current direction the car is going is illuminated so that the passengers can get to know the current moving direction of the car. The car moves fast between floors, but it should be able to slow down early enough to stop at a desired floor. In order to certificate system safety, emergency brake will be triggered and the car will be forced to stop under any unsafe conditions. Use case diagram All systems interact with human or automated actors that use the system for some purpose, and both human and actors expect the system to behave in predictable ways. Elevator (Process Car Calls More Doors Chloe Moving Direction Trigger Emergen Be Figure 1: Use Case Diagram of Elevator System There are seven use cases based on the current requirement of the elevator system, as shown in Figure 1: Process Car/Lift Calls: This use case includes several scenarios, which will be described in detail in later sections of this paper. These scenarios includes that the elevator receives lift/car calls from the passengers, turns on or turns off the light of lift/car call buttons, updates the record of lift/car calls There are seven use cases based on the current requirement of the elevator system, as shown in Figure 1: Process Cat/litt Calls: This use case includes several scenarios, which will be described in detail in later sections of this paper. These scenarios includes that the elevator receives lift/car calls from the passengers, turns on or turns off the light of lift/car call buttons, updates the record of ft/car calls stored in system controlling parts, etc. Process Hall Calls: Similar to uft/Car Call processing this use case includes that the elevator receives hall calls from the passengers, turns on or turns off the light of hall call buttons, updates the record of hall calls in system controlling parts, etc. Move/Stop the Car: The main function of an elevator will include the changing of driving speed, how to make the decision of stop, and driving directions of the car. Indicating Moving Direction: The elevator should have this mechanism to let the passengers know the current moving direction of the car such that the passenger might decide whether to enter the car or not. Indicating Car Position: Similarly, the elevator should let the passengers know whether his/her destination floor is reached so that the passenger may decide to leave the car. Open/Close the Doors: The elevator should be able to open and close the doors for the passengers to get in and out of the car. The functional areas of this use case should also enable the passengers to make door reversals when the doors are closing and the passenger wants to get in the car. Trigger Emergency Brake: There is safety mechanism within the car to make sure that an unsafe state is not transiently generated. Classes/objects: Control objects ElevatorControl: The central controlling object in the elevator system. Elevator Control communicates and controls all other objects in the system. Door: There are two doors in the system, the "god" object-the Elevator Control-command the doors to open and close Classes/Objects: Control objects Elevator Control: The central controlling object in the elevator system. Elevator Control communicates and controls all other objects in the system. Door: There are two doors in the system, the "god" object--the Elevator Control - command the doors to open and close. Car/Lift: The car is being controlled to move up and down (in different speeds), to make stops at floors when necessary Button: The Elevator Control class also controls the button class, which further generalizes two subclasses CarCallbutton and HallCallbutton. The control object communicates with the Button objects, get the information whether a button is pressed and in turn controls the illumination of Button lights Indicator: There are two kinds of Indicators in the system, the CarPositionindicator and the CarDirectionIndicator (.e. the Carlantern). The indicators are controlled to show the information about the current position and moving direction of the car. Safety: Whenever an emergency happens, the Elevator Control commands the Safety Controller classes: Door Control controls the action of Door Motor. Door Motor can be commanded to open, close, or make a door reversal. DriveControl controls the elevator Drive, which acts as the main motor moving the car up and down and stopping at floors when necessary. LanterControl are in the number of two, Car Positionindicator and the CarDirection indicator HallButtonControl exists in pair on each floor, where one controls the Up HallCallbutton and the other Down. The HallButton Control accepts hall call button presses controls as well as gives feedback to hall call lights. COMP 155 assignment.docx (Protected View) - Word p ole cted View O Tell me what you want to do Enable Editing DoorControl controls the action of Door Motor. Door Motor can be commanded to open, close, or make a door reversal DriveControl controls the elevator Drive, which acts as the main motor moving the car up and down, and stopping at floors when necessary LantemControl are in the number of two, CarPositionindicator and the CarDirection indicator HallButtonControl exists in pair on each floor, where one controls the Up Halicallbutton and the other Down. The HallbuttonControl accepts hall call button presses controls as well as gives feedback to hall call lights. CarButton Control is one for each floor and all locate in the lift/car. The CarButtonControl accepts CarCallButton calls and is in charge of turning on/off the corresponding lift/carcall ghts. Car Positionindicator gives value to the CarPositionindicator so that the passengers might know the current position of the lift/car Dispatcher does not control actual elevator components, but it is important in the software system There is one Dispatcher for each lift/car, whose main function is to calculate the target moving direction and destination for the lift/car, as well as to maintain the opening time for the doors. The Dispatcher interacts with nearly all the control objects in the system except for Lantern Control Emergency Brake control control control control Figure 2: Class Diagram - the Software Architecture View

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions