Find Jobs
Hire Freelancers

Write some Software

$30-250 USD

Opravljeno
Objavljeno pred več kot 9 leti

$30-250 USD

Plačilo ob dostavi
Problem Description   The  description  of  the  classic  single-elevator  problem  can  be  found  in  Section  2.2.5 of Donald   Knuth’s “The Art of Computer Programming, Vol. I, Fundamental Algorithms”. On one hand, we are to ignore the details concerning the physical properties of the elevator such as velocity, acceleration of the elevator, and the time delays for doors to open and close. On the other hand, we are to consider the multiple-elevator scheduling problem. Your task is to write a simulator that enforce the chosen scheduling algorithm, can display/visualize the operations of the m elevators, and to produce statistics of the simulation results. The configuration of the system and the services of the elevators are specified as the following.   Each elevator has n (n > 5) buttons, one for each floor. [Fancy features for extra points: These buttons illuminate when pressed and cause the elevator to stop at the corresponding floor. The illumination is cancelled when the corresponding floor is visited by the elevator.]   At each floor, except the ground and the top, there two buttons -- one for up and the other for down. [Fancy features for extra points: These buttons illuminate when pressed. The illumination is cancelled when an elevator visits the floor.]   When an elevator has no pending requests, it travels to a specified “parking zone” and remains there with its door closed. The parking zone is set to be at Floor 1 during night and the morning rush hours (6 to 9:30 am), Floors n-3 to n during the leaving rush hours (4:30 to 7 pm). No parking zone is set during other time; so the elevators stay at the last serving stop when they are idle. A wall clock time is adjustable in the simulator’s interface.   Each elevator has a shield panel which requires a password to open. It contains two buttons: go-alone and cancel. The go-alone button will separate this elevator from the multiple-elevator system and serve the requests made by the buttons in this elevator only. The cancel button will cancel all the requests made by the buttons in this elevator. In an urgent situation, an emergency responder may press go-alone, then cancel, then the destination floor number. This sequence is offered as an option.   The goal of the elevator scheduling is to minimize the distance that all the elevators travel, and guarantee the customer’s waiting time not to exceed the maximum round trip time of an elevator in this building.   The elevator algorithm (SCAN) has been adopted to the computer disc scheduling problem. More references can be found in the Wiki page  [login to view URL] Using the acronyms in that page, the algorithm given in our text book is actually the C-LOOK version1. While the real-world elevator scheduling could be more complex2, your simulator is to enforce a variation of the LOOK algorithm, N-Step-SCAN3 in order to guarantee the limit to waiting time.   Monitor Design   The core of your project is to design a monitors that enforce the C-LOOK scheduling. Each elevator should be simulated by a thread which synchronizes its movement through the monitor. Our focus will be on the synchronization structures and mechanisms of a multithread implementation.         In addition, you are required to develop user interfaces for initializing the simulator, that is to take the user’s configuration data such as the number of floors, the number of elevators, the parking zone floors and time frames, as well as the starting wall-clock time. Another interfaces for collecting statistics should also be made, in which the configure data include the simulation time period and request arrival rate at floors, the choices of the statistical items include the average waiting time and average service time, as well as operation log.   Technical Design and Implementation   Java threads have equipped the programmers with many handy frameworks to implement monitors. In addition to the basic thread features, you are strongly encouraged to use Java’s built-in classes in packages [login to view URL], [login to view URL], and java.util.concurrent.locks. Before you write your Java code, take time to design your monitor in the pseudo-code used in our textbook. Then you should design the structure of threads of your system, indicating what are represented by active threads and their synchronization mechanism (who wait who for what condition) in text and diagrams. Your third step is to choose the proper classes provided in the Java API. If you choose to use some (you definitely should do so), study the introduction to your chosen Class in the Java API. A 2-page (or longer) write-up about these three steps are required in your project submission.   If you implement some graphical simulation (strongly encouraged), you can limit n to 12 and m to 4.   Test Plans and Test Records   Adequate test cases should be prepared and documented.
ID projekta: 6596520

Več o projektu

1 ponudba
Projekt na daljavo
Aktivno pred 10 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
Hi I would love to work on this problem, I am a computer science graduate and did multiple similar projects during my course work. Do Contact me if you have any queries Thanks Arvind
$100 USD v 3 dneh
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava UNITED STATES
NO, United States
4,7
2
Član(ica) od okt. 15, 2014

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.