Elevator scheduling algorithm of trooped operation

Source: Internet
Author: User

trooped members: Shen Cong and ... Xi Zhi-min, yes, that's us.

Xi Zhi Sensitive blog link: http://www.cnblogs.com/xizhimin/

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

Objective

Very happy to have the opportunity to learn programming, but also very thankful that the school can give us such a programming environment, from the beginning of school, almost every programming is to need someone to help and guidance, now have this opportunity to exercise, feel good, and this time can have a partner really is very happy, this trooped programming, I am honored to and Xi Zhi-min become a team, just at the beginning, we do not know each other, but in the weeks of programming together, we have a certain understanding of each other, he is an optimistic and cheerful person, although sometimes very funny, but get along very harmonious, just started, we have studied this homework, discussed the general idea of programming, we each said a bit about their own ideas, the initial write a program framework, I am responsible for knocking code, he is in charge of checking errors, we cooperate is seamless-this is a joke, in short, we are tacit understanding, finally, in our unremitting efforts, the work is completed on time, Although not very perfect, but this is our common crystallization, haha ha! During this time, the bitter sour sweet, with the team-mates disagree to the end to find a good solution, this experience is very cool, hope to come a few times, the following is our work photos.

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 If there is no elevator to stop on the floor, after 30 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

Elevator scheduling This program for me is very difficult, because my base is relatively weak, and we decided to use Java to write this program, Java this language before only a small number of read, do not understand the interface knowledge, event control knowledge and time control knowledge is also relatively weak, So have to start learning from the beginning, spending a lot of time, emperor, in my own study and partner's help, I gradually mastered the basic points. Then from the Internet and books on the idea of doing the elevator algorithm, slowly the idea of the elevator scheduling algorithm is formed, and finally the Java language to achieve the basic requirements of this program. This course design not only let me have a knowledge of the Java language, but also let me increase interest in it, but also let me more clearly understand how to use the idea to implement an algorithm. The most important thing is, I know the strength of the team, and understand how to bring it all out of the energy, (⊙v⊙) Well, all in all, words and in short, my ability in this work has been promoted, my later study life also had a great influence.

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.