How davidrehn/dat257-group-15 works
This JavaFX application helps users configure a location and solar array, estimate production from weather data, track appliance usage, and view production and electricity prices. The main workflow runs from the dashboard to location setup, which stores solar configuration and obtains forecast data for production estimates; appliance data and estimates are persisted through a shared model. The excerpts show parts of this flow, while some subsystem links rely on SOURCE INDEX references rather than complete implementations, so uncertain connections are omitted.
Main entry points: Model.java Application model · StartMenu.java Energy dashboard · LocationApp.java Location setup · AppMain.java App bootstrap
Components 22
Application UI
- App bootstrap
src/main/java/AppMain.java - Energy dashboard
src/main/java/location/StartMenu.java - Location setup
src/main/java/location/LocationApp.java - Appliance manager
src/main/java/location/AppliancesApp.java - UI builders
src/main/java/location/builder
Energy Domain
- Application model
src/main/java/other/Model.java - Solar configuration
src/main/java/other/SolarPanel.java - Location data
src/main/java/other/LocationData.java - Appliance data
src/main/java/other/ApplianceData.java - Production estimates
src/main/java/other/TimestampData.java - Energy estimator
src/main/java/weatherdata/EnergyEstimator.java - Forecast timestamps
src/main/java/weatherdata/ForecastTimestamp.java
Data Integrations
- Solar forecast request
src/main/java/weatherdata/HTTPSolarRequest.java - Forecast retrieval
src/main/java/weatherdata/SolarRadiationRetreiver.java - Weather parser
src/main/java/weatherdata/WeatherParser.java - Market retrieval
src/main/java/powermarketdata/PowerMarketRetriver.java - Market parser
src/main/java/powermarketdata/PowerMarketParser.java
Persistence
- JSON save/load
src/main/java/saveload/JsonSaveLoad.java - Saved JSON file
Other components
- User
- Power market service
- Weather service
Connections 28
- User → App bootstrap: starts
src/main/java/AppMain.java - App bootstrap → Energy dashboard: launches
src/main/java/AppMain.java - App bootstrap → Location setup: launches
src/main/java/AppMain.java - App bootstrap → Appliance manager: launches
src/main/java/AppMain.java - Energy dashboard → UI builders: builds UI
src/main/java/location/StartMenu.java - Location setup → UI builders: builds UI
src/main/java/location/LocationApp.java - Appliance manager → UI builders: builds UI
src/main/java/location/AppliancesApp.java - Energy dashboard → Market retrieval: requests prices
src/main/java/location/StartMenu.java - Market retrieval → Power market service: fetches prices
- Energy dashboard → Market parser: parses prices
src/main/java/location/StartMenu.java - Location setup → Solar forecast request: creates request
src/main/java/location/LocationApp.java - Location setup → Forecast retrieval: retrieves forecast
src/main/java/location/LocationApp.java - Forecast retrieval → Solar forecast request: uses request
src/main/java/weatherdata/SolarRadiationRetreiver.java - Forecast retrieval → Weather parser: parses response
src/main/java/weatherdata/SolarRadiationRetreiver.java - Solar forecast request → Weather service: requests forecast
- Weather parser → Forecast timestamps: creates timestamps
src/main/java/weatherdata/WeatherParser.java - Forecast retrieval → Energy estimator: estimates energy
src/main/java/weatherdata/SolarRadiationRetreiver.java - Energy estimator → Weather parser: reads forecasts
src/main/java/weatherdata/EnergyEstimator.java - Energy estimator → Application model: stores estimates
src/main/java/weatherdata/EnergyEstimator.java - Application model → JSON save/load: saves and loads
src/main/java/other/Model.java - JSON save/load → Saved JSON file: reads and writes
src/main/java/saveload/JsonSaveLoad.java - Location setup → Application model: loads and stores
src/main/java/location/LocationApp.java - Appliance manager → Application model: loads and stores
src/main/java/location/AppliancesApp.java - Energy dashboard → Application model: reads estimates
src/main/java/location/StartMenu.java - Application model → Solar configuration: stores configuration
- Application model → Location data: stores location
- Application model → Appliance data: stores appliances
- Application model → Production estimates: stores estimates