Elevator scheduling algorithm of trooped operation

Source: Internet
Author: User

trooped Members

Xi Zhi min and Shen Cong

Shen Cong Blog Link: http://www.cnblogs.com/congshen

Coding Link: https://coding.net/u/dunkey/p/diantidiaodu/git

Objective

First of all, thank you very much teacher can provide us with a team programming environment, from a freshman, almost every programming is their own independent completion, at most is really can not find the wrong to ask classmates, this trooped programming, I am honored to become a team with Shen Cong, just beginning, we are not special understanding of each other, But in the weeks of programming together, I found that our character ability is just complementary, at first, we discussed the basic algorithm of the operation, and then each said their own ideas, the initial write a program framework, he is responsible for knocking code, I was in charge of checking errors, we cooperate very tacit understanding, and finally, Our homework is also finished on time, during this period, the ups and downs, and team-mates opinion different to finally find the best way, this feeling is unprecedented, the following is the photo of our work.

Algorithm design

The program is written in the Java language,Eclipse platform, through a round-trip search method, that is, the elevator running direction of the floor if there are other keys are pressed, there will continue to run in that direction, If there is no query elevator running in the opposite direction of the floor if there is a button is pressed, if there is an elevator to change direction, the opposite side to run. If there is no elevator to stop on the floor, after a few seconds if no key is pressed, the elevator will automatically return to the 1 floor parking. At the same time, elevator passengers to the floor direction and the current direction of the elevator, the elevator priority to carry the passenger. Then carry the passenger to the opposite direction. To achieve elevator lifting operation. the specific flowchart is as follows.

Summarize sentiment

It is difficult to start the elevator scheduling algorithm: Because there are many factors to consider, but also need to many Java interface Knowledge, event control knowledge and time control knowledge is relatively weak, but after a period of learning, gradually break down all aspects of weaknesses. Also from books, on the internet to do the idea of elevator. The elevator scheduling algorithm was soon implemented in the Java language. This time the course design not only let me know the Java language more, but also learned the new knowledge, at the same time more clearly understand how to use the idea to implement an algorithm. The most important thing is, I learned how to exert the strength of the team, how to produce 1+1>2 effect, in a word, I think this team work will have a great impact on my future study.

Elevator scheduling algorithm of trooped operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.