# mrunclejhay/javacw-question_vi architecture

> Architecture diagram of the GitHub repository mrunclejhay/javacw-question_vi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mrunclejhay/javacw-question_vi
- Repository: https://github.com/mrunclejhay/javacw-question_vi

## Overview

This is a small Java console simulation of university transport requests, illustrating a shared User type and role-specific polymorphic behavior. The workflow starts in TransportDemo, which creates a student, lecturer, and transport officer, then invokes requestTransport() on each; each implementation prints its role-specific message. There is no booking, dispatch, or persistence subsystem. The tree contains duplicate default-package source files, but the README and packaged sources identify vu.utms as the intended application; the graph follows those packaged files.

Main entry points: [`TransportSystem/src/vu/utms/TransportDemo.java`](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/TransportDemo.java) (Transport Demo), [`TransportSystem/src/vu/utms/User.java`](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/User.java) (User), [`TransportSystem/src/vu/utms/Student.java`](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/Student.java) (Student), [`TransportSystem/src/vu/utms/Lecturer.java`](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/Lecturer.java) (Lecturer)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_demo["Transport Demo<br/>[TransportDemo.java]"]
node_user["User<br/>[User.java]"]
node_student["Student<br/>[Student.java]"]
node_lecturer["Lecturer<br/>[Lecturer.java]"]
node_officer["Transport Officer"]
node_console(("Console Output"))

node_operator -->|"runs"| node_demo
node_demo -->|"creates, invokes"| node_student
node_demo -->|"creates, invokes"| node_lecturer
node_demo -->|"creates, invokes"| node_officer
node_student -->|"extends"| node_user
node_lecturer -->|"extends"| node_user
node_officer -->|"extends"| node_user
node_student -->|"prints request"| node_console
node_lecturer -->|"prints request"| node_console
node_officer -->|"prints schedule message"| node_console
node_user -->|"prints default request"| node_console

click node_demo "https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/TransportDemo.java"
click node_user "https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/User.java"
click node_student "https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/Student.java"
click node_lecturer "https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/Lecturer.java"
click node_officer "https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/TransportOfficer.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_operator,node_console toneIndigo
class node_demo,node_student,node_lecturer,node_officer toneTeal
class node_user toneBlue
```

## Components

### Other components

- **Operator**
- [Transport Demo](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/TransportDemo.java): `TransportSystem/src/vu/utms/TransportDemo.java`
- [User](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/User.java): `TransportSystem/src/vu/utms/User.java`
- [Student](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/Student.java): `TransportSystem/src/vu/utms/Student.java`
- [Lecturer](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/Lecturer.java): `TransportSystem/src/vu/utms/Lecturer.java`
- [Transport Officer](https://github.com/mrunclejhay/javacw-question_vi/blob/main/TransportSystem/src/vu/utms/TransportOfficer.java): `TransportSystem/src/vu/utms/TransportOfficer.java`
- **Console Output**

## Connections

- Operator → Transport Demo: runs
- Transport Demo → Student: creates, invokes
- Transport Demo → Lecturer: creates, invokes
- Transport Demo → Transport Officer: creates, invokes
- Student → User: extends
- Lecturer → User: extends
- Transport Officer → User: extends
- Student → Console Output: prints request
- Lecturer → Console Output: prints request
- Transport Officer → Console Output: prints schedule message
- User → Console Output: prints default request
