# adwaithanoop/ip architecture

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

- Interactive diagram: https://gitdiagram.com/adwaithanoop/ip
- Repository: https://github.com/adwaithanoop/ip

## Overview

Bob is a desktop task manager with a console alternative. The main workflow is user input → parsing and validation → command execution against the task list → feedback and persistence. The graph also preserves the documented task-management and date-query capabilities. Some implementation files were not excerpted; edges involving them are limited to relationships visible in the SOURCE INDEX or README.

Main entry points: [`src/main/java/bob/Bob.java`](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/Bob.java) (Conversation handler), [`src/main/java/bob/task/TaskList.java`](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskList.java) (Task list), [`src/main/java/bob/parser/Parser.java`](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/Parser.java) (Command parser), [`src/main/java/bob/command`](https://github.com/adwaithanoop/ip/tree/master/src/main/java/bob/command) (Command execution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interfaces"]
  node_console["Console interface<br/>[Ui.java]"]
  node_launcher["Desktop launcher<br/>[Launcher.java]"]
  node_window["JavaFX window<br/>[MainWindow.java]"]
  node_dialog["Chat dialog<br/>[DialogBox.java]"]
  node_output["Response formatting<br/>[Ui.java]"]
end

subgraph group_interpret["Command interpretation"]
  node_bob["Conversation handler<br/>[Bob.java]"]
  node_parser["Command parser<br/>[Parser.java]"]
  node_arguments["Argument parsing"]
  node_taskparser["Task parsing<br/>[TaskParser.java]"]
  node_editparser["Edit parsing<br/>[EditParser.java]"]
end

subgraph group_domain["Tasks and operations"]
  node_commands["Command execution"]
  node_add["Add tasks<br/>[AddCommand.java]"]
  node_manage["Mark edit delete<br/>[MarkCommand.java]"]
  node_queries["Task queries<br/>[ListCommand.java]"]
  node_tasklist["Task list<br/>[TaskList.java]"]
  node_tasktypes["Task types<br/>[Task.java]"]
  node_datetime["Date and time<br/>[TaskDateTime.java]"]
  node_taskedit["Edit values<br/>[TaskEdit.java]"]
end

subgraph group_persistence["Persistence"]
  node_storage[("Save and load<br/>[Storage.java]")]
end

node_user(("User"))

node_user -->|"types commands"| node_console
node_user -->|"types commands"| node_window
node_launcher -->|"starts"| node_window
node_window -->|"renders"| node_dialog
node_window -->|"submits commands"| node_bob
node_console -->|"runs conversation"| node_bob
node_bob -->|"parses input"| node_parser
node_parser -->|"parses arguments"| node_arguments
node_parser -->|"parses tasks"| node_taskparser
node_parser -->|"parses edits"| node_editparser
node_taskparser -->|"validates dates"| node_datetime
node_editparser -->|"creates edits"| node_taskedit
node_bob -->|"executes command"| node_commands
node_commands -->|"reads or changes"| node_tasklist
node_commands -->|"saves changes"| node_storage
node_commands -->|"reports results"| node_output
node_add -->|"adds tasks"| node_tasklist
node_manage -->|"updates tasks"| node_tasklist
node_queries -->|"selects tasks"| node_tasklist
node_tasklist -->|"holds tasks"| node_tasktypes
node_tasktypes -->|"uses schedule"| node_datetime
node_tasktypes -->|"applies edits"| node_taskedit
node_bob -->|"loads tasks"| node_storage
node_storage -->|"reads and writes"| node_tasktypes
node_output -->|"shows response"| node_user

click node_console "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/Ui.java"
click node_launcher "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/Launcher.java"
click node_window "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/MainWindow.java"
click node_dialog "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/DialogBox.java"
click node_bob "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/Bob.java"
click node_parser "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/Parser.java"
click node_arguments "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/ArgumentParser.java"
click node_taskparser "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/TaskParser.java"
click node_editparser "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/EditParser.java"
click node_commands "https://github.com/adwaithanoop/ip/tree/master/src/main/java/bob/command"
click node_add "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/command/AddCommand.java"
click node_manage "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/command/MarkCommand.java"
click node_queries "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/command/ListCommand.java"
click node_tasklist "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskList.java"
click node_tasktypes "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/Task.java"
click node_datetime "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskDateTime.java"
click node_taskedit "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskEdit.java"
click node_storage "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/storage/Storage.java"
click node_output "https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/Ui.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_console,node_launcher,node_window,node_dialog,node_output,node_user toneBlue
class node_bob,node_parser,node_arguments,node_taskparser,node_editparser toneAmber
class node_commands,node_add,node_manage,node_queries,node_tasklist,node_tasktypes,node_datetime,node_taskedit toneMint
class node_storage toneRose
```

## Components

### User interfaces

- [Console interface](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/Ui.java): `src/main/java/bob/ui/Ui.java`
- [Desktop launcher](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/Launcher.java): `src/main/java/bob/Launcher.java`
- [JavaFX window](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/MainWindow.java): `src/main/java/bob/ui/MainWindow.java`
- [Chat dialog](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/DialogBox.java): `src/main/java/bob/ui/DialogBox.java`
- [Response formatting](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/ui/Ui.java): `src/main/java/bob/ui/Ui.java`

### Command interpretation

- [Conversation handler](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/Bob.java): `src/main/java/bob/Bob.java`
- [Command parser](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/Parser.java): `src/main/java/bob/parser/Parser.java`
- [Argument parsing](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/ArgumentParser.java): `src/main/java/bob/parser/ArgumentParser.java`
- [Task parsing](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/TaskParser.java): `src/main/java/bob/parser/TaskParser.java`
- [Edit parsing](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/parser/EditParser.java): `src/main/java/bob/parser/EditParser.java`

### Tasks and operations

- [Command execution](https://github.com/adwaithanoop/ip/tree/master/src/main/java/bob/command): `src/main/java/bob/command`
- [Add tasks](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/command/AddCommand.java): `src/main/java/bob/command/AddCommand.java`
- [Mark edit delete](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/command/MarkCommand.java): `src/main/java/bob/command/MarkCommand.java`
- [Task queries](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/command/ListCommand.java): `src/main/java/bob/command/ListCommand.java`
- [Task list](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskList.java): `src/main/java/bob/task/TaskList.java`
- [Task types](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/Task.java): `src/main/java/bob/task/Task.java`
- [Date and time](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskDateTime.java): `src/main/java/bob/task/TaskDateTime.java`
- [Edit values](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/task/TaskEdit.java): `src/main/java/bob/task/TaskEdit.java`

### Persistence

- [Save and load](https://github.com/adwaithanoop/ip/blob/master/src/main/java/bob/storage/Storage.java): `src/main/java/bob/storage/Storage.java`

### Other components

- **User**

## Connections

- User → Console interface: types commands (evidence: `README.md`)
- User → JavaFX window: types commands (evidence: `README.md`)
- Desktop launcher → JavaFX window: starts (evidence: `src/main/java/bob/Launcher.java`)
- JavaFX window → Chat dialog: renders (evidence: `src/main/java/bob/ui/DialogBox.java`)
- JavaFX window → Conversation handler: submits commands (evidence: `src/main/java/bob/ui/MainWindow.java`)
- Console interface → Conversation handler: runs conversation (evidence: `src/main/java/bob/Bob.java`)
- Conversation handler → Command parser: parses input (evidence: `src/main/java/bob/Bob.java`)
- Command parser → Argument parsing: parses arguments (evidence: `src/main/java/bob/parser/Parser.java`)
- Command parser → Task parsing: parses tasks (evidence: `src/main/java/bob/parser/Parser.java`)
- Command parser → Edit parsing: parses edits (evidence: `src/main/java/bob/parser/Parser.java`)
- Task parsing → Date and time: validates dates (evidence: `src/main/java/bob/parser/TaskParser.java`)
- Edit parsing → Edit values: creates edits (evidence: `src/main/java/bob/parser/EditParser.java`)
- Conversation handler → Command execution: executes command (evidence: `src/main/java/bob/Bob.java`)
- Command execution → Task list: reads or changes (evidence: `src/main/java/bob/command/Command.java`)
- Command execution → Save and load: saves changes (evidence: `src/main/java/bob/command/Command.java`)
- Command execution → Response formatting: reports results (evidence: `src/main/java/bob/command/Command.java`)
- Add tasks → Task list: adds tasks (evidence: `src/main/java/bob/command/AddCommand.java`)
- Mark edit delete → Task list: updates tasks (evidence: `src/main/java/bob/command/MarkCommand.java`)
- Task queries → Task list: selects tasks (evidence: `src/main/java/bob/command/ListCommand.java`)
- Task list → Task types: holds tasks (evidence: `src/main/java/bob/task/TaskList.java`)
- Task types → Date and time: uses schedule (evidence: `src/main/java/bob/task/Task.java`)
- Task types → Edit values: applies edits (evidence: `src/main/java/bob/task/Task.java`)
- Conversation handler → Save and load: loads tasks (evidence: `src/main/java/bob/Bob.java`)
- Save and load → Task types: reads and writes (evidence: `src/main/java/bob/storage/Storage.java`)
- Response formatting → User: shows response (evidence: `README.md`)
