# agentfabul/concretocal architecture

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

- Interactive diagram: https://gitdiagram.com/agentfabul/concretocal
- Repository: https://github.com/agentfabul/concretocal

## Overview

This educational Java console estimator takes a project title and menu choices, then calculates concrete volume, optionally estimates concrete materials, manages material records, gathers additional expenses, and presents costs or a full report. Its state is kept in memory. The graph separates the menu orchestrator, estimation and cost/report responsibilities, and shared console tools. Relationships are based on the excerpts, SOURCE INDEX references, and README; unsampled details are not inferred.

Main entry points: [`src/Main.java`](https://github.com/agentfabul/concretocal/blob/main/src/Main.java) (Menu and workflow), [`src/BudgetCalculator.java`](https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java) (Budget summary), [`src/MaterialManager.java`](https://github.com/agentfabul/concretocal/blob/main/src/MaterialManager.java) (Material records), [`src/ConsoleHelper.java`](https://github.com/agentfabul/concretocal/blob/main/src/ConsoleHelper.java) (Console input and display)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Console application"]
  node_main["Menu and workflow<br/>[Main.java]"]
end

subgraph group_estimation["Estimation and costs"]
  node_concrete["Concrete volume"]
  node_estimates["Mix estimates"]
  node_materials[("Material records")]
  node_materialcost["Material costs and list"]
  node_expenses["Additional expenses"]
  node_budget["Budget summary"]
  node_report["Cost report"]
end

subgraph group_shared["Shared tools"]
  node_console["Console input and display<br/>[ConsoleHelper.java]"]
end

node_user(("Project user"))

node_user -->|"chooses tasks"| node_main
node_main -->|"dispatches"| node_concrete
node_main -->|"dispatches"| node_materials
node_main -->|"dispatches"| node_materialcost
node_main -->|"dispatches"| node_budget
node_main -->|"requests report"| node_report
node_concrete -->|"calculates"| node_estimates
node_estimates -->|"adds estimates"| node_materials
node_materials -->|"provides records"| node_materialcost
node_budget -->|"summarizes"| node_expenses
node_budget -->|"adds material total"| node_materialcost
node_report -->|"prints material table"| node_materials
node_report -->|"prints summary"| node_budget
node_main -->|"reads and formats"| node_console
node_concrete -->|"reads and displays"| node_console
node_materials -->|"reads and displays"| node_console
node_budget -->|"reads and displays"| node_console
node_report -->|"formats report"| node_console

click node_main "https://github.com/agentfabul/concretocal/blob/main/src/Main.java"
click node_concrete "https://github.com/agentfabul/concretocal/blob/main/src/ConcreteCalculator.java"
click node_estimates "https://github.com/agentfabul/concretocal/blob/main/src/ConcreteCalculator.java"
click node_materials "https://github.com/agentfabul/concretocal/blob/main/src/MaterialManager.java"
click node_materialcost "https://github.com/agentfabul/concretocal/blob/main/src/MaterialManager.java"
click node_expenses "https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java"
click node_budget "https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java"
click node_report "https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java"
click node_console "https://github.com/agentfabul/concretocal/blob/main/src/ConsoleHelper.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_main,node_user toneBlue
class node_concrete,node_estimates,node_materials,node_materialcost,node_expenses,node_budget,node_report toneAmber
class node_console toneMint
```

## Components

### Console application

- [Menu and workflow](https://github.com/agentfabul/concretocal/blob/main/src/Main.java): `src/Main.java`

### Estimation and costs

- [Concrete volume](https://github.com/agentfabul/concretocal/blob/main/src/ConcreteCalculator.java): `src/ConcreteCalculator.java`
- [Mix estimates](https://github.com/agentfabul/concretocal/blob/main/src/ConcreteCalculator.java): `src/ConcreteCalculator.java`
- [Material records](https://github.com/agentfabul/concretocal/blob/main/src/MaterialManager.java): `src/MaterialManager.java`
- [Material costs and list](https://github.com/agentfabul/concretocal/blob/main/src/MaterialManager.java): `src/MaterialManager.java`
- [Additional expenses](https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java): `src/BudgetCalculator.java`
- [Budget summary](https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java): `src/BudgetCalculator.java`
- [Cost report](https://github.com/agentfabul/concretocal/blob/main/src/BudgetCalculator.java): `src/BudgetCalculator.java`

### Shared tools

- [Console input and display](https://github.com/agentfabul/concretocal/blob/main/src/ConsoleHelper.java): `src/ConsoleHelper.java`

### Other components

- **Project user**

## Connections

- Project user → Menu and workflow: chooses tasks (evidence: `README.md`)
- Menu and workflow → Concrete volume: dispatches (evidence: `src/Main.java`)
- Menu and workflow → Material records: dispatches (evidence: `src/Main.java`)
- Menu and workflow → Material costs and list: dispatches (evidence: `README.md`)
- Menu and workflow → Budget summary: dispatches (evidence: `src/Main.java`)
- Menu and workflow → Cost report: requests report (evidence: `src/Main.java`)
- Concrete volume → Mix estimates: calculates (evidence: `src/ConcreteCalculator.java`)
- Mix estimates → Material records: adds estimates (evidence: `src/ConcreteCalculator.java`)
- Material records → Material costs and list: provides records (evidence: `src/MaterialManager.java`)
- Budget summary → Additional expenses: summarizes (evidence: `src/BudgetCalculator.java`)
- Budget summary → Material costs and list: adds material total (evidence: `src/BudgetCalculator.java`)
- Cost report → Material records: prints material table (evidence: `src/BudgetCalculator.java`)
- Cost report → Budget summary: prints summary (evidence: `src/BudgetCalculator.java`)
- Menu and workflow → Console input and display: reads and formats (evidence: `src/Main.java`)
- Concrete volume → Console input and display: reads and displays (evidence: `src/ConcreteCalculator.java`)
- Material records → Console input and display: reads and displays (evidence: `src/MaterialManager.java`)
- Budget summary → Console input and display: reads and displays (evidence: `src/BudgetCalculator.java`)
- Cost report → Console input and display: formats report (evidence: `src/BudgetCalculator.java`)
