# cristi-xx/fixitnow architecture

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

- Interactive diagram: https://gitdiagram.com/cristi-xx/fixitnow
- Repository: https://github.com/cristi-xx/fixitnow

## Overview

FixItNow is a console-based appliance-repair service manager. Staff and the repairable-appliance catalog are maintained before customer requests are registered; the ServiceManager then queues requests, assigns suitable technicians, advances repairs through simulation, and supports CSV reporting. Staff validation, employee/appliance factories, and salary decorators provide supporting domain logic. The excerpts show the CLI-to-manager entry point and portions of allocation and simulation; some subsystem links below rely on README descriptions rather than inspected implementation.

Main entry points: [`ServiceManager.cpp`](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp) (Service manager), [`Muncitori/Angajati.cpp`](https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajati.cpp) (Employee validation), [`Cereri/CereriReparatie.cpp`](https://github.com/cristi-xx/fixitnow/blob/master/Cereri/CereriReparatie.cpp) (Repair request), [`Electrocasnice/Electrocasnic.cpp`](https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Electrocasnic.cpp) (Appliance model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Console workflow"]
  node_cli["CLI menus<br/>[main.cpp]"]
end

subgraph group_operations["Service operations"]
  node_manager["Service manager<br/>[ServiceManager.cpp]"]
  node_staff_admin["Staff administration<br/>[ServiceManager.cpp]"]
  node_catalog_admin["Catalog administration<br/>[ServiceManager.cpp]"]
  node_request_intake["Request intake<br/>[ServiceManager.cpp]"]
  node_allocation["Technician allocation<br/>[ServiceManager.cpp]"]
  node_simulation["Repair simulation<br/>[ServiceManager.cpp]"]
  node_reporting["CSV reporting<br/>[ServiceManager.cpp]"]
end

subgraph group_appliances["Appliance domain"]
  node_catalog[("Repairable catalog")]
  node_appliance["Appliance model<br/>[Electrocasnic.cpp]"]
  node_refrigerator["Refrigerator<br/>[Frigider.cpp]"]
  node_washing_machine["Washing machine<br/>[Masina_spalat.cpp]"]
  node_television["Television<br/>[TV.cpp]"]
  node_appliance_factory["Appliance factory"]
end

subgraph group_staff["Staff and payroll"]
  node_employee["Employee validation<br/>[Angajati.cpp]"]
  node_employee_factory["Employee factory<br/>[AngajatFactory.cpp]"]
  node_receptionist["Receptionist<br/>[Receptioner.cpp]"]
  node_technician["Technician<br/>[Tehnician.cpp]"]
  node_supervisor["Supervisor<br/>[Supervizor.cpp]"]
  node_payroll["Salary decorators<br/>[ICalculSalariu.cpp]"]
end

subgraph group_requests["Repair requests"]
  node_repair_request["Repair request"]
end

node_operator(("Service operator"))

node_operator -->|"uses"| node_cli
node_cli -->|"dispatches"| node_manager
node_manager -->|"manages"| node_staff_admin
node_manager -->|"manages"| node_catalog_admin
node_manager -->|"manages"| node_request_intake
node_manager -->|"runs"| node_allocation
node_manager -->|"runs"| node_simulation
node_manager -->|"generates"| node_reporting
node_staff_admin -->|"creates staff"| node_employee_factory
node_employee_factory -->|"creates"| node_employee
node_employee -->|"specializes"| node_receptionist
node_employee -->|"specializes"| node_technician
node_employee -->|"specializes"| node_supervisor
node_employee -->|"uses salary"| node_payroll
node_staff_admin -->|"configures"| node_payroll
node_catalog_admin -->|"updates"| node_catalog
node_request_intake -->|"queues"| node_repair_request
node_request_intake -.->|"creates appliance"| node_appliance_factory
node_appliance_factory -->|"creates"| node_refrigerator
node_appliance_factory -->|"creates"| node_washing_machine
node_appliance_factory -->|"creates"| node_television
node_refrigerator -->|"specializes"| node_appliance
node_washing_machine -->|"specializes"| node_appliance
node_television -->|"specializes"| node_appliance
node_repair_request -->|"owns"| node_appliance
node_repair_request -->|"tracks assignment"| node_technician
node_allocation -->|"selects"| node_technician
node_allocation -->|"assigns"| node_repair_request
node_simulation -->|"advances ticks"| node_repair_request
node_catalog_admin -.->|"checks models"| node_appliance

click node_cli "https://github.com/cristi-xx/fixitnow/blob/master/main.cpp"
click node_manager "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_staff_admin "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_catalog_admin "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_request_intake "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_allocation "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_simulation "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_reporting "https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp"
click node_catalog "https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/CatalogElectrocasnice.cpp"
click node_appliance "https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Electrocasnic.cpp"
click node_refrigerator "https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Tipuri/Frigider.cpp"
click node_washing_machine "https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Tipuri/Masina_spalat.cpp"
click node_television "https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Tipuri/TV.cpp"
click node_appliance_factory "https://github.com/cristi-xx/fixitnow/blob/master/ElectrocasnicFactory.cpp"
click node_repair_request "https://github.com/cristi-xx/fixitnow/blob/master/Cereri/CereriReparatie.cpp"
click node_employee "https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajati.cpp"
click node_employee_factory "https://github.com/cristi-xx/fixitnow/blob/master/AngajatFactory.cpp"
click node_receptionist "https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajatii/Receptioner.cpp"
click node_technician "https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajatii/Tehnician.cpp"
click node_supervisor "https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajatii/Supervizor.cpp"
click node_payroll "https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Salarii/ICalculSalariu.cpp"

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_cli toneBlue
class node_manager,node_staff_admin,node_catalog_admin,node_request_intake,node_allocation,node_simulation,node_reporting toneAmber
class node_catalog,node_appliance,node_refrigerator,node_washing_machine,node_television,node_appliance_factory toneMint
class node_employee,node_employee_factory,node_receptionist,node_technician,node_supervisor,node_payroll toneRose
class node_repair_request,node_operator toneIndigo
```

## Components

### Console workflow

- [CLI menus](https://github.com/cristi-xx/fixitnow/blob/master/main.cpp): `main.cpp`

### Service operations

- [Service manager](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`
- [Staff administration](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`
- [Catalog administration](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`
- [Request intake](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`
- [Technician allocation](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`
- [Repair simulation](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`
- [CSV reporting](https://github.com/cristi-xx/fixitnow/blob/master/ServiceManager.cpp): `ServiceManager.cpp`

### Appliance domain

- [Repairable catalog](https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/CatalogElectrocasnice.cpp): `Electrocasnice/CatalogElectrocasnice.cpp`
- [Appliance model](https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Electrocasnic.cpp): `Electrocasnice/Electrocasnic.cpp`
- [Refrigerator](https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Tipuri/Frigider.cpp): `Electrocasnice/Tipuri/Frigider.cpp`
- [Washing machine](https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Tipuri/Masina_spalat.cpp): `Electrocasnice/Tipuri/Masina_spalat.cpp`
- [Television](https://github.com/cristi-xx/fixitnow/blob/master/Electrocasnice/Tipuri/TV.cpp): `Electrocasnice/Tipuri/TV.cpp`
- [Appliance factory](https://github.com/cristi-xx/fixitnow/blob/master/ElectrocasnicFactory.cpp): `ElectrocasnicFactory.cpp`

### Staff and payroll

- [Employee validation](https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajati.cpp): `Muncitori/Angajati.cpp`
- [Employee factory](https://github.com/cristi-xx/fixitnow/blob/master/AngajatFactory.cpp): `AngajatFactory.cpp`
- [Receptionist](https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajatii/Receptioner.cpp): `Muncitori/Angajatii/Receptioner.cpp`
- [Technician](https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajatii/Tehnician.cpp): `Muncitori/Angajatii/Tehnician.cpp`
- [Supervisor](https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Angajatii/Supervizor.cpp): `Muncitori/Angajatii/Supervizor.cpp`
- [Salary decorators](https://github.com/cristi-xx/fixitnow/blob/master/Muncitori/Salarii/ICalculSalariu.cpp): `Muncitori/Salarii/ICalculSalariu.cpp`

### Repair requests

- [Repair request](https://github.com/cristi-xx/fixitnow/blob/master/Cereri/CereriReparatie.cpp): `Cereri/CereriReparatie.cpp`

### Other components

- **Service operator**

## Connections

- Service operator → CLI menus: uses (evidence: `README.md`)
- CLI menus → Service manager: dispatches (evidence: `main.cpp`)
- Service manager → Staff administration: manages (evidence: `ServiceManager.cpp`)
- Service manager → Catalog administration: manages (evidence: `ServiceManager.cpp`)
- Service manager → Request intake: manages (evidence: `ServiceManager.cpp`)
- Service manager → Technician allocation: runs (evidence: `ServiceManager.cpp`)
- Service manager → Repair simulation: runs (evidence: `ServiceManager.cpp`)
- Service manager → CSV reporting: generates (evidence: `ServiceManager.cpp`)
- Staff administration → Employee factory: creates staff (evidence: `ServiceManager.cpp`)
- Employee factory → Employee validation: creates
- Employee validation → Receptionist: specializes
- Employee validation → Technician: specializes
- Employee validation → Supervisor: specializes
- Employee validation → Salary decorators: uses salary
- Staff administration → Salary decorators: configures (evidence: `ServiceManager.cpp`)
- Catalog administration → Repairable catalog: updates
- Request intake → Repair request: queues (evidence: `ServiceManager.cpp`)
- Request intake → Appliance factory: creates appliance
- Appliance factory → Refrigerator: creates (evidence: `ElectrocasnicFactory.cpp`)
- Appliance factory → Washing machine: creates (evidence: `ElectrocasnicFactory.cpp`)
- Appliance factory → Television: creates (evidence: `ElectrocasnicFactory.cpp`)
- Refrigerator → Appliance model: specializes
- Washing machine → Appliance model: specializes
- Television → Appliance model: specializes
- Repair request → Appliance model: owns
- Repair request → Technician: tracks assignment
- Technician allocation → Technician: selects (evidence: `ServiceManager.cpp`)
- Technician allocation → Repair request: assigns (evidence: `ServiceManager.cpp`)
- Repair simulation → Repair request: advances ticks (evidence: `ServiceManager.cpp`)
- Catalog administration → Appliance model: checks models
