View Single Post
  #11   Report Post  
Old February 1st 06, 07:03 AM posted to uk.transport.london
Mike Bristow Mike Bristow is offline
external usenet poster
 
First recorded activity at LondonBanter: Jul 2003
Posts: 464
Default Terry Morgan and longer Jubilee line trains

In article ,
Tom Anderson wrote:
On Tue, 31 Jan 2006, Clive D. W. Feather wrote:

We could have had them. Was it worth paying the extra for a
once-in-a-lifetime event?


Depends how much it would have cost. Here, i'll do it for free:

int trainLength = train.getNumberOfCars() ;


You don't appear to be defining how this method is implemented.
How do you do it for free?

platform.edgeDoor((2 * i)).open() ; // the front one
platform.edgeDoor(((2 * i) + 1)).open() ; // the back one


You appear to be assuming that the PEDs are individually controlled.
Perhaps the interface would better described as:
platform.edgeDoor().openAllDoors();

with the 7th set of doors unmoving by virtue of the fuse on the relevant motors
being removed[1]. Except they've but the fuse back now, so all the
doors move. Removing the fuse is obviously cheaper than adding
the controls needed to open each door individually.

Cheers, Mike.

[1] or something nice and simple and cheap.

--
RIP Morph (1977-2005)