service_settlement - energychain/STROMDAO_EAFs GitHub Wiki
Service: settlement
Method retrieve
Distribution of consumption in a time period to tariff segments.
The settlement.retrieve action is designed for calculating how a consumption figure, measured between two meter readings, is divided across different tariff segments. It uses a given timeframe and the consumption amount as input parameters. The result of this action details the split of the consumption into designated tariff segments, labeled virtual_1
to virtual_9
. This action serves as a central point of calculation to allocate energy usage to the respective tariff sub-meters according to the defined tariff structure.
Called by:
- metering.updateReading()
Calls:
- tariff.labels()
- loadprofile.addSettlement()
- loadprofile.addSettlement()
- loadprofile.addSettlement()
graph TD
metering.updateReading --> settlement.retrieve
settlement.retrieve --> tariff.labels
settlement.retrieve --> loadprofile.addSettlement
settlement.retrieve --> loadprofile.addSettlement
settlement.retrieve --> loadprofile.addSettlement