Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.help Subject: Re: Java Algorithm for elevator system Date: Sun, 2 Oct 2011 00:21:16 -0700 (PDT) Organization: http://groups.google.com Lines: 35 Message-ID: <11342565.845.1317540076499.JavaMail.geo-discussion-forums@prfc6> References: <59e09820-015b-4187-82a5-b29dce2afde5@g29g2000yqh.googlegroups.com> Reply-To: comp.lang.java.help@googlegroups.com NNTP-Posting-Host: 173.164.137.214 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1317540076 27066 127.0.0.1 (2 Oct 2011 07:21:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 2 Oct 2011 07:21:16 +0000 (UTC) In-Reply-To: <59e09820-015b-4187-82a5-b29dce2afde5@g29g2000yqh.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1183 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. In general terms, Patricia Shanahan, Ph.D., has put together some advice on= how to approach any programming problem: I'll only add that it is a good idea to create a model of how elevators ope= rate, or at least of how an idealized elevator would operate. This model s= hould be quite independent of any programming language. Rather, it would b= e a precise description of the operations, commands and behaviors of the sy= stem. "Nouns and verbs analysis", I call it. What things do stuff, and wh= at stuff do they do? Now as for needing an algorithm that "need not be .. complex but I need som= e 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. Def= ine your behaviors completely - if you want to keep things simple, define f= ewer 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 la= bel; it's a to-be-defined set of very specific changes to your system state= . --=20 Lew