This file uses Mark Down syntax. For more information see here.
STUDENT NAME = "Kaamya Shinde"
STUDENT ID = "10083"
This project has been developed as a part of the course IDATT1003 - Programming 1 at NTNU. It is a Java based application set up as a Maven project. The application is a simplified Train Dispatch System.
The project is structured as a Maven project. The source files are stored in the src/main/java
folder. The JUnit test
classes are stored in the src/test/java
folder. The source files are divided into packages based on their
functionality. The model classes are stored in the model
package. These include the entity class - Train Departure and
the register class - Train Departure Register. The utility classes used to validate the methods and improve the
robustness
of the code are stored in the package called utils
. The ui
package contains the user interface class. The main
application class is stored in the app
package.
https://github.com/kaamyashinde/MappeVurdering
The project can be run by running the main method in the TrainDispatchApp
class located in the app
package. The
application has a user interface that allows the user to interact with the application.
After running the application, the user is prompted to enter the time of the day - because the simplified application
only takes into consideration a station within a 24-hour window (as in a whole day). After that, the user is presented
with the menu and can choose between a range of options.
- Quit the application
- Overview of departures
- Add a departure
- Remove a departure
- Find a departure
- Filter by destination
- Assign a track
- Add dela
- Update time
The tests are found in the src/test/java
folder and can be run by running the main method in the desired test class.
There is a test class for each class in the model
package. The test class for the TrainDeparture
class is
named TrainDepartureTest
while the test class for the TrainDepartureRegister
class is named TrainDepartureRegisterTest
.
The code has been developed by the student. ChatGPT has been used to generate parts of the code is clearly stated in the javaDoc comments.