Low Level Function
4.5.2 Validate Fare Credit for Journey
Overview
This Function shall be capable of providing the following facilities:
(1) The ability to manage the current level of fare credit in the "fare card" (store of Fare Card Data) to be managed so that there is always sufficient for the PT portion of the journey that the PT Passenger is about to make.
(2) The ability to inform the PT Passenger the amount of fare credit available and whether or not it is sufficient for the PT portion of the journey.
(3) If required the ability to include some form of access control mechanism for PT Passengers entering and/or leaving the PT Vehicle.
Functional Requirements
(a) continuously monitor for receipt of the request journey fare cost from the PT passenger
(b) when the data flow in (a) arrives, check the cost and the fare credit balance in the function's internal store
(c) if the result of (b) is that there is sufficient credit to pay for the journey output the results of (b) to the PT passenger in the journey fare cost and fare credit after journey data flows
(d) if the result of (b) is that there is not sufficient credit to pay for the journey output the results of (b) to the PT passenger in the journey fare cost and no fare credit for journey data flows
(e) as a result of (c) wait for receipt of the pay for journey data flow from the PT passenger
(f) when the data flow in (e) is received, send the deduct fare credit for journey data flow to the store of Fare Card Data and the ok to travel message to the PT passenger
(g) as a result of (f) await the receipt of the fare credit balance data flow and update the internal data store with its contents.
Diagrams
Parent Higher Level Function
Input logical dataflows
Output logical dataflows
User needs