How alonso-rodriguez-bolanos/smart-grid works
This is a console-based smart-grid network manager. At startup, main loads the grid, clients, and benefits; the menu provides the interactive application, and changes are saved on exit. The documented domain includes network editing and traversal, route queries, client token and benefit management, and reporting. The graph and menu implementations were not excerpted, so their internal dispatches and feature-level connections are not inferred; the shown edges follow explicit calls and references.
Main entry points: Grafo.cpp Grid editing and queries · main.cpp Program entry · ListaClientes.cpp Client management · Cliente.cpp Client state
Components 16
Application flow
- Program entry
src/main.cpp - Interactive menu
src/Menu.cpp
Grid network
- Grid editing and queries
src/Grafo.cpp - Network vertices
src/Vertice.cpp - Transmission lines
src/Arco.cpp
Clients and benefits
- Client management
src/ListaClientes.cpp - Client state
src/Cliente.cpp - Benefit catalog
src/ListaBeneficios.cpp - Benefit record
src/Beneficio.cpp
Data persistence
- JSON load and save
src/ArchivoJSON.cpp - JSON parser
src/json.hpp - Grid data
data/red_electrica.json - Client data
data/clientes.json - Benefit data
data/beneficios.json
Domain structures
- Client text lists
src/NodoTexto.cpp
Other components
- Console user
Connections 10
- Console user → Program entry: starts
README.md - Program entry → JSON load and save: loads and saves
src/main.cpp - Program entry → Interactive menu: runs
src/main.cpp - JSON load and save → JSON parser: uses parser
src/ArchivoJSON.cpp - Client management → Client state: manages
src/ListaClientes.cpp - Client state → Client text lists: stores lists
src/Cliente.cpp - Benefit catalog → Benefit record: manages
- Grid editing and queries → Network vertices: uses vertices
- Grid editing and queries → Transmission lines: uses lines
- Grid editing and queries → Client management: queries clients