Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1183
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Java Algorithm for elevator system |
| Date | 2011-10-02 00:21 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <11342565.845.1317540076499.JavaMail.geo-discussion-forums@prfc6> (permalink) |
| References | <59e09820-015b-4187-82a5-b29dce2afde5@g29g2000yqh.googlegroups.com> |
Anshu wrote: > I'm looking for some java based algorithm for elevator simulation, > which will control elevator movement. If any one can give any pointers > on this, it will be of great help to my research paper. The algorithm > need not be a complex one but i need some fancy algorithm as mentioned > in wikipedia like SCAN, LOOK, FCFS, etc. <http://lmgtfy.com/?q=java+elevator+simulator> In general terms, Patricia Shanahan, Ph.D., has put together some advice on how to approach any programming problem: <http://home.earthlink.net/~patricia_shanahan/beginner.html> I'll only add that it is a good idea to create a model of how elevators operate, or at least of how an idealized elevator would operate. This model should be quite independent of any programming language. Rather, it would be a precise description of the operations, commands and behaviors of the system. "Nouns and verbs analysis", I call it. What things do stuff, and what stuff do they do? Now as for needing an algorithm that "need not be .. complex but I need some fancy algorithm", that's rather a contradiction. "Fancy" is pretty much equivalent to "complex". You say "SCAN, LOOK, FCFS, etc." as if that makes any sense to anyone. Define your behaviors completely - if you want to keep things simple, define fewer behaviors. In other words, there shouldn't be any "etc." FIgure out what a "SCAN" is (if you're supporting that behavior). It's more than a label; it's a to-be-defined set of very specific changes to your system state. -- Lew
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
Java Algorithm for elevator system Anshu <anshu.basia@gmail.com> - 2011-10-01 23:58 -0700
Re: Java Algorithm for elevator system Lew <lewbloch@gmail.com> - 2011-10-02 00:21 -0700
Re: Java Algorithm for elevator system Patricia Shanahan <pats@acm.org> - 2011-10-02 07:20 -0700
Re: Java Algorithm for elevator system Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-02 16:16 -0700
Re: Java Algorithm for elevator system Roedy Green <see_website@mindprod.com.invalid> - 2011-10-02 06:24 -0700
Re: Java Algorithm for elevator system Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-02 09:33 -0400
Re: Java Algorithm for elevator system "Charles Hottel" <chottel@earthlink.net> - 2011-10-02 12:02 -0400
csiph-web