×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

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.
Report

Replies, comments and Discussions:

  • 工作学习 / 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 .