Question
please fully solve this problem in java and in accordance to how it will be assessed as stressed in the last point. The Takalani Bus
please fully solve this problem in java and in accordance to how it will be assessed as stressed in the last point.
The Takalani Bus Company is developing a real-time information system for passengers. A Passenger Information Point (a PIP) is to be attached to each major stop in the network. Travellers waiting at such a stop will be able to view a list of approaching buses, ordered by estimated arrival time (in minutes). How does a PIP maintain the arrivals list? At (fairly) regular intervals along each bus route are electronic tags (affixed to street signs and bus stops). When a bus passes one of these waypoints it broadcasts a message to the effect. PIPs are equipped to receive these messages. A PIP knows about the services that use the stop to which it is attached. Each is characterised by the service identity code, the route number and destination, and a "timetable". The timetable lists the waypoints that a bus must pass as it approaches (those that are "upstream"), and for each, gives the average time it takes a bus to get from there to the stop. A message consists of three (alphanumeric) codes that uniquely identify the bus, service and waypoint. The bus code is used to determine whether the bus that sent the message is on the arrivals list. If the bus is not on the list, then the service and waypoint codes are used to determine whether it should be added i.e. whether it's a service that uses the PIP's stop and whether it's currently upstream. The waypoint code is used to look up the estimated arrival time, and the estimated arrival time is used to determine bus position in the arrivals list. How does a PIP know when a bus has arrived (and can be removed from the list)? It knows the waypoint code for the stop to which it is attached.
your design must take the form of a UML class diagram; a class diagram that describes a collection of classes that together provide the functionality described in the brief. In this case, we dont have a precise starting point either. To identify possible classes, we recommend that you begin with a nounverb analysis of the description. That said, here are a few pointers:
The boundary between a PIP and the rest of the world is clear: it receives messages from waypoints. It displays an arrivals list.
To represent/model the idea that the system receives messages, within your design you should have a class of object (a Receiver perhaps) that has a method that accepts a message as a parameter and that acts upon it.
You do not need to concern yourself with how the arrivals list is displayed. Just ensure that within the design there is an ArrivalsList class. You should expect to identify and describe at least 5 classes.
Your solution will be assessed according to (i) how well it supports the required functionality, (ii) its OO qualities, and (iii) use of UML.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started