# yahyasystementor/greenest architecture

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

- Interactive diagram: https://gitdiagram.com/yahyasystementor/greenest
- Repository: https://github.com/yahyasystementor/greenest

## Overview

This is a small Java console program for looking up a plant and displaying its name, calculated watering amount, and liquid type. The main workflow reads a user response, handles the Laura entry by using a Palm instance, and prints the result; other responses receive simple placeholder output or a not-found message. The model consists of shared plant name and height data, palm-specific amount calculation, and a liquid-type enum. The graph reflects only the four sampled source files.

Main entry points: [`src/Main.java`](https://github.com/yahyasystementor/greenest/blob/master/src/Main.java) (Console Main), [`src/Palm.java`](https://github.com/yahyasystementor/greenest/blob/master/src/Palm.java) (Palm), [`src/Plant.java`](https://github.com/yahyasystementor/greenest/blob/master/src/Plant.java) (Plant), [`src/LiquidType.java`](https://github.com/yahyasystementor/greenest/blob/master/src/LiquidType.java) (Liquid Type)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_main["Console Main<br/>[Main.java]"]
node_palm["Palm<br/>[Palm.java]"]
node_plant["Plant<br/>[Plant.java]"]
node_liquid["Liquid Type<br/>[LiquidType.java]"]

node_user -->|"enters response"| node_main
node_main -->|"creates and queries"| node_palm
node_main -->|"calls inherited getter"| node_plant
node_main -->|"prints constant"| node_liquid
node_palm -->|"extends and reads height"| node_plant
node_palm -->|"returns type"| node_liquid

click node_main "https://github.com/yahyasystementor/greenest/blob/master/src/Main.java"
click node_palm "https://github.com/yahyasystementor/greenest/blob/master/src/Palm.java"
click node_plant "https://github.com/yahyasystementor/greenest/blob/master/src/Plant.java"
click node_liquid "https://github.com/yahyasystementor/greenest/blob/master/src/LiquidType.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_user toneBlue
class node_main,node_palm,node_plant,node_liquid toneTeal
```

## Components

### Other components

- **User**
- [Console Main](https://github.com/yahyasystementor/greenest/blob/master/src/Main.java): `src/Main.java`
- [Palm](https://github.com/yahyasystementor/greenest/blob/master/src/Palm.java): `src/Palm.java`
- [Plant](https://github.com/yahyasystementor/greenest/blob/master/src/Plant.java): `src/Plant.java`
- [Liquid Type](https://github.com/yahyasystementor/greenest/blob/master/src/LiquidType.java): `src/LiquidType.java`

## Connections

- User → Console Main: enters response (evidence: `src/Main.java`)
- Console Main → Palm: creates and queries (evidence: `src/Main.java`)
- Console Main → Plant: calls inherited getter (evidence: `src/Main.java`)
- Console Main → Liquid Type: prints constant (evidence: `src/Main.java`)
- Palm → Plant: extends and reads height (evidence: `src/Palm.java`)
- Palm → Liquid Type: returns type (evidence: `src/Palm.java`)
