0% found this document useful (0 votes)
22 views

Public Bus Transport System

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Public Bus Transport System

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Public Bus Transport System (PBTS)

1. Brief Description of the Project

PBTS (Public Bus Transport System) is a system for providing efficient and safe public bus
transport. One key mission for PBTS is to use a data-driven approach for analyzing travel patterns
and improving transport services. The objective of this course project is for student teams to
develop a PBTS database system that can support the key features specified in this document.

2. Key Features of the Project.

To simplify the course project, the following are the only functions that your PBTS database
system must support. If any of the functions are different from the one offered by the actual PBTS
system, please adhere to the functions specified in this document. Please ignore other
functions that actual PBTS may offer.

The attributes that your system must keep track of are specified in this document: your system
should not keep track of any attribute that is not mentioned in this document unless it is necessary
to support the listed required functions in this document. Derived attributes, if any, should be
included in your proposed ER diagram.

2.1. Function 1: Bus service information

A bus stop provides bus services to passengers traveling around the city. There are many bus
stops that are of interest to PBTS and will be recorded. A bus stop is uniquely identified by a stop
ID. PBTS stores the geospatial location of the bus stop as address and description of the location.
Each bus stop records all bus services available at the bus stop.

A bus service is uniquely identified by a service ID. Note that some bus services have two
directions, e.g., district A to district B, and the opposite district B to district A . Each direction of a
bus service is considered as an individual service that has its own service ID. PBTS also tracks
the order of the bus stops served by a bus service. To simplify the project, we assume a bus
service never passes through the same bus stop twice. Furthermore, we need to know the total
number of stops for every bus service. Each bus service is operated by one or more bus
companies. We need to store the company (or companies) that operate the bus service. Note that
each company has a unique name. For a bus service, it is either operating on a normal route or
an express route. For a normal route, PBTS stores the bus frequency of the service on weekdays
and its frequency on weekends. For an express route, PBTS stores if the service is available on
weekends and also whether it operates on public holidays. There could be some services which
are available on weekends but not on public holidays.

For each bus service, PBTS should support queries on all the connecting bus services, i.e., bus
services that share at least one common bus stop with it. For providing convenient travel support
to passengers, PBTS should also support queries on any pair of bus stops that are connected by
direct bus services, i.e., no bus transition is needed to travel from one to the other.

2.2. Function 2: Service operation information

A bus is uniquely identified by its plate number. PBTS stores the fuel type of the bus (gas or
electric) and the capacity of the bus. One bus can serve any number of bus services and a bus
operates a bus service as a bus trip. There can be many bus trips for a bus service but the date
and start time of the trip will be different for each bus trip. PBTS stores the date of the bus trip,
the starting time, and the completion time of the bus trip (we assume that the starting time and the
completion time are on the same date; ignore cases where the trip starts before midnight and
ends after midnight). PBTS also tracks the driver for each bus trip. The driver information includes
a unique DID, a unique NRIC number, name, date of birth (DoB), and gender. Note that a driver
may drive different buses and a bus can switch drivers even within a day.

2.3. Function 3: CityLink card information

Passengers use CityLink cards to pay for the bus services. A CityLink card has a unique card ID
and PBTS also stores the remaining balance of the card. There are three types of CityLink cards:
Adult card, Senior card, and Student card. For each type of card, PBTS stores the discount (if
any), the minimum top-up amount, and the eligibility description of the card type. The system
needs to know the type of CityLink card to charge the correct amount of fees when
the passenger uses the transport services. A CityLink card has an expiry date, which has to be
stored. Once the card expires, a new card of the same type can be purchased to replace the
expired card and enjoy the same features (e.g., discount); the new card has its own new card ID,
and the database needs to record which card it has replaced.

2.4. Function 4: Passenger travel information

When a passenger gets on a bus at a bus stop, the passenger taps his/her CityLink card on the
bus to start a bus ride. When getting off the bus, the passenger taps the CityLink card again to end
a bus ride. A physical CityLink card can also be virtually stored in one or many smartphone
devices. PBTS only needs to know if a smartphone device or a physical card is used to tap the
CityLink card for a bus ride; the passenger is not allowed to switch between his/her physical and
virtual card for the ride. PBTS tracks the bus service used, the date when the ride is made, the
boarding bus stop and the alighting bus stop as well as the boarding time and the alighting time of
each bus ride. It is not possible for the same CityLink card (regardless of either physical or virtual
modes) to be used at the exact same time (i.e., date and boarding time) to board two different
bus rides; of course, rides recorded by different CityLink cards might share the same date and
boarding time.

For every pair of bus stops, a base fee is stored in the database. Note that the base fee between
the same two stops is not necessarily the same for both directions of travel between them. The
charged fare is determined by the base fee for the specific pair of stops minus the discount (if any)
provided for the specific CityLink card type used. For each bus ride, the charged fare needs to be
captured in the database. Some passengers forget to tap the CityLink card when alighting from
the bus; in such a case, the alight stop as well as the fare will not be recorded.

2.5. Function 5: Patrol operation information

To ensure the passengers pay the correct amount of fare, patrol officers are deployed to get on a
bus and validate if all passengers on the bus have correctly tapped their cards when they board
the bus. The information of a patrol officer includes the officer ID (unique), name, and the number
of years he/she has been employed. In case an offense is found, PBTS keeps an
offense record which includes the offence ID (unique), the patrol officer who caught the offence,
the offender’s NRIC, a CityLink card that belongs to the offender (if he/she has any with him/her),
the bus service, the bus, the driver, the date, the time of the offense, and the penalty amount. If
the offender does not have a CityLink card, the charges will be paid by cash. Note that the date
and the time of the offense should be recorded as two different attributes.
3.1 Plagiarism
Plagiarism is strictly not tolerated, and plagiarism cases will be referred to the university’s
disciplinary committee.

You might also like