×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Java experts please come in
    I know nothing (almost) about java and also not familiar with other languaes.But now i have to use java to develope a elevator control system in one of my course project. There are several elevators and ten floors in this system. Do i need to use multithread to run the elevators at the same time? What kind of tools do i need to use put the elevators informations such as positions and direction, vetor , array, hash, list or other? What parts of java do i need to focus on learning now? Your early help would be highly appreciated. But please don't tell me to drop the course, that's impossible.
    • not response, where're DX? I need your help.
    • Hi, I'm not a expert. some idea
      1. define elevator as a class(include all information about ).
      2. define a manager class to control elevators(include a Hashtable to control all elevators).
      3.multithread or not depends the request.
      • Thank you so much,macsym.The system requires controlling and simulating elevators like the way a normal elevators system we do see.If not use multithread , what other method can make elevators run concurrently?
        • Oh, that's must be multithread .