This project simulates real-world railway consist management by implementing train operations such as adding coaches, tracking bogies, sorting, searching, safety validation and exception handling.
Each branch represents a new feature or enhancement, allowing you to explore the application's evolution step by step.
| Branch | Description |
|---|---|
| UC1-Initialize_Train | Initialize the train consist |
| UC2-Add_Bogies | Add bogies to the train |
| UC3-Track_Bogies | Track train bogies |
| UC4-Bogie_IDS | Generate unique bogie IDs |
| UC5-Preserve_Insertion_Order | Maintain insertion order |
| UC6-Bogie_Capacity | Validate bogie seating capacity |
| UC7-Sort_Bogies | Sort bogies |
| UC8-Passenger_Filter | Filter passenger records |
| UC9-Group_Bogies | Group bogies by category |
| UC10-Total_Seat | Calculate total seat capacity |
| UC11-Train_ID | Generate train IDs |
| UC12-Safety_Check | Perform safety validation |
| UC13-Performance_Comparison | Compare implementation performance |
| UC14-Invalid_Bogie | Handle invalid bogie data |
| UC15-Safe_Cargo | Validate cargo safety |
| UC16-Sort_Passenger | Sort passenger records |
| UC17-Sort_Bogie_Name | Sort bogies alphabetically |
| UC18-Linear_Search | Search using Linear Search |
| UC19-Binary_Search | Search using Binary Search |
| UC20-Exception_Handling | Exception handling and final implementation (Main Branch) |
- Clone the repository:
bash git clone https://github.com/yourusername/train-consist-management-app.git - Navigate to the project:
bash cd train-consist-management-app - Run the application: Compile & run the Java application using your preferred IDE (IntelliJ IDEA, Eclipse, or VS Code) or the Java command line tools.