View Single Post
  #23   Report Post  
Old June 17th 04, 09:18 AM posted to uk.transport.london
Clive D. W. Feather Clive D. W. Feather is offline
external usenet poster
 
First recorded activity at LondonBanter: Jul 2003
Posts: 856
Default Oyster and oneday Travelcards -- when?

In article , Gareth
Davis writes
For example if only the last 10 journeys are held and the period is 24
hours then a two zone tube journey could be made on peak (£2 prepay),
followed by 10 bus journeys (that would be capped at £2.50 for a one
day bus pass), followed by another £2 tube journey. The bus journeys
would have 'pushed off' the first tube journey resulting in a £6.50
total for the day rather than a £5.30 day travelcard because the first
journey can no longer be 'seen' by the program in the gate responsible
for the capping. While I admit this is a very contrived example it
illustrates the problem well


And the answer is obvious - don't program it that way. Instead, keep a
sufficient state to allow you to deduce what possibilities could come
up. So, for example, the pass slots can hold entries on the amount of
bus and rail fare paid that day. If I modify your example slightly, and
start with a completely blank card, the sequence would be:

Passes Last 10 journeys
1.00 0.00 Bus
1.00 2.00 Bus, Rail
2.00 2.00 Bus, Rail, Bus
BusP 2.00 Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Bus, Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Bus, Bus, Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Rail, Bus
BusP 2.00 Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Rail
BusP 2.00 Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus
T/card Rail, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus, Bus

- especially if the capping period is
scaled up substantially (to say, 1 week) without increasing the
journey storage capacity on the cards.


Same solution.

And once you increase the
amount stored on the card it takes longer to read and write back -


And doing it this was doesn't affect the amount to be transmitted (in
particular, you don't need to send the list of previous journeys).

--
Clive D.W. Feather | Home:
Tel: +44 20 8495 6138 (work) | Web: http://www.davros.org
Fax: +44 870 051 9937 | Work:
Please reply to the Reply-To address, which is: