# yahyasystementor/plant-hotel architecture

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

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

## Overview

This small Java program demonstrates a plant-care calculation. The principal workflow starts in `Main`, creates a palm, calculates its liquid amount and type, then prints the plant name and results. `Palm` supplies the palm-specific behavior and inherits plant identity and height from `Plant`; `LiquidType` defines the available liquid categories. The excerpts show this complete runtime path, with no evidence of persistence or external integrations.

Main entry points: [`src/Main.java`](https://github.com/yahyasystementor/plant-hotel/blob/master/src/Main.java) (Program entry), [`src/Palm.java`](https://github.com/yahyasystementor/plant-hotel/blob/master/src/Palm.java) (Palm behavior), [`src/Plant.java`](https://github.com/yahyasystementor/plant-hotel/blob/master/src/Plant.java) (Plant model), [`src/LiquidType.java`](https://github.com/yahyasystementor/plant-hotel/blob/master/src/LiquidType.java) (Liquid categories)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_main["Program entry<br/>[Main.java]"]
node_palm["Palm behavior<br/>[Palm.java]"]
node_plant["Plant model<br/>[Plant.java]"]
node_liquid_type["Liquid categories<br/>[LiquidType.java]"]
node_terminal(("Standard output"))

node_main -->|"creates and calls"| node_palm
node_main -->|"reads name"| node_plant
node_palm -->|"extends"| node_plant
node_palm -->|"returns type"| node_liquid_type
node_main -->|"prints results"| node_terminal

click node_main "https://github.com/yahyasystementor/plant-hotel/blob/master/src/Main.java"
click node_palm "https://github.com/yahyasystementor/plant-hotel/blob/master/src/Palm.java"
click node_plant "https://github.com/yahyasystementor/plant-hotel/blob/master/src/Plant.java"
click node_liquid_type "https://github.com/yahyasystementor/plant-hotel/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_main,node_palm,node_liquid_type toneTeal
class node_plant,node_terminal toneIndigo
```

## Components

### Other components

- [Program entry](https://github.com/yahyasystementor/plant-hotel/blob/master/src/Main.java): `src/Main.java`
- [Palm behavior](https://github.com/yahyasystementor/plant-hotel/blob/master/src/Palm.java): `src/Palm.java`
- [Plant model](https://github.com/yahyasystementor/plant-hotel/blob/master/src/Plant.java): `src/Plant.java`
- [Liquid categories](https://github.com/yahyasystementor/plant-hotel/blob/master/src/LiquidType.java): `src/LiquidType.java`
- **Standard output**

## Connections

- Program entry → Palm behavior: creates and calls (evidence: `src/Main.java`)
- Program entry → Plant model: reads name (evidence: `src/Main.java`)
- Palm behavior → Plant model: extends (evidence: `src/Palm.java`)
- Palm behavior → Liquid categories: returns type (evidence: `src/Palm.java`)
- Program entry → Standard output: prints results (evidence: `src/Main.java`)
