This file uses Mark Down syntax. For more information see here.
STUDENT NAME = "Jonas Birkeli"
STUDENT ID = "107006"
Train dispatch system, where the user can view traindepartures, add traindepartures, remove traindepartures, search for and select traindepartures, and perform certain actions on the selected traindeparture. You can also update the time of the station, and quit the application. There is a help option that shows the user the different options and how to use them.
Maven project with the following structure:
src
├── main
│ └── java
│ ├── app
│ │ └── DispatchApp.java
│ ├── config
│ │ ├── Colors.java
│ │ └── ConfigurationOptions.java
│ ├── core
│ │ ├── Station.java
│ │ └── TrainDeparture.java
│ ├── io
│ │ └── DispatchSystem.java
│ └── utility
│ ├── Clock.java
│ ├── InputHandler.java
│ ├── InputValidator.java
│ └── Printer.java
└── test
└── java
├── core
│ ├── StationTest.java
│ └── TrainDepartureTest.java
└── utility
├── ClockTest.java
└── InputValidatorTest.java
https://github.com/NTNU-BIDATA-IDATG1003-2023/mappe-idatg1003-traindispatchsystem-jonas-birkeli
The main class is DispatchApp.java, and the main method is the start() method. The dispatchApp is a representation of a single station, and the time is limited to 24 hours. The program will show a list of options, and the user can choose an option by typing the corresponding number. The options are as following:
- View train-departures
- Add train-departure
- Remove selected train-departure
- Assign track to selevted train-departure
- Assign delay to selected train-departure's departure-time
- Seelct a train-departure by its unique train-number
- Search train-departure by destination
- Update time of station
- Quit application
- Help
The user can choose an option by typing the corresponding number, and the program will then execute the corresponding method. The user can quit the application by typing 9.
The tests can be run by running the core.StationTest.java, core.TrainDepartureTest.java, utility.ClockTest.java and utility.InputValidatorTest.java files. The tests can be run by right-clicking the file and choosing "Run 'DispatchAppTest'". The tests can also be run by clicking the green play button in the top right corner of the file.