diff --git a/_alp/Agents/ChartBars/AOC.ChartBars.xml b/_alp/Agents/ChartBars/AOC.ChartBars.xml new file mode 100644 index 0000000..2250e25 --- /dev/null +++ b/_alp/Agents/ChartBars/AOC.ChartBars.xml @@ -0,0 +1,184 @@ + + + 1762958101311 + + 1755764711838 + + digital_twin_results + ChartArea + + false + + 1762958101306 + + + + + Generic parameter: + + ENTITY + 100 + false + 100 + true + + -4144960 + null + + true + true + false + + + MPS + + + + METER + + + + METER + + + + METER + + + + false + + + SECOND + + CONTINUOUS + 500 + 500 + 0 + 100 + 100 + MOORE + USER_DEF + USER_DEF + 2 + 50 + 0.95 + 10 + + + true + 1762958101308 + true + 1714809600000 + + + HOUR + + + + HOUR + + + + 1762958101307 + + 0 + -150 + false + false + false + SHAPE_DRAW_2D3D + 100 + 0 + BASED_ON_LENGTH + 10 + METER + 10 + true + + 1762958101349 + 1762958101529 + + + + + 1762958101529 + + 50 + -50 + + false + true + true + false + COLLECTION_OF_LINKS + true + Object + SOLID + 1 + -16777216 + UNDER_AGENTS + NONE + END + + + + + 1762960904360 + + 50 + -100 + + false + true + true + + digital_twin_results + UI_Results + + + + + + 1762958101349 + + 0 + 0 + + true + true + false + SHAPE_DRAW_2D3D + 0 + DIM_NON_CURRENT + + + + + + 1762958101527 + + 0 + 0 + + false + true + false + + <Width>1920</Width> + <Height>980</Height> + </Area> + </Areas> +</ActiveObjectClass> diff --git a/_alp/Agents/ChartBars/Code/Functions.java b/_alp/Agents/ChartBars/Code/Functions.java new file mode 100644 index 0000000..5a94a89 --- /dev/null +++ b/_alp/Agents/ChartBars/Code/Functions.java @@ -0,0 +1,1680 @@ +double f_setCharts() +{/*ALCODESTART::1762958101313*/ +f_resetCharts(); +f_setVisiblity(); + +//Set selected object display +uI_Results.f_setSelectedObjectDisplay(230, 90, true); + +if (uI_Results.v_selectedObjectScope == OL_ResultScope.GRIDNODE) { + // ? + } +else { + I_EnergyData data = uI_Results.f_getSelectedObjectData(); + if( radio_energyType.getValue() == 0){ + switch(radio_period.getValue()){ + case 0: + if (v_showingElectricitySelfConsumption) { + f_setElectricitySelfConsumptionBarChartTotal(data); + } + else { + f_setElectricityAssetsBarChartTotal(data); + } + break; + case 1: + if (v_showingElectricitySelfConsumption) { + f_setElectricitySelfConsumptionBarChartSummerWinter(data); + } + else { + f_setElectricityAssetsBarChartSummerWinter(data); + } + break; + case 2: + if (v_showingElectricitySelfConsumption) { + f_setElectricitySelfConsumptionBarChartDayNight(data); + } + else { + f_setElectricityAssetsBarChartDayNight(data); + } + break; + case 3: + if (v_showingElectricitySelfConsumption) { + f_setElectricitySelfConsumptionBarChartWeekdayWeekend(data); + } + else { + f_setElectricityAssetsBarChartWeekdayWeekend(data); + } + break; + } + } + else if( radio_energyType.getValue() == 1){ + switch(radio_period.getValue()){ + case 0: + f_setHeatBarChartTotal(data); + break; + case 1: + f_setHeatBarChartSummerWinter(data); + break; + case 2: + f_setHeatBarChartDayNight(data); + break; + case 3: + f_setHeatBarChartWeekdayWeekend(data); + break; + } + } + else if( radio_energyType.getValue() == 2){ + switch(radio_period.getValue()){ + case 0: + f_setEnergyBarChartTotal(data); + break; + case 1: + f_setEnergyBarChartSummerWinter(data); + break; + case 2: + f_setEnergyBarChartDayNight(data); + break; + case 3: + f_setEnergyBarChartWeekdayWeekend(data); + break; + } + } +} +/*ALCODEEND*/} + +double f_setElectricitySelfConsumptionBarChartTotal(I_EnergyData dataObject) +{/*ALCODESTART::1762958101315*/ +DataItem annualSelfConsumed = new DataItem(); +annualSelfConsumed.setValue(dataObject.getRapidRunData().getTotalElectricitySelfConsumed_MWh()); +pl_productionChartBalanceTotal.addDataItem(annualSelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartBalanceTotal.addDataItem(annualSelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + +DataItem annualImport = new DataItem(); +annualImport.setValue(dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_consumptionChartBalanceTotal.addDataItem(annualImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + +DataItem annualExport = new DataItem(); +annualExport.setValue(dataObject.getRapidRunData().getTotalExport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_productionChartBalanceTotal.addDataItem(annualExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + +double production_MWh = dataObject.getRapidRunData().getTotalElectricityProduced_MWh(); +double consumption_MWh = dataObject.getRapidRunData().getTotalElectricityConsumed_MWh(); +double chartScale_MWh = max(production_MWh, consumption_MWh); +pl_consumptionChartBalanceTotal.setFixedScale(chartScale_MWh); +pl_productionChartBalanceTotal.setFixedScale(chartScale_MWh); + + +if (chartScale_MWh<10) { + t_productionTextYear.setText("Opwek" + System.lineSeparator() + roundToInt(production_MWh*1000) + " kWh"); + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToInt(consumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextYear.setText("Opwek" + System.lineSeparator() + roundToInt(production_MWh) + " MWh"); + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToInt(consumption_MWh) + " MWh"); +} else { + t_productionTextYear.setText("Opwek" + System.lineSeparator() + roundToDecimal(production_MWh/1000, 1) + " GWh"); + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToDecimal(consumption_MWh/1000,1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setElectricitySelfConsumptionBarChartSummerWinter(I_EnergyData dataObject) +{/*ALCODESTART::1762958101317*/ +// Summer +DataItem summerSelfConsumed = new DataItem(); +summerSelfConsumed.setValue(dataObject.getRapidRunData().getSummerWeekElectricitySelfConsumed_MWh()); +pl_productionChartSummer.addDataItem(summerSelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartSummer.addDataItem(summerSelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + +DataItem summerImport = new DataItem(); +summerImport.setValue(dataObject.getRapidRunData().am_summerWeekBalanceAccumulators_kW.get(OL_EnergyCarriers.ELECTRICITY).getIntegralPos_MWh()); +pl_consumptionChartSummer.addDataItem(summerImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + +DataItem summerExport = new DataItem(); +summerExport.setValue(-dataObject.getRapidRunData().am_summerWeekBalanceAccumulators_kW.get(OL_EnergyCarriers.ELECTRICITY).getIntegralNeg_MWh()); +pl_productionChartSummer.addDataItem(summerExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + +// Winter +DataItem winterSelfConsumed = new DataItem(); +winterSelfConsumed.setValue(dataObject.getRapidRunData().getWinterWeekElectricitySelfConsumed_MWh()); +pl_productionChartWinter.addDataItem(winterSelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartWinter.addDataItem(winterSelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + +DataItem winterImport = new DataItem(); +winterImport.setValue(dataObject.getRapidRunData().am_winterWeekBalanceAccumulators_kW.get(OL_EnergyCarriers.ELECTRICITY).getIntegralPos_MWh()); +pl_consumptionChartWinter.addDataItem(winterImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + +DataItem winterExport = new DataItem(); +winterExport.setValue(-dataObject.getRapidRunData().am_winterWeekBalanceAccumulators_kW.get(OL_EnergyCarriers.ELECTRICITY).getIntegralNeg_MWh()); +pl_productionChartWinter.addDataItem(winterExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + + +double summerProduction_MWh = dataObject.getRapidRunData().getSummerWeekElectricityProduced_MWh(); +double summerConsumption_MWh = dataObject.getRapidRunData().getSummerWeekElectricityConsumed_MWh(); +double winterProduction_MWh = dataObject.getRapidRunData().getWinterWeekElectricityProduced_MWh(); +double winterConsumption_MWh = dataObject.getRapidRunData().getWinterWeekElectricityConsumed_MWh(); +double chartScale_MWh = max(max(summerProduction_MWh, winterProduction_MWh), max(summerConsumption_MWh, winterConsumption_MWh)); +pl_productionChartSummer.setFixedScale(chartScale_MWh); +pl_productionChartWinter.setFixedScale(chartScale_MWh); +pl_consumptionChartSummer.setFixedScale(chartScale_MWh); +pl_consumptionChartWinter.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_productionTextSummer.setText("Opwek" + System.lineSeparator() + roundToInt(summerProduction_MWh*1000) + " kWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToInt(summerConsumption_MWh*1000) + " kWh"); + t_productionTextWinter.setText("Opwek" + System.lineSeparator() + roundToInt(winterProduction_MWh*1000) + " kWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToInt(winterConsumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextSummer.setText("Opwek" + System.lineSeparator() + roundToInt(summerProduction_MWh) + " MWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToInt(summerConsumption_MWh) + " MWh"); + t_productionTextWinter.setText("Opwek" + System.lineSeparator() + roundToInt(winterProduction_MWh) + " MWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToInt(winterConsumption_MWh) + " MWh"); +} else { + t_productionTextSummer.setText("Opwek" + System.lineSeparator() + roundToDecimal(summerProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToDecimal(summerConsumption_MWh/1000,1) + " GWh"); + t_productionTextWinter.setText("Opwek" + System.lineSeparator() + roundToDecimal(winterProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToDecimal(winterConsumption_MWh/1000,1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setElectricitySelfConsumptionBarChartDayNight(I_EnergyData dataObject) +{/*ALCODESTART::1762958101319*/ +// Day +DataItem daytimeSelfConsumed = new DataItem(); +daytimeSelfConsumed.setValue(dataObject.getRapidRunData().getDaytimeElectricitySelfConsumed_MWh()); +pl_productionChartDay.addDataItem(daytimeSelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartDay.addDataItem(daytimeSelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + + + +DataItem daytimeImport = new DataItem(); +daytimeImport.setValue(dataObject.getRapidRunData().getDaytimeImport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_consumptionChartDay.addDataItem(daytimeImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + + +DataItem daytimeExport = new DataItem(); +daytimeExport.setValue(dataObject.getRapidRunData().getDaytimeExport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_productionChartDay.addDataItem(daytimeExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + + +// Night +DataItem nighttimeSelfConsumed = new DataItem(); +nighttimeSelfConsumed.setValue(dataObject.getRapidRunData().getNighttimeElectricitySelfConsumed_MWh()); +pl_productionChartNight.addDataItem(nighttimeSelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartNight.addDataItem(nighttimeSelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + +DataItem nighttimeImport = new DataItem(); +nighttimeImport.setValue(dataObject.getRapidRunData().getNighttimeImport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_consumptionChartNight.addDataItem(nighttimeImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + +DataItem nighttimeExport = new DataItem(); +nighttimeExport.setValue(dataObject.getRapidRunData().getNighttimeExport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_productionChartNight.addDataItem(nighttimeExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + + + +double dayProduction_MWh = dataObject.getRapidRunData().getDaytimeElectricityProduced_MWh(); +double dayConsumption_MWh = dataObject.getRapidRunData().getDaytimeElectricityConsumed_MWh(); +double nightProduction_MWh = dataObject.getRapidRunData().getNighttimeElectricityProduced_MWh(); +double nightConsumption_MWh = dataObject.getRapidRunData().getNighttimeElectricityConsumed_MWh(); +double chartScale_MWh = max(max(dayProduction_MWh, nightProduction_MWh), max(dayConsumption_MWh, nightConsumption_MWh)); +pl_productionChartDay.setFixedScale(chartScale_MWh); +pl_productionChartNight.setFixedScale(chartScale_MWh); +pl_consumptionChartDay.setFixedScale(chartScale_MWh); +pl_consumptionChartNight.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_productionTextDay.setText("Opwek" + System.lineSeparator() + roundToInt(dayProduction_MWh*1000) + " kWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToInt(dayConsumption_MWh*1000) + " kWh"); + t_productionTextNight.setText("Opwek" + System.lineSeparator() + roundToInt(nightProduction_MWh*1000) + " kWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToInt(nightConsumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextDay.setText("Opwek" + System.lineSeparator() + roundToInt(dayProduction_MWh) + " MWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToInt(dayConsumption_MWh) + " MWh"); + t_productionTextNight.setText("Opwek" + System.lineSeparator() + roundToInt(nightProduction_MWh) + " MWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToInt(nightConsumption_MWh) + " MWh"); +} else { + t_productionTextDay.setText("Opwek" + System.lineSeparator() + roundToDecimal(dayProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToDecimal(dayConsumption_MWh/1000,1) + " GWh"); + t_productionTextNight.setText("Opwek" + System.lineSeparator() + roundToDecimal(nightProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToDecimal(nightConsumption_MWh/1000,1) + " GWh"); +} + +/*ALCODEEND*/} + +double f_setElectricitySelfConsumptionBarChartWeekdayWeekend(I_EnergyData dataObject) +{/*ALCODESTART::1762958101321*/ +// Weekday +DataItem weekdaySelfConsumed = new DataItem(); +weekdaySelfConsumed.setValue(dataObject.getRapidRunData().getWeekdayElectricitySelfConsumed_MWh()); +pl_productionChartWeekday.addDataItem(weekdaySelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartWeekday.addDataItem(weekdaySelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + +DataItem weekdayimeImport = new DataItem(); +weekdayimeImport.setValue(dataObject.getRapidRunData().getWeekdayImport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_consumptionChartWeekday.addDataItem(weekdayimeImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + +DataItem weekdayExport = new DataItem(); +weekdayExport.setValue(dataObject.getRapidRunData().getWeekdayExport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_productionChartWeekday.addDataItem(weekdayExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + +// Weekend +DataItem weekendSelfConsumed = new DataItem(); +weekendSelfConsumed.setValue(dataObject.getRapidRunData().getWeekendElectricitySelfConsumed_MWh()); +pl_productionChartWeekend.addDataItem(weekendSelfConsumed, "Lokaal gebruikt [MWh]", uI_Results.v_selfConsumedElectricityColor); +pl_consumptionChartWeekend.addDataItem(weekendSelfConsumed, "Lokaal opgewekt [MWh]", uI_Results.v_selfConsumedElectricityColor); + +DataItem weekendImport = new DataItem(); +weekendImport.setValue(dataObject.getRapidRunData().getWeekendImport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_consumptionChartWeekend.addDataItem(weekendImport, "Externe bronnen [MWh]", uI_Results.v_importedEnergyColor); + +DataItem weekendExport = new DataItem(); +weekendExport.setValue(dataObject.getRapidRunData().getWeekendExport_MWh(OL_EnergyCarriers.ELECTRICITY)); +pl_productionChartWeekend.addDataItem(weekendExport, "Teruggeleverde elektriciteit [MWh]", uI_Results.v_exportedEnergyColor); + + + +double weekdayProduction_MWh = dataObject.getRapidRunData().getWeekdayElectricityProduced_MWh(); +double weekdayConsumption_MWh = dataObject.getRapidRunData().getWeekdayElectricityConsumed_MWh(); +double weekendProduction_MWh = dataObject.getRapidRunData().getWeekendElectricityProduced_MWh(); +double weekendConsumption_MWh = dataObject.getRapidRunData().getWeekendElectricityConsumed_MWh(); +double chartScale_MWh = max(max(weekdayProduction_MWh, weekendProduction_MWh), max(weekdayConsumption_MWh, weekendConsumption_MWh)); +pl_productionChartWeekday.setFixedScale(chartScale_MWh); +pl_productionChartWeekend.setFixedScale(chartScale_MWh); +pl_consumptionChartWeekday.setFixedScale(chartScale_MWh); +pl_consumptionChartWeekend.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_productionTextWeekday.setText("Opwek" + System.lineSeparator() + roundToInt(weekdayProduction_MWh*1000) + " kWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToInt(weekdayConsumption_MWh*1000) + " kWh"); + t_productionTextWeekend.setText("Opwek" + System.lineSeparator() + roundToInt(weekendProduction_MWh*1000) + " kWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToInt(weekendConsumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextWeekday.setText("Opwek" + System.lineSeparator() + roundToInt(weekdayProduction_MWh) + " MWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToInt(weekdayConsumption_MWh) + " MWh"); + t_productionTextWeekend.setText("Opwek" + System.lineSeparator() + roundToInt(weekendProduction_MWh) + " MWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToInt(weekendConsumption_MWh) + " MWh"); +} else { + t_productionTextWeekday.setText("Opwek" + System.lineSeparator() + roundToDecimal(weekdayProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToDecimal(weekdayConsumption_MWh/1000,1) + " GWh"); + t_productionTextWeekend.setText("Opwek" + System.lineSeparator() + roundToDecimal(weekendProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToDecimal(weekendConsumption_MWh/1000,1) + " GWh"); +} +/*ALCODEEND*/} + +double f_resetCharts() +{/*ALCODESTART::1762958101323*/ +pl_productionChartBalanceTotal.removeAll(); +t_productionTextYear.setText("Opwek"); +pl_consumptionChartBalanceTotal.removeAll(); +t_consumptionTextYear.setText("Gebruik"); +pl_productionChartSummer.removeAll(); +t_productionTextSummer.setText("Opwek"); +pl_consumptionChartSummer.removeAll(); +t_consumptionTextSummer.setText("Gebruik"); +pl_productionChartWinter.removeAll(); +t_productionTextWinter.setText("Opwek"); +pl_consumptionChartWinter.removeAll(); +t_consumptionTextWinter.setText("Gebruik"); +pl_productionChartDay.removeAll(); +t_productionTextDay.setText("Opwek"); +pl_consumptionChartDay.removeAll(); +t_consumptionTextDay.setText("Gebruik"); +pl_productionChartNight.removeAll(); +t_productionTextNight.setText("Opwek"); +pl_consumptionChartNight.removeAll(); +t_consumptionTextNight.setText("Gebruik"); +pl_productionChartWeekday.removeAll(); +t_productionTextWeekday.setText("Opwek"); +pl_consumptionChartWeekday.removeAll(); +t_consumptionTextWeekday.setText("Gebruik"); +pl_productionChartWeekend.removeAll(); +t_productionTextWeekend.setText("Opwek"); +pl_consumptionChartWeekend.removeAll(); +t_consumptionTextWeekend.setText("Gebruik"); +/*ALCODEEND*/} + +double f_setVisiblity() +{/*ALCODESTART::1762958101333*/ +gr_Total.setVisible(false); +gr_SummerWinter.setVisible(false); +gr_DayNight.setVisible(false); +gr_WeekdayWeekend.setVisible(false); +gr_monthlyTotals.setVisible(false); + +button_electricityChart.setVisible(false); +if (radio_energyType.getValue() == 0) { + button_electricityChart.setVisible(true); +} + +if (radio_period.getValue() == 0) { + gr_Total.setVisible(true); +} else if (radio_period.getValue() == 1) { + gr_SummerWinter.setVisible(true); +} else if (radio_period.getValue() == 2) { + gr_DayNight.setVisible(true); +} else if (radio_period.getValue() == 3) { + gr_WeekdayWeekend.setVisible(true); +} +/*ALCODEEND*/} + +double f_setMonthlyCharts() +{/*ALCODESTART::1762958101347*/ +bc_productionMonthlyTotals.removeAll(); +bc_consumptionMonthlyTotals.removeAll(); + +I_EnergyData data = uI_Results.f_getSelectedObjectData(); + +ZeroAccumulator acc_annualElectricityBalance_kW; +if (uI_Results.v_selectedObjectScope == OL_ResultScope.GRIDNODE) { + acc_annualElectricityBalance_kW = uI_Results.v_gridNode.acc_annualElectricityBalance_kW; +} +else { + acc_annualElectricityBalance_kW = data.getRapidRunData().am_totalBalanceAccumulators_kW.get(OL_EnergyCarriers.ELECTRICITY); +} + +double[] monthlyExport_kWh = new double[12]; +double[] monthlyImport_kWh = new double[12]; + +int[] daysPerMonth = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; +if (uI_Results.energyModel.p_year % 4 == 0 && uI_Results.energyModel.p_year % 100 != 0 && uI_Results.energyModel.p_year % 400 == 0) { + daysPerMonth[1] += 1; +} + +double signalResolution_h = acc_annualElectricityBalance_kW.getSignalResolution_h(); +double[] electricityBalance_kW = acc_annualElectricityBalance_kW.getTimeSeries_kW(); + +int stepsInPreviousMonths = 0; +for (int i = 0; i < 12; i++) { + int daysInThisMonth = daysPerMonth[i]; + int stepsInThisMonth = roundToInt(daysInThisMonth * 24 / signalResolution_h); + for (int j = stepsInPreviousMonths; j < stepsInPreviousMonths + stepsInThisMonth; j++) { + if (electricityBalance_kW[j] < 0) { + monthlyExport_kWh[i] += -electricityBalance_kW[j] * signalResolution_h; + } + else { + monthlyImport_kWh[i] += electricityBalance_kW[j] * signalResolution_h; + } + } + stepsInPreviousMonths += stepsInThisMonth; +} + +String[] monthNames = new String[]{"Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"}; +for (int i = 0; i < 12; i++) { + DataItem di_export = new DataItem(); + di_export.setValue(monthlyExport_kWh[i] / 1000); + bc_productionMonthlyTotals.addDataItem(di_export, monthNames[i], new Color(210,255,191)); + DataItem di_import = new DataItem(); + di_import.setValue(monthlyImport_kWh[i] / 1000); + bc_consumptionMonthlyTotals.addDataItem(di_import, monthNames[i], new Color(210, 35, 55)); +} +/*ALCODEEND*/} + +double f_setHeatBarChartTotal(I_EnergyData dataObject) +{/*ALCODESTART::1762958502278*/ +if ( !dataObject.getRapidRunData().activeEnergyCarriers.contains(OL_EnergyCarriers.HEAT) ) { + return; +} + +double totalConsumption_MWh = 0; +double totalProduction_MWh = 0; +double consumption_MWh = 0; +double production_MWh = 0; + +// Consumption +// Space heating +double spaceHeating_MWh = 0; +if (dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet().contains(OL_AssetFlowCategories.buildingHeating_kW)) { + spaceHeating_MWh += dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); +} +if (dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet().contains(OL_AssetFlowCategories.spaceHeating_kW)) { + spaceHeating_MWh += dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); +} +if (spaceHeating_MWh > uI_Results.p_cutOff_MWh) { + totalConsumption_MWh += spaceHeating_MWh; + DataItem spaceHeating = new DataItem(); + spaceHeating.setValue(spaceHeating_MWh); + pl_consumptionChartBalanceTotal.addDataItem(spaceHeating, "Ruimteverwarming [MWh]", orange); +} + +// DHW +if (dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet().contains(OL_AssetFlowCategories.hotWaterConsumption_kW)) { + consumption_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + if ( consumption_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumption_MWh += consumption_MWh; + DataItem hotWater = new DataItem(); + hotWater.setValue(consumption_MWh); + pl_consumptionChartBalanceTotal.addDataItem(hotWater, "Warmwater [MWh]", cornflowerBlue); + } +} + +// Production +// Standard Heating Assets +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().am_totalConsumptionForHeating_kW.keySet()) { + if (dataObject.getRapidRunData().am_totalHeatFromEnergyCarrier_kW.keySet().contains(EC)) { + double ECConsumption_MWh = dataObject.getRapidRunData().am_totalConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProduction_MWh = dataObject.getRapidRunData().am_totalHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double losses_MWh = max(0, ECConsumption_MWh - heatProduction_MWh); + if ( ECConsumption_MWh > uI_Results.p_cutOff_MWh ) { + totalProduction_MWh += ECConsumption_MWh; + DataItem heatProduction = new DataItem(); + heatProduction.setValue(ECConsumption_MWh); + pl_productionChartBalanceTotal.addDataItem(heatProduction, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (losses_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumption_MWh += losses_MWh; + DataItem ECLosses = new DataItem(); + ECLosses.setValue(losses_MWh); + pl_consumptionChartBalanceTotal.addDataItem(ECLosses, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + } +} +// Heatpumps +if (dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet().contains(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)) { + production_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + if (production_MWh > uI_Results.p_cutOff_MWh) { + totalProduction_MWh += production_MWh; + DataItem heatpumpElectricity = new DataItem(); + heatpumpElectricity.setValue(production_MWh); + pl_productionChartBalanceTotal.addDataItem(heatpumpElectricity, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + double import_MWh = dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.HEAT); + if (import_MWh > uI_Results.p_cutOff_MWh) { + totalProduction_MWh += import_MWh; + DataItem heatpumpEnvironment = new DataItem(); + heatpumpEnvironment.setValue(import_MWh); + pl_productionChartBalanceTotal.addDataItem(heatpumpEnvironment, "Warmte uit Warmtenet [MWh]", purple); + } + else { + production_MWh = dataObject.getRapidRunData().acc_totalPrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + totalProduction_MWh += production_MWh; + DataItem heatpumpEnvironment = new DataItem(); + heatpumpEnvironment.setValue(production_MWh); + pl_productionChartBalanceTotal.addDataItem(heatpumpEnvironment, "Warmte uit Omgeving [MWh]", lightSkyBlue); + } + } +} +// PVT +if (dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet().contains(OL_AssetFlowCategories.ptProductionHeat_kW)) { + production_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + if (production_MWh > uI_Results.p_cutOff_MWh) { + totalProduction_MWh += production_MWh; + DataItem pt = new DataItem(); + pt.setValue(production_MWh); + pl_productionChartBalanceTotal.addDataItem(pt, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } +} +// Heatgrid +if (dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet().contains(OL_AssetFlowCategories.districtHeatDelivery_kW)) { + double import_MWh = dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.HEAT); + production_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + double losses_MWh = max(0, import_MWh - production_MWh); + if (import_MWh > uI_Results.p_cutOff_MWh) { + totalProduction_MWh += import_MWh; + DataItem heatgridImport = new DataItem(); + heatgridImport.setValue(import_MWh); + pl_productionChartBalanceTotal.addDataItem(heatgridImport, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (losses_MWh > uI_Results.p_cutOff_MWh) { + totalConsumption_MWh += losses_MWh; + DataItem heatgridLosses = new DataItem(); + heatgridLosses.setValue(losses_MWh); + pl_consumptionChartBalanceTotal.addDataItem(heatgridLosses, "Warmtenet Verliezen [MWh]", gray); + } +} + +double chartScale_MWh = max(totalConsumption_MWh, totalProduction_MWh); +pl_consumptionChartBalanceTotal.setFixedScale(chartScale_MWh); +pl_productionChartBalanceTotal.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumption_MWh*1000) + " kWh"); + t_productionTextYear.setText("Bron" + System.lineSeparator() + roundToInt(totalProduction_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumption_MWh) + " MWh"); + t_productionTextYear.setText("Bron" + System.lineSeparator() + roundToInt(totalProduction_MWh) + " MWh"); +} else { + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumption_MWh/1000,1) + " GWh"); + t_productionTextYear.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProduction_MWh/1000, 1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setHeatBarChartSummerWinter(I_EnergyData dataObject) +{/*ALCODESTART::1762958502280*/ +if ( !dataObject.getRapidRunData().activeEnergyCarriers.contains(OL_EnergyCarriers.HEAT) ) { + return; +} + +double totalConsumptionSummer_MWh = 0; +double totalProductionSummer_MWh = 0; +double totalConsumptionWinter_MWh = 0; +double totalProductionWinter_MWh = 0; +double consumption_MWh = 0; +double production_MWh= 0; + +// Summer +// Consumption +// Space heating +double spaceHeating_MWh = 0; +if (dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.keySet().contains(OL_AssetFlowCategories.buildingHeating_kW)) { + spaceHeating_MWh += dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); +} +if (dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.keySet().contains(OL_AssetFlowCategories.spaceHeating_kW)) { + spaceHeating_MWh += dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); +} +if (spaceHeating_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionSummer_MWh += spaceHeating_MWh; + DataItem spaceHeating = new DataItem(); + spaceHeating.setValue(spaceHeating_MWh); + pl_consumptionChartSummer.addDataItem(spaceHeating, "Ruimteverwarming [MWh]", orange); +} + +// DHW +if (dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.keySet().contains(OL_AssetFlowCategories.hotWaterConsumption_kW)) { + consumption_MWh = dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + if ( consumption_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionSummer_MWh += consumption_MWh; + DataItem hotWater = new DataItem(); + hotWater.setValue(consumption_MWh); + pl_consumptionChartSummer.addDataItem(hotWater, "Warmwater [MWh]", cornflowerBlue); + } +} + +// Production +// Standard Heating Assets +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().am_summerWeekConsumptionForHeating_kW.keySet()) { + if (dataObject.getRapidRunData().am_summerWeekHeatFromEnergyCarrier_kW.keySet().contains(EC)) { + double ECConsumption_MWh = dataObject.getRapidRunData().am_summerWeekConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProduction_MWh = dataObject.getRapidRunData().am_summerWeekHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double losses_MWh = max(0, ECConsumption_MWh - heatProduction_MWh); + if ( ECConsumption_MWh > uI_Results.p_cutOff_MWh ) { + totalProductionSummer_MWh += ECConsumption_MWh; + DataItem heatProduction = new DataItem(); + heatProduction.setValue(ECConsumption_MWh); + pl_productionChartSummer.addDataItem(heatProduction, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (losses_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionSummer_MWh += losses_MWh; + DataItem ECLosses = new DataItem(); + ECLosses.setValue(losses_MWh); + pl_consumptionChartSummer.addDataItem(ECLosses, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + } +} +// Heatpumps +if (dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.keySet().contains(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)) { + production_MWh = dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + if (production_MWh > uI_Results.p_cutOff_MWh) { + totalProductionSummer_MWh += production_MWh; + DataItem heatpumpElectricity = new DataItem(); + heatpumpElectricity.setValue(production_MWh); + pl_productionChartSummer.addDataItem(heatpumpElectricity, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + double import_MWh = dataObject.getRapidRunData().getSummerWeekImport_MWh(OL_EnergyCarriers.HEAT); + if (import_MWh > uI_Results.p_cutOff_MWh) { + totalProductionSummer_MWh += import_MWh; + DataItem heatpumpEnvironment = new DataItem(); + heatpumpEnvironment.setValue(import_MWh); + pl_productionChartSummer.addDataItem(heatpumpEnvironment, "Warmte uit Warmtenet [MWh]", purple); + } + else { + production_MWh = dataObject.getRapidRunData().acc_summerWeekPrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + totalProductionSummer_MWh += production_MWh; + DataItem heatpumpEnvironment = new DataItem(); + heatpumpEnvironment.setValue(production_MWh); + pl_productionChartSummer.addDataItem(heatpumpEnvironment, "Warmte uit Omgeving [MWh]", lightSkyBlue); + } + } +} +// PVT +if (dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.keySet().contains(OL_AssetFlowCategories.ptProductionHeat_kW)) { + production_MWh = dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + if (production_MWh > uI_Results.p_cutOff_MWh) { + totalProductionSummer_MWh += production_MWh; + DataItem pt = new DataItem(); + pt.setValue(production_MWh); + pl_productionChartSummer.addDataItem(pt, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } +} +// Heatgrid +if (dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.keySet().contains(OL_AssetFlowCategories.districtHeatDelivery_kW)) { + double import_MWh = dataObject.getRapidRunData().getSummerWeekImport_MWh(OL_EnergyCarriers.HEAT); + production_MWh = dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + double losses_MWh = max(0, import_MWh - production_MWh); + if (import_MWh > uI_Results.p_cutOff_MWh) { + totalProductionSummer_MWh += import_MWh; + DataItem heatgridDemand = new DataItem(); + heatgridDemand.setValue(import_MWh); + pl_productionChartSummer.addDataItem(heatgridDemand, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (losses_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionSummer_MWh += losses_MWh; + DataItem heatgridLosses = new DataItem(); + heatgridLosses.setValue(losses_MWh); + pl_consumptionChartSummer.addDataItem(heatgridLosses, "Warmtenet Verliezen [MWh]", gray); + } +} + + +// Winter +// Consumption +// Space heating +spaceHeating_MWh = 0; +if (dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.keySet().contains(OL_AssetFlowCategories.buildingHeating_kW)) { + spaceHeating_MWh += dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); +} +if (dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.keySet().contains(OL_AssetFlowCategories.spaceHeating_kW)) { + spaceHeating_MWh += dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); +} +if (spaceHeating_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionWinter_MWh += spaceHeating_MWh; + DataItem spaceHeating = new DataItem(); + spaceHeating.setValue(spaceHeating_MWh); + pl_consumptionChartWinter.addDataItem(spaceHeating, "Ruimteverwarming [MWh]", orange); +} + +// DHW +if (dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.keySet().contains(OL_AssetFlowCategories.hotWaterConsumption_kW)) { + consumption_MWh = dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + if ( consumption_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionWinter_MWh += consumption_MWh; + DataItem hotWater = new DataItem(); + hotWater.setValue(consumption_MWh); + pl_consumptionChartWinter.addDataItem(hotWater, "Warmwater [MWh]", cornflowerBlue); + } +} + +// Production +// Standard Heating Assets +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().am_winterWeekConsumptionForHeating_kW.keySet()) { + if (dataObject.getRapidRunData().am_winterWeekHeatFromEnergyCarrier_kW.keySet().contains(EC)) { + double ECConsumption_MWh = dataObject.getRapidRunData().am_winterWeekConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProduction_MWh = dataObject.getRapidRunData().am_winterWeekHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double losses_MWh = max(0, ECConsumption_MWh - heatProduction_MWh); + if ( ECConsumption_MWh > uI_Results.p_cutOff_MWh ) { + totalProductionWinter_MWh += ECConsumption_MWh; + DataItem heatProduction = new DataItem(); + heatProduction.setValue(ECConsumption_MWh); + pl_productionChartWinter.addDataItem(heatProduction, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (losses_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionWinter_MWh += losses_MWh; + DataItem ECLosses = new DataItem(); + ECLosses.setValue(losses_MWh); + pl_consumptionChartWinter.addDataItem(ECLosses, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + } +} +// Heatpumps +if (dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.keySet().contains(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)) { + production_MWh = dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + if (production_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWinter_MWh += production_MWh; + DataItem heatpumpElectricity = new DataItem(); + heatpumpElectricity.setValue(production_MWh); + pl_productionChartWinter.addDataItem(heatpumpElectricity, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + double import_MWh = dataObject.getRapidRunData().getWinterWeekImport_MWh(OL_EnergyCarriers.HEAT); + if (import_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWinter_MWh += import_MWh; + DataItem heatpumpEnvironment = new DataItem(); + heatpumpEnvironment.setValue(import_MWh); + pl_productionChartWinter.addDataItem(heatpumpEnvironment, "Warmte uit Warmtenet [MWh]", purple); + } + else { + production_MWh = dataObject.getRapidRunData().acc_winterWeekPrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + totalProductionWinter_MWh += production_MWh; + DataItem heatpumpEnvironment = new DataItem(); + heatpumpEnvironment.setValue(production_MWh); + pl_productionChartWinter.addDataItem(heatpumpEnvironment, "Warmte uit Omgeving [MWh]", lightSkyBlue); + } + } +} +// PVT +if (dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.keySet().contains(OL_AssetFlowCategories.ptProductionHeat_kW)) { + production_MWh = dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + if (production_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWinter_MWh += production_MWh; + DataItem pt = new DataItem(); + pt.setValue(production_MWh); + pl_productionChartWinter.addDataItem(pt, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } +} +// Heatgrid +if (dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.keySet().contains(OL_AssetFlowCategories.districtHeatDelivery_kW)) { + double import_MWh = dataObject.getRapidRunData().getWinterWeekImport_MWh(OL_EnergyCarriers.HEAT); + production_MWh = dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + double losses_MWh = max(0, import_MWh - production_MWh); + if (import_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWinter_MWh += import_MWh; + DataItem heatgridDemand = new DataItem(); + heatgridDemand.setValue(import_MWh); + pl_productionChartWinter.addDataItem(heatgridDemand, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (losses_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionWinter_MWh += losses_MWh; + DataItem heatgridLosses = new DataItem(); + heatgridLosses.setValue(losses_MWh); + pl_consumptionChartWinter.addDataItem(heatgridLosses, "Warmtenet Verliezen [MWh]", gray); + } +} + +double chartScaleSummer_MWh = max(totalConsumptionSummer_MWh, totalProductionSummer_MWh); +pl_consumptionChartSummer.setFixedScale(chartScaleSummer_MWh); +pl_productionChartSummer.setFixedScale(chartScaleSummer_MWh); +double chartScaleWinter_MWh = max(totalConsumptionWinter_MWh, totalProductionWinter_MWh); +pl_consumptionChartWinter.setFixedScale(chartScaleWinter_MWh); +pl_productionChartWinter.setFixedScale(chartScaleWinter_MWh); +double chartScale_MWh = max(chartScaleSummer_MWh, chartScaleWinter_MWh); + +if (chartScale_MWh<10) { + t_productionTextSummer.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionSummer_MWh*1000) + " kWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionSummer_MWh*1000) + " kWh"); + t_productionTextWinter.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionWinter_MWh*1000) + " kWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionWinter_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextSummer.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionSummer_MWh) + " MWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionSummer_MWh) + " MWh"); + t_productionTextWinter.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionWinter_MWh) + " MWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionWinter_MWh) + " MWh"); +} else { + t_productionTextSummer.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProductionSummer_MWh/1000, 1) + " GWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumptionSummer_MWh/1000,1) + " GWh"); + t_productionTextWinter.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProductionWinter_MWh/1000, 1) + " GWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumptionWinter_MWh/1000,1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setHeatBarChartDayNight(I_EnergyData dataObject) +{/*ALCODESTART::1762958502282*/ +if ( !dataObject.getRapidRunData().activeEnergyCarriers.contains(OL_EnergyCarriers.HEAT) ) { + return; +} + +double totalConsumptionDay_MWh = 0; +double totalProductionDay_MWh = 0; +double totalConsumptionNight_MWh = 0; +double totalProductionNight_MWh = 0; +double consumptionNight_MWh = 0; +double consumptionDay_MWh = 0; +double productionDay_MWh = 0; +double productionNight_MWh = 0; + +// Consumption +// Space heating +double spaceHeatingDay_MWh = 0; +double spaceHeatingNight_MWh = 0; +if (dataObject.getRapidRunData().am_assetFlowsDaytime_kW.keySet().contains(OL_AssetFlowCategories.buildingHeating_kW)) { + double buildingHeatDay_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); + double buildingHeatTotal_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); + spaceHeatingDay_MWh += buildingHeatDay_MWh; + spaceHeatingNight_MWh += buildingHeatTotal_MWh - buildingHeatDay_MWh; +} +if (dataObject.getRapidRunData().am_assetFlowsDaytime_kW.keySet().contains(OL_AssetFlowCategories.spaceHeating_kW)) { + double profileDay_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); + double profileTotal_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); + spaceHeatingDay_MWh += profileDay_MWh; + spaceHeatingNight_MWh += profileTotal_MWh - profileDay_MWh; +} +if (spaceHeatingDay_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionDay_MWh += spaceHeatingDay_MWh; + DataItem spaceHeatingDay = new DataItem(); + spaceHeatingDay.setValue(spaceHeatingDay_MWh); + pl_consumptionChartDay.addDataItem(spaceHeatingDay, "Ruimteverwarming [MWh]", orange); +} +if (spaceHeatingNight_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionNight_MWh += spaceHeatingNight_MWh; + DataItem spaceHeatingNight = new DataItem(); + spaceHeatingNight.setValue(spaceHeatingNight_MWh); + pl_consumptionChartNight.addDataItem(spaceHeatingNight, "Ruimteverwarming [MWh]", orange); +} + +// DHW +if (dataObject.getRapidRunData().am_assetFlowsDaytime_kW.keySet().contains(OL_AssetFlowCategories.hotWaterConsumption_kW)) { + double hotWaterDay_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + double hotWaterNight_MWh = -hotWaterDay_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + if ( hotWaterDay_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionDay_MWh += hotWaterDay_MWh; + DataItem hotWaterDay = new DataItem(); + hotWaterDay.setValue(hotWaterDay_MWh); + pl_consumptionChartDay.addDataItem(hotWaterDay, "Warmwater [MWh]", cornflowerBlue); + } + if ( hotWaterNight_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionNight_MWh += hotWaterNight_MWh; + DataItem hotWaterNight = new DataItem(); + hotWaterNight.setValue(hotWaterNight_MWh); + pl_consumptionChartNight.addDataItem(hotWaterNight, "Warmwater [MWh]", cornflowerBlue); + } +} + +// Production +// Standard Heating Assets +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().am_daytimeConsumptionForHeating_kW.keySet()) { + if (dataObject.getRapidRunData().am_daytimeHeatFromEnergyCarrier_kW.keySet().contains(EC)) { + double ECConsumptionDay_MWh = dataObject.getRapidRunData().am_daytimeConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProductionDay_MWh = dataObject.getRapidRunData().am_daytimeHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double ECConsumptionNight_MWh = -ECConsumptionDay_MWh + dataObject.getRapidRunData().am_totalConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProductionNight_MWh = -heatProductionDay_MWh + dataObject.getRapidRunData().am_totalHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double lossesDay_MWh = max(0, ECConsumptionDay_MWh - heatProductionDay_MWh); + double lossesNight_MWh = max(0, ECConsumptionNight_MWh - heatProductionNight_MWh); + if ( ECConsumptionDay_MWh > uI_Results.p_cutOff_MWh ) { + totalProductionDay_MWh += ECConsumptionDay_MWh; + DataItem heatProductionDay = new DataItem(); + heatProductionDay.setValue(ECConsumptionDay_MWh); + pl_productionChartDay.addDataItem(heatProductionDay, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (lossesDay_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionDay_MWh += lossesDay_MWh; + DataItem ECLossesDay = new DataItem(); + ECLossesDay.setValue(lossesDay_MWh); + pl_consumptionChartDay.addDataItem(ECLossesDay, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if ( ECConsumptionNight_MWh > uI_Results.p_cutOff_MWh ) { + totalProductionNight_MWh += ECConsumptionNight_MWh; + DataItem heatProductionNight = new DataItem(); + heatProductionNight.setValue(ECConsumptionNight_MWh); + pl_productionChartNight.addDataItem(heatProductionNight, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (lossesNight_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionNight_MWh += lossesNight_MWh; + DataItem ECLossesNight = new DataItem(); + ECLossesNight.setValue(lossesNight_MWh); + pl_consumptionChartNight.addDataItem(ECLossesNight, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + } +} +// Heatpumps +if (dataObject.getRapidRunData().am_assetFlowsDaytime_kW.keySet().contains(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)) { + productionDay_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + productionNight_MWh = -productionDay_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + if (productionDay_MWh > uI_Results.p_cutOff_MWh) { + totalProductionDay_MWh += productionDay_MWh; + DataItem heatpumpElectricityDay = new DataItem(); + heatpumpElectricityDay.setValue(productionDay_MWh); + pl_productionChartDay.addDataItem(heatpumpElectricityDay, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + totalProductionNight_MWh += productionNight_MWh; + DataItem heatpumpElectricityNight = new DataItem(); + heatpumpElectricityNight.setValue(productionNight_MWh); + pl_productionChartNight.addDataItem(heatpumpElectricityNight, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + double importDay_MWh = dataObject.getRapidRunData().getDaytimeImport_MWh(OL_EnergyCarriers.HEAT); + double importNight_MWh = -importDay_MWh + dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.HEAT); + if (importDay_MWh > uI_Results.p_cutOff_MWh) { + totalProductionDay_MWh += importDay_MWh; + DataItem heatpumpEnvironmentDay = new DataItem(); + heatpumpEnvironmentDay.setValue(importDay_MWh); + pl_productionChartDay.addDataItem(heatpumpEnvironmentDay, "Warmte uit Warmtenet [MWh]", purple); + + totalProductionNight_MWh += importNight_MWh; + DataItem heatpumpEnvironmentNight = new DataItem(); + heatpumpEnvironmentNight.setValue(importNight_MWh); + pl_productionChartNight.addDataItem(heatpumpEnvironmentNight, "Warmte uit Warmtenet [MWh]", purple); + } + else { + productionDay_MWh = dataObject.getRapidRunData().acc_daytimePrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + productionNight_MWh = -productionDay_MWh + dataObject.getRapidRunData().acc_totalPrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + + totalProductionDay_MWh += productionDay_MWh; + DataItem heatpumpEnvironmentDay = new DataItem(); + heatpumpEnvironmentDay.setValue(totalProductionDay_MWh); + pl_productionChartDay.addDataItem(heatpumpEnvironmentDay, "Warmte uit Omgeving [MWh]", lightSkyBlue); + + totalProductionNight_MWh += productionNight_MWh; + DataItem heatpumpEnvironmentNight = new DataItem(); + heatpumpEnvironmentNight.setValue(totalProductionNight_MWh); + pl_productionChartNight.addDataItem(heatpumpEnvironmentNight, "Warmte uit Omgeving [MWh]", lightSkyBlue); + } + } +} +// PVT +if (dataObject.getRapidRunData().am_assetFlowsDaytime_kW.keySet().contains(OL_AssetFlowCategories.ptProductionHeat_kW)) { + productionDay_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + productionNight_MWh = -productionDay_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + if (productionDay_MWh > uI_Results.p_cutOff_MWh) { + totalProductionDay_MWh += productionDay_MWh; + DataItem ptDay = new DataItem(); + ptDay.setValue(productionDay_MWh); + pl_productionChartDay.addDataItem(ptDay, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } + if (productionNight_MWh > uI_Results.p_cutOff_MWh) { + totalProductionNight_MWh += productionNight_MWh; + DataItem ptNight = new DataItem(); + ptNight.setValue(productionNight_MWh); + pl_productionChartNight.addDataItem(ptNight, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } +} +// Heatgrid +if (dataObject.getRapidRunData().am_assetFlowsDaytime_kW.keySet().contains(OL_AssetFlowCategories.districtHeatDelivery_kW)) { + double importDay_MWh = dataObject.getRapidRunData().getDaytimeImport_MWh(OL_EnergyCarriers.HEAT); + double importNight_MWh = -importDay_MWh + dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.HEAT); + productionDay_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + productionNight_MWh = -productionDay_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + double lossesDay_MWh = max(0, importDay_MWh - productionDay_MWh); + double lossesNight_MWh = max(0, importNight_MWh - productionNight_MWh); + if (importDay_MWh > uI_Results.p_cutOff_MWh) { + totalProductionDay_MWh += importDay_MWh; + DataItem heatgridImportDay = new DataItem(); + heatgridImportDay.setValue(importDay_MWh); + pl_productionChartDay.addDataItem(heatgridImportDay, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (lossesDay_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionDay_MWh += lossesDay_MWh; + DataItem heatgridLossesDay = new DataItem(); + heatgridLossesDay.setValue(lossesDay_MWh); + pl_consumptionChartDay.addDataItem(heatgridLossesDay, "Warmtenet Verliezen [MWh]", gray); + } + if (importNight_MWh > uI_Results.p_cutOff_MWh) { + totalProductionNight_MWh += importNight_MWh; + DataItem heatgridImportNight = new DataItem(); + heatgridImportNight.setValue(importNight_MWh); + pl_productionChartNight.addDataItem(heatgridImportNight, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (lossesNight_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionNight_MWh += lossesNight_MWh; + DataItem heatgridLossesNight = new DataItem(); + heatgridLossesNight.setValue(lossesNight_MWh); + pl_consumptionChartNight.addDataItem(heatgridLossesNight, "Warmtenet Verliezen [MWh]", gray); + } +} + +double chartScaleDay_MWh = max(totalConsumptionDay_MWh, totalProductionDay_MWh); +pl_consumptionChartDay.setFixedScale(chartScaleDay_MWh); +pl_productionChartDay.setFixedScale(chartScaleDay_MWh); +double chartScaleNight_MWh = max(totalConsumptionNight_MWh, totalProductionNight_MWh); +pl_consumptionChartNight.setFixedScale(chartScaleNight_MWh); +pl_productionChartNight.setFixedScale(chartScaleNight_MWh); + +double chartScale_MWh = max(chartScaleDay_MWh, chartScaleNight_MWh); + +if (chartScale_MWh<10) { + t_productionTextDay.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionDay_MWh*1000) + " kWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionDay_MWh*1000) + " kWh"); + t_productionTextNight.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionNight_MWh*1000) + " kWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionNight_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextDay.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionDay_MWh) + " MWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionDay_MWh) + " MWh"); + t_productionTextNight.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionNight_MWh) + " MWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionNight_MWh) + " MWh"); +} else { + t_productionTextDay.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProductionDay_MWh/1000, 1) + " GWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumptionDay_MWh/1000,1) + " GWh"); + t_productionTextNight.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProductionNight_MWh/1000, 1) + " GWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumptionNight_MWh/1000,1) + " GWh"); +} + + +/*ALCODEEND*/} + +double f_setHeatBarChartWeekdayWeekend(I_EnergyData dataObject) +{/*ALCODESTART::1762958502284*/ +if ( !dataObject.getRapidRunData().activeEnergyCarriers.contains(OL_EnergyCarriers.HEAT) ) { + return; +} + +double totalConsumptionWeekend_MWh = 0; +double totalProductionWeekend_MWh = 0; +double totalConsumptionWeekday_MWh = 0; +double totalProductionWeekday_MWh = 0; +double consumptionWeekday_MWh = 0; +double consumptionWeekend_MWh = 0; +double productionWeekend_MWh = 0; +double productionWeekday_MWh = 0; + +// Consumption +// Space heating +double spaceHeatingWeekend_MWh = 0; +double spaceHeatingWeekday_MWh = 0; +if (dataObject.getRapidRunData().am_assetFlowsWeekend_kW.keySet().contains(OL_AssetFlowCategories.buildingHeating_kW)) { + double buildingHeatWeekend_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); + double buildingHeatTotal_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.buildingHeating_kW).getIntegral_MWh(); + spaceHeatingWeekend_MWh += buildingHeatWeekend_MWh; + spaceHeatingWeekday_MWh += buildingHeatTotal_MWh - buildingHeatWeekend_MWh; +} +if (dataObject.getRapidRunData().am_assetFlowsWeekend_kW.keySet().contains(OL_AssetFlowCategories.spaceHeating_kW)) { + double profileWeekend_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); + double profileTotal_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.spaceHeating_kW).getIntegral_MWh(); + spaceHeatingWeekend_MWh += profileWeekend_MWh; + spaceHeatingWeekday_MWh += profileTotal_MWh - profileWeekend_MWh; +} +if (spaceHeatingWeekend_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionWeekend_MWh += spaceHeatingWeekend_MWh; + DataItem spaceHeatingWeekend = new DataItem(); + spaceHeatingWeekend.setValue(spaceHeatingWeekend_MWh); + pl_consumptionChartWeekend.addDataItem(spaceHeatingWeekend, "Ruimteverwarming [MWh]", orange); +} +if (spaceHeatingWeekday_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionWeekday_MWh += spaceHeatingWeekday_MWh; + DataItem spaceHeatingWeekday = new DataItem(); + spaceHeatingWeekday.setValue(spaceHeatingWeekday_MWh); + pl_consumptionChartWeekday.addDataItem(spaceHeatingWeekday, "Ruimteverwarming [MWh]", orange); +} + +// DHW +if (dataObject.getRapidRunData().am_assetFlowsWeekend_kW.keySet().contains(OL_AssetFlowCategories.hotWaterConsumption_kW)) { + double hotWaterWeekend_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + double hotWaterWeekday_MWh = -hotWaterWeekend_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.hotWaterConsumption_kW).getIntegral_MWh(); + if ( hotWaterWeekend_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionWeekend_MWh += hotWaterWeekend_MWh; + DataItem hotWaterWeekend = new DataItem(); + hotWaterWeekend.setValue(hotWaterWeekend_MWh); + pl_consumptionChartWeekend.addDataItem(hotWaterWeekend, "Warmwater [MWh]", cornflowerBlue); + } + if ( hotWaterWeekday_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionWeekday_MWh += hotWaterWeekday_MWh; + DataItem hotWaterWeekday = new DataItem(); + hotWaterWeekday.setValue(hotWaterWeekday_MWh); + pl_consumptionChartWeekday.addDataItem(hotWaterWeekday, "Warmwater [MWh]", cornflowerBlue); + } +} + +// Production +// Standard Heating Assets +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().am_weekendConsumptionForHeating_kW.keySet()) { + if (dataObject.getRapidRunData().am_weekendHeatFromEnergyCarrier_kW.keySet().contains(EC)) { + double ECConsumptionWeekend_MWh = dataObject.getRapidRunData().am_weekendConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProductionWeekend_MWh = dataObject.getRapidRunData().am_weekendHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double ECConsumptionWeekday_MWh = -ECConsumptionWeekend_MWh + dataObject.getRapidRunData().am_totalConsumptionForHeating_kW.get(EC).getIntegral_MWh(); + double heatProductionWeekday_MWh = -heatProductionWeekend_MWh + dataObject.getRapidRunData().am_totalHeatFromEnergyCarrier_kW.get(EC).getIntegral_MWh(); + double lossesWeekend_MWh = max(0, ECConsumptionWeekend_MWh - heatProductionWeekend_MWh); + double lossesWeekday_MWh = max(0, ECConsumptionWeekday_MWh - heatProductionWeekday_MWh); + if ( ECConsumptionWeekend_MWh > uI_Results.p_cutOff_MWh ) { + totalProductionWeekend_MWh += ECConsumptionWeekend_MWh; + DataItem heatProductionWeekend = new DataItem(); + heatProductionWeekend.setValue(ECConsumptionWeekend_MWh); + pl_productionChartWeekend.addDataItem(heatProductionWeekend, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (lossesWeekend_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionWeekend_MWh += lossesWeekend_MWh; + DataItem ECLossesWeekend = new DataItem(); + ECLossesWeekend.setValue(lossesWeekend_MWh); + pl_consumptionChartWeekend.addDataItem(ECLossesWeekend, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if ( ECConsumptionWeekday_MWh > uI_Results.p_cutOff_MWh ) { + totalProductionWeekday_MWh += ECConsumptionWeekday_MWh; + DataItem heatProductionWeekday = new DataItem(); + heatProductionWeekday.setValue(ECConsumptionWeekday_MWh); + pl_productionChartWeekday.addDataItem(heatProductionWeekday, uI_Results.f_getName(EC) + " [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + if (lossesWeekday_MWh > uI_Results.p_cutOff_MWh ) { + totalConsumptionWeekday_MWh += lossesWeekday_MWh; + DataItem ECLossesWeekday = new DataItem(); + ECLossesWeekday.setValue(lossesWeekday_MWh); + pl_consumptionChartWeekday.addDataItem(ECLossesWeekday, uI_Results.f_getName(EC) + " verliezen [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } + } +} +// Heatpumps +if (dataObject.getRapidRunData().am_assetFlowsWeekend_kW.keySet().contains(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)) { + productionWeekend_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + productionWeekday_MWh = -productionWeekend_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW).getIntegral_MWh(); + if (productionWeekend_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWeekend_MWh += productionWeekend_MWh; + DataItem heatpumpElectricityWeekend = new DataItem(); + heatpumpElectricityWeekend.setValue(productionWeekend_MWh); + pl_productionChartWeekend.addDataItem(heatpumpElectricityWeekend, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + totalProductionWeekday_MWh += productionWeekday_MWh; + DataItem heatpumpElectricityWeekday = new DataItem(); + heatpumpElectricityWeekday.setValue(productionWeekday_MWh); + pl_productionChartWeekday.addDataItem(heatpumpElectricityWeekday, "Stroom voor Warmtepomp [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW)); + + double importWeekend_MWh = dataObject.getRapidRunData().getWeekendImport_MWh(OL_EnergyCarriers.HEAT); + double importWeekday_MWh = -importWeekend_MWh + dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.HEAT); + if (importWeekend_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWeekend_MWh += importWeekend_MWh; + DataItem heatpumpEnvironmentWeekend = new DataItem(); + heatpumpEnvironmentWeekend.setValue(importWeekend_MWh); + pl_productionChartWeekend.addDataItem(heatpumpEnvironmentWeekend, "Warmte uit Warmtenet [MWh]", purple); + + totalProductionWeekday_MWh += importWeekday_MWh; + DataItem heatpumpEnvironmentWeekday = new DataItem(); + heatpumpEnvironmentWeekday.setValue(importWeekday_MWh); + pl_productionChartWeekday.addDataItem(heatpumpEnvironmentWeekday, "Warmte uit Warmtenet [MWh]", purple); + } + else { + productionWeekend_MWh = dataObject.getRapidRunData().acc_weekendPrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + productionWeekday_MWh = -productionWeekend_MWh + dataObject.getRapidRunData().acc_totalPrimaryEnergyProductionHeatpumps_kW.getIntegral_MWh(); + + totalProductionWeekend_MWh += productionWeekend_MWh; + DataItem heatpumpEnvironmentWeekend = new DataItem(); + heatpumpEnvironmentWeekend.setValue(totalProductionWeekend_MWh); + pl_productionChartWeekend.addDataItem(heatpumpEnvironmentWeekend, "Warmte uit Omgeving [MWh]", lightSkyBlue); + + totalProductionWeekday_MWh += productionWeekday_MWh; + DataItem heatpumpEnvironmentWeekday = new DataItem(); + heatpumpEnvironmentWeekday.setValue(totalProductionWeekday_MWh); + pl_productionChartWeekday.addDataItem(heatpumpEnvironmentWeekday, "Warmte uit Omgeving [MWh]", lightSkyBlue); + } + } +} +// PVT +if (dataObject.getRapidRunData().am_assetFlowsWeekend_kW.keySet().contains(OL_AssetFlowCategories.ptProductionHeat_kW)) { + productionWeekend_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + productionWeekday_MWh = -productionWeekend_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.ptProductionHeat_kW).getIntegral_MWh(); + if (productionWeekend_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWeekend_MWh += productionWeekend_MWh; + DataItem ptWeekend = new DataItem(); + ptWeekend.setValue(productionWeekend_MWh); + pl_productionChartWeekend.addDataItem(ptWeekend, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } + if (productionWeekday_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWeekday_MWh += productionWeekday_MWh; + DataItem ptWeekday = new DataItem(); + ptWeekday.setValue(productionWeekday_MWh); + pl_productionChartWeekday.addDataItem(ptWeekday, "PT [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.ptProductionHeat_kW)); + } +} +// Heatgrid +if (dataObject.getRapidRunData().am_assetFlowsWeekend_kW.keySet().contains(OL_AssetFlowCategories.districtHeatDelivery_kW)) { + double importWeekend_MWh = dataObject.getRapidRunData().getWeekendImport_MWh(OL_EnergyCarriers.HEAT); + double importWeekday_MWh = -importWeekend_MWh + dataObject.getRapidRunData().getTotalImport_MWh(OL_EnergyCarriers.HEAT); + productionWeekend_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + productionWeekday_MWh = -productionWeekend_MWh + dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(OL_AssetFlowCategories.districtHeatDelivery_kW).getIntegral_MWh(); + double lossesWeekend_MWh = max(0, importWeekend_MWh - productionWeekend_MWh); + double lossesWeekday_MWh = max(0, importWeekday_MWh - productionWeekday_MWh); + if (importWeekend_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWeekend_MWh += importWeekend_MWh; + DataItem heatgridImportWeekend = new DataItem(); + heatgridImportWeekend.setValue(importWeekend_MWh); + pl_productionChartWeekend.addDataItem(heatgridImportWeekend, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (lossesWeekend_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionWeekend_MWh += lossesWeekend_MWh; + DataItem heatgridLossesWeekend = new DataItem(); + heatgridLossesWeekend.setValue(lossesWeekend_MWh); + pl_consumptionChartWeekend.addDataItem(heatgridLossesWeekend, "Warmtenet Verliezen [MWh]", gray); + } + if (importWeekday_MWh > uI_Results.p_cutOff_MWh) { + totalProductionWeekday_MWh += importWeekday_MWh; + DataItem heatgridImportWeekday = new DataItem(); + heatgridImportWeekday.setValue(importWeekday_MWh); + pl_productionChartWeekday.addDataItem(heatgridImportWeekday, "Warmte uit Warmtenet [MWh]", uI_Results.cm_assetFlowColors.get(OL_AssetFlowCategories.districtHeatDelivery_kW)); + } + if (lossesWeekday_MWh > uI_Results.p_cutOff_MWh) { + totalConsumptionWeekday_MWh += lossesWeekday_MWh; + DataItem heatgridLossesWeekday = new DataItem(); + heatgridLossesWeekday.setValue(lossesWeekday_MWh); + pl_consumptionChartWeekday.addDataItem(heatgridLossesWeekday, "Warmtenet Verliezen [MWh]", gray); + } +} + +double chartScaleWeekend_MWh = max(totalConsumptionWeekend_MWh, totalProductionWeekend_MWh); +pl_consumptionChartWeekend.setFixedScale(chartScaleWeekend_MWh); +pl_productionChartWeekend.setFixedScale(chartScaleWeekend_MWh); +double chartScaleWeekday_MWh = max(totalConsumptionWeekday_MWh, totalProductionWeekday_MWh); +pl_consumptionChartWeekday.setFixedScale(chartScaleWeekday_MWh); +pl_productionChartWeekday.setFixedScale(chartScaleWeekday_MWh); + +double chartScale_MWh = max(chartScaleWeekend_MWh, chartScaleWeekday_MWh); + +if (chartScale_MWh<10) { + t_productionTextWeekend.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionWeekend_MWh*1000) + " kWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionWeekend_MWh*1000) + " kWh"); + t_productionTextWeekday.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionWeekday_MWh*1000) + " kWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionWeekday_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextWeekend.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionWeekend_MWh) + " MWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionWeekend_MWh) + " MWh"); + t_productionTextWeekday.setText("Bron" + System.lineSeparator() + roundToInt(totalProductionWeekday_MWh) + " MWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumptionWeekday_MWh) + " MWh"); +} else { + t_productionTextWeekend.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProductionWeekend_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumptionWeekend_MWh/1000,1) + " GWh"); + t_productionTextWeekday.setText("Bron" + System.lineSeparator() + roundToDecimal(totalProductionWeekday_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumptionWeekday_MWh/1000,1) + " GWh"); +} + + +/*ALCODEEND*/} + +double f_setEnergyBarChartTotal(I_EnergyData dataObject) +{/*ALCODESTART::1762958604004*/ +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeConsumptionEnergyCarriers) { + if (dataObject.getRapidRunData().getTotalImport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem totalImport = new DataItem(); + totalImport.setValue(dataObject.getRapidRunData().getTotalImport_MWh(EC)); + pl_consumptionChartBalanceTotal.addDataItem(totalImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_consumptionColors.get(EC)); + } +} +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeProductionEnergyCarriers) { + if (dataObject.getRapidRunData().getTotalExport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem totalExport = new DataItem(); + totalExport.setValue(dataObject.getRapidRunData().getTotalExport_MWh(EC)); + pl_productionChartBalanceTotal.addDataItem(totalExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} + +double consumption_MWh = dataObject.getRapidRunData().getTotalEnergyImport_MWh(); +double production_MWh = dataObject.getRapidRunData().getTotalEnergyExport_MWh(); +double chartScale_MWh = max(production_MWh, consumption_MWh); +pl_consumptionChartBalanceTotal.setFixedScale(chartScale_MWh); +pl_productionChartBalanceTotal.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_consumptionTextYear.setText("Import" + System.lineSeparator() + roundToInt(consumption_MWh*1000) + " kWh"); + t_productionTextYear.setText("Export" + System.lineSeparator() + roundToInt(production_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_consumptionTextYear.setText("Import" + System.lineSeparator() + roundToInt(consumption_MWh) + " MWh"); + t_productionTextYear.setText("Export" + System.lineSeparator() + roundToInt(production_MWh) + " MWh"); +} else { + t_consumptionTextYear.setText("Import" + System.lineSeparator() + roundToDecimal(consumption_MWh/1000,1) + " GWh"); + t_productionTextYear.setText("Export" + System.lineSeparator() + roundToDecimal(production_MWh/1000, 1) + " GWh"); +} + +/*ALCODEEND*/} + +double f_setEnergyBarChartSummerWinter(I_EnergyData dataObject) +{/*ALCODESTART::1762958604006*/ +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeConsumptionEnergyCarriers) { + if (dataObject.getRapidRunData().am_summerWeekBalanceAccumulators_kW.get(EC).getIntegralPos_MWh() > uI_Results.p_cutOff_MWh) { + DataItem summerImport = new DataItem(); + summerImport.setValue(dataObject.getRapidRunData().am_summerWeekBalanceAccumulators_kW.get(EC).getIntegralPos_MWh()); + pl_consumptionChartSummer.addDataItem(summerImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_productionColors.get(EC)); + } + if (dataObject.getRapidRunData().am_winterWeekBalanceAccumulators_kW.get(EC).getIntegralPos_MWh() > uI_Results.p_cutOff_MWh) { + DataItem winterImport = new DataItem(); + winterImport.setValue(dataObject.getRapidRunData().am_winterWeekBalanceAccumulators_kW.get(EC).getIntegralPos_MWh()); + pl_consumptionChartWinter.addDataItem(winterImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeProductionEnergyCarriers) { + if (-dataObject.getRapidRunData().am_summerWeekBalanceAccumulators_kW.get(EC).getIntegralNeg_MWh() > uI_Results.p_cutOff_MWh) { + DataItem summerExport = new DataItem(); + summerExport.setValue(-dataObject.getRapidRunData().am_summerWeekBalanceAccumulators_kW.get(EC).getIntegralNeg_MWh()); + pl_productionChartSummer.addDataItem(summerExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } + if (-dataObject.getRapidRunData().am_winterWeekBalanceAccumulators_kW.get(EC).getIntegralNeg_MWh() > uI_Results.p_cutOff_MWh) { + DataItem winterExport = new DataItem(); + winterExport.setValue(-dataObject.getRapidRunData().am_winterWeekBalanceAccumulators_kW.get(EC).getIntegralNeg_MWh()); + pl_productionChartWinter.addDataItem(winterExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} + +double summerConsumption_MWh = dataObject.getRapidRunData().getSummerWeekEnergyConsumed_MWh(); +double summerProduction_MWh = dataObject.getRapidRunData().getSummerWeekEnergyProduced_MWh(); +double winterConsumption_MWh = dataObject.getRapidRunData().getWinterWeekEnergyConsumed_MWh(); +double winterProduction_MWh = dataObject.getRapidRunData().getWinterWeekEnergyProduced_MWh(); +double chartScale_MWh = max(max(summerProduction_MWh, winterProduction_MWh), max(summerConsumption_MWh, winterConsumption_MWh)); +pl_productionChartSummer.setFixedScale(chartScale_MWh); +pl_productionChartWinter.setFixedScale(chartScale_MWh); +pl_consumptionChartSummer.setFixedScale(chartScale_MWh); +pl_consumptionChartWinter.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_consumptionTextSummer.setText("Import" + System.lineSeparator() + roundToInt(summerConsumption_MWh*1000) + " kWh"); + t_productionTextSummer.setText("Export" + System.lineSeparator() + roundToInt(summerProduction_MWh*1000) + " kWh"); + t_consumptionTextWinter.setText("Import" + System.lineSeparator() + roundToInt(winterConsumption_MWh*1000) + " kWh"); + t_productionTextWinter.setText("Export" + System.lineSeparator() + roundToInt(winterProduction_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_consumptionTextSummer.setText("Import" + System.lineSeparator() + roundToInt(summerConsumption_MWh) + " MWh"); + t_productionTextSummer.setText("Export" + System.lineSeparator() + roundToInt(summerProduction_MWh) + " MWh"); + t_consumptionTextWinter.setText("Import" + System.lineSeparator() + roundToInt(winterConsumption_MWh) + " MWh"); + t_productionTextWinter.setText("Export" + System.lineSeparator() + roundToInt(winterProduction_MWh) + " MWh"); +} else { + t_consumptionTextSummer.setText("Import" + System.lineSeparator() + roundToDecimal(summerConsumption_MWh/1000,1) + " GWh"); + t_productionTextSummer.setText("Export" + System.lineSeparator() + roundToDecimal(summerProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWinter.setText("Import" + System.lineSeparator() + roundToDecimal(winterConsumption_MWh/1000,1) + " GWh"); + t_productionTextWinter.setText("Export" + System.lineSeparator() + roundToDecimal(winterProduction_MWh/1000, 1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setEnergyBarChartDayNight(I_EnergyData dataObject) +{/*ALCODESTART::1762958604008*/ +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeConsumptionEnergyCarriers) { + if (dataObject.getRapidRunData().getDaytimeImport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem daytimeImport = new DataItem(); + daytimeImport.setValue(dataObject.getRapidRunData().getDaytimeImport_MWh(EC)); + pl_consumptionChartDay.addDataItem(daytimeImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_productionColors.get(EC)); + } + if (dataObject.getRapidRunData().getNighttimeImport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem nighttimeImport = new DataItem(); + nighttimeImport.setValue(dataObject.getRapidRunData().getNighttimeImport_MWh(EC)); + pl_consumptionChartNight.addDataItem(nighttimeImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeProductionEnergyCarriers) { + if (dataObject.getRapidRunData().getDaytimeExport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem daytimeExport = new DataItem(); + daytimeExport.setValue(dataObject.getRapidRunData().getDaytimeExport_MWh(EC)); + pl_productionChartDay.addDataItem(daytimeExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } + if (dataObject.getRapidRunData().getNighttimeExport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem nighttimeExport = new DataItem(); + nighttimeExport.setValue(dataObject.getRapidRunData().getNighttimeExport_MWh(EC)); + pl_productionChartNight.addDataItem(nighttimeExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} + +double dayProduction_MWh = dataObject.getRapidRunData().getDaytimeEnergyProduced_MWh(); +double dayConsumption_MWh = dataObject.getRapidRunData().getDaytimeEnergyConsumed_MWh(); +double nightProduction_MWh = dataObject.getRapidRunData().getNighttimeEnergyProduced_MWh(); +double nightConsumption_MWh = dataObject.getRapidRunData().getNighttimeEnergyConsumed_MWh(); +double chartScale_MWh = max(max(dayProduction_MWh, nightProduction_MWh), max(dayConsumption_MWh, nightConsumption_MWh)); +pl_productionChartDay.setFixedScale(chartScale_MWh); +pl_productionChartNight.setFixedScale(chartScale_MWh); +pl_consumptionChartDay.setFixedScale(chartScale_MWh); +pl_consumptionChartNight.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_consumptionTextDay.setText("Import" + System.lineSeparator() + roundToInt(dayConsumption_MWh*1000) + " kWh"); + t_productionTextDay.setText("Export" + System.lineSeparator() + roundToInt(dayProduction_MWh*1000) + " kWh"); + t_consumptionTextNight.setText("Import" + System.lineSeparator() + roundToInt(nightConsumption_MWh*1000) + " kWh"); + t_productionTextNight.setText("Export" + System.lineSeparator() + roundToInt(nightProduction_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_consumptionTextDay.setText("Import" + System.lineSeparator() + roundToInt(dayConsumption_MWh) + " MWh"); + t_productionTextDay.setText("Export" + System.lineSeparator() + roundToInt(dayProduction_MWh) + " MWh"); + t_consumptionTextNight.setText("Import" + System.lineSeparator() + roundToInt(nightConsumption_MWh) + " MWh"); + t_productionTextNight.setText("Export" + System.lineSeparator() + roundToInt(nightProduction_MWh) + " MWh"); +} else { + t_consumptionTextDay.setText("Import" + System.lineSeparator() + roundToDecimal(dayConsumption_MWh/1000,1) + " GWh"); + t_productionTextDay.setText("Export" + System.lineSeparator() + roundToDecimal(dayProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextNight.setText("Import" + System.lineSeparator() + roundToDecimal(nightConsumption_MWh/1000,1) + " GWh"); + t_productionTextNight.setText("Export" + System.lineSeparator() + roundToDecimal(nightProduction_MWh/1000, 1) + " GWh"); +} + +/*ALCODEEND*/} + +double f_setEnergyBarChartWeekdayWeekend(I_EnergyData dataObject) +{/*ALCODESTART::1762958604010*/ +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeConsumptionEnergyCarriers) { + if (dataObject.getRapidRunData().getWeekdayImport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem weekdayImport = new DataItem(); + weekdayImport.setValue(dataObject.getRapidRunData().getWeekdayImport_MWh(EC)); + pl_consumptionChartWeekday.addDataItem(weekdayImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_productionColors.get(EC)); + } + if (dataObject.getRapidRunData().getWeekendImport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem weekendImport = new DataItem(); + weekendImport.setValue(dataObject.getRapidRunData().getWeekendImport_MWh(EC)); + pl_consumptionChartWeekend.addDataItem(weekendImport, uI_Results.f_getName(EC) + " Import [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} +for (OL_EnergyCarriers EC : dataObject.getRapidRunData().activeProductionEnergyCarriers) { + if (dataObject.getRapidRunData().getWeekdayExport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem weekdayExport = new DataItem(); + weekdayExport.setValue(dataObject.getRapidRunData().getWeekdayExport_MWh(EC)); + pl_productionChartWeekday.addDataItem(weekdayExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } + if (dataObject.getRapidRunData().getWeekendExport_MWh(EC) > uI_Results.p_cutOff_MWh) { + DataItem weekendExport = new DataItem(); + weekendExport.setValue(dataObject.getRapidRunData().getWeekendExport_MWh(EC)); + pl_productionChartWeekend.addDataItem(weekendExport, uI_Results.f_getName(EC) + " Export [MWh]", uI_Results.cm_productionColors.get(EC)); + } +} + +double weekdayProduction_MWh = dataObject.getRapidRunData().getWeekdayEnergyProduced_MWh(); +double weekdayConsumption_MWh = dataObject.getRapidRunData().getWeekdayEnergyConsumed_MWh(); +double weekendProduction_MWh = dataObject.getRapidRunData().getWeekendEnergyProduced_MWh(); +double weekendConsumption_MWh = dataObject.getRapidRunData().getWeekendEnergyConsumed_MWh(); +double chartScale_MWh = max(max(weekdayProduction_MWh, weekendProduction_MWh), max(weekdayConsumption_MWh, weekendConsumption_MWh)); +pl_productionChartWeekday.setFixedScale(chartScale_MWh); +pl_productionChartWeekend.setFixedScale(chartScale_MWh); +pl_consumptionChartWeekday.setFixedScale(chartScale_MWh); +pl_consumptionChartWeekend.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_consumptionTextWeekday.setText("Import" + System.lineSeparator() + roundToInt(weekdayConsumption_MWh*1000) + " kWh"); + t_productionTextWeekday.setText("Export" + System.lineSeparator() + roundToInt(weekdayProduction_MWh*1000) + " kWh"); + t_consumptionTextWeekend.setText("Import" + System.lineSeparator() + roundToInt(weekendConsumption_MWh*1000) + " kWh"); + t_productionTextWeekend.setText("Export" + System.lineSeparator() + roundToInt(weekendProduction_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_consumptionTextWeekday.setText("Import" + System.lineSeparator() + roundToInt(weekdayConsumption_MWh) + " MWh"); + t_productionTextWeekday.setText("Export" + System.lineSeparator() + roundToInt(weekdayProduction_MWh) + " MWh"); + t_consumptionTextWeekend.setText("Import" + System.lineSeparator() + roundToInt(weekendConsumption_MWh) + " MWh"); + t_productionTextWeekend.setText("Export" + System.lineSeparator() + roundToInt(weekendProduction_MWh) + " MWh"); +} else { + t_consumptionTextWeekday.setText("Import" + System.lineSeparator() + roundToDecimal(weekdayConsumption_MWh/1000,1) + " GWh"); + t_productionTextWeekday.setText("Export" + System.lineSeparator() + roundToDecimal(weekdayProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekend.setText("Import" + System.lineSeparator() + roundToDecimal(weekendConsumption_MWh/1000,1) + " GWh"); + t_productionTextWeekend.setText("Export" + System.lineSeparator() + roundToDecimal(weekendProduction_MWh/1000, 1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setElectricityAssetsBarChartTotal(I_EnergyData dataObject) +{/*ALCODESTART::1762963209071*/ +double totalConsumption_MWh = 0; +double totalProduction_MWh = 0; +double consumption_MWh = 0; +double production_MWh= 0; +DataItem di = null; + +for (OL_AssetFlowCategories AFC : dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet()) { + if (uI_Results.v_electricAssetFlows.contains(AFC)) { + if (uI_Results.v_consumptionAssetFlows.contains(AFC)) { + consumption_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(AFC).getIntegral_MWh(); + totalConsumption_MWh += consumption_MWh; + di = new DataItem(); + di.setValue(consumption_MWh); + pl_consumptionChartBalanceTotal.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + else { + production_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(AFC).getIntegral_MWh(); + totalProduction_MWh += production_MWh; + di = new DataItem(); + di.setValue(production_MWh); + pl_productionChartBalanceTotal.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + } +} + +double chartScale_MWh = max(totalConsumption_MWh, totalProduction_MWh); + +if (chartScale_MWh<10) { + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumption_MWh*1000) + " kWh"); + t_productionTextYear.setText("Opwek" + System.lineSeparator() + roundToInt(totalProduction_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToInt(totalConsumption_MWh) + " MWh"); + t_productionTextYear.setText("Opwek" + System.lineSeparator() + roundToInt(totalProduction_MWh) + " MWh"); +} else { + t_consumptionTextYear.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalConsumption_MWh/1000,1) + " GWh"); + t_productionTextYear.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalProduction_MWh/1000, 1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setElectricityAssetsBarChartSummerWinter(I_EnergyData dataObject) +{/*ALCODESTART::1762963209166*/ +double totalSummerConsumption_MWh = 0; +double totalSummerProduction_MWh = 0; +double totalWinterConsumption_MWh = 0; +double totalWinterProduction_MWh = 0; +double consumption_MWh = 0; +double production_MWh = 0; +DataItem di = null; + +for (OL_AssetFlowCategories AFC : dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet()) { + if (uI_Results.v_electricAssetFlows.contains(AFC)) { + if (uI_Results.v_consumptionAssetFlows.contains(AFC)) { + // Summer + consumption_MWh = dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(AFC).getIntegral_MWh(); + totalSummerConsumption_MWh += consumption_MWh; + di = new DataItem(); + di.setValue(consumption_MWh); + pl_consumptionChartSummer.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + // Winter + consumption_MWh = dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(AFC).getIntegral_MWh(); + totalWinterConsumption_MWh += consumption_MWh; + di = new DataItem(); + di.setValue(consumption_MWh); + pl_consumptionChartWinter.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + else { + // Summer + production_MWh = dataObject.getRapidRunData().am_assetFlowsSummerWeek_kW.get(AFC).getIntegral_MWh(); + totalSummerProduction_MWh += production_MWh; + di = new DataItem(); + di.setValue(production_MWh); + pl_productionChartSummer.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + // Winter + production_MWh = dataObject.getRapidRunData().am_assetFlowsWinterWeek_kW.get(AFC).getIntegral_MWh(); + totalWinterProduction_MWh += production_MWh; + di = new DataItem(); + di.setValue(production_MWh); + pl_productionChartWinter.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + } +} + +double chartScale_MWh = max(max(totalSummerProduction_MWh, totalWinterProduction_MWh), max(totalSummerConsumption_MWh, totalWinterConsumption_MWh)); +pl_productionChartSummer.setFixedScale(chartScale_MWh); +pl_productionChartWinter.setFixedScale(chartScale_MWh); +pl_consumptionChartSummer.setFixedScale(chartScale_MWh); +pl_consumptionChartWinter.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_productionTextSummer.setText("Opwek" + System.lineSeparator() + roundToInt(totalSummerProduction_MWh*1000) + " kWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToInt(totalSummerConsumption_MWh*1000) + " kWh"); + t_productionTextWinter.setText("Opwek" + System.lineSeparator() + roundToInt(totalWinterProduction_MWh*1000) + " kWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToInt(totalWinterConsumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextSummer.setText("Opwek" + System.lineSeparator() + roundToInt(totalSummerProduction_MWh) + " MWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToInt(totalSummerConsumption_MWh) + " MWh"); + t_productionTextWinter.setText("Opwek" + System.lineSeparator() + roundToInt(totalWinterProduction_MWh) + " MWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToInt(totalWinterConsumption_MWh) + " MWh"); +} else { + t_productionTextSummer.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalSummerProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextSummer.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalSummerConsumption_MWh/1000,1) + " GWh"); + t_productionTextWinter.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalWinterProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWinter.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalWinterConsumption_MWh/1000,1) + " GWh"); +} +/*ALCODEEND*/} + +double f_setElectricityAssetsBarChartDayNight(I_EnergyData dataObject) +{/*ALCODESTART::1762963209261*/ +double totalDayConsumption_MWh = 0; +double totalDayProduction_MWh = 0; +double totalNightConsumption_MWh = 0; +double totalNightProduction_MWh = 0; +double dayConsumption_MWh = 0; +double dayProduction_MWh = 0; +double nightConsumption_MWh = 0; +double nightProduction_MWh = 0; + +DataItem di = null; + +for (OL_AssetFlowCategories AFC : dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet()) { + if (uI_Results.v_electricAssetFlows.contains(AFC)) { + if (uI_Results.v_consumptionAssetFlows.contains(AFC)) { + // Day + dayConsumption_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(AFC).getIntegral_MWh(); + totalDayConsumption_MWh += dayConsumption_MWh; + di = new DataItem(); + di.setValue(dayConsumption_MWh); + pl_consumptionChartDay.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + // Night + nightConsumption_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(AFC).getIntegral_MWh() - dayConsumption_MWh; + totalNightConsumption_MWh += nightConsumption_MWh; + di = new DataItem(); + di.setValue(nightConsumption_MWh); + pl_consumptionChartNight.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + else { + // Day + dayProduction_MWh = dataObject.getRapidRunData().am_assetFlowsDaytime_kW.get(AFC).getIntegral_MWh(); + totalDayProduction_MWh += dayProduction_MWh; + di = new DataItem(); + di.setValue(dayProduction_MWh); + pl_productionChartDay.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + // Night + nightProduction_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(AFC).getIntegral_MWh() - dayProduction_MWh; + totalNightProduction_MWh += nightProduction_MWh; + di = new DataItem(); + di.setValue(nightProduction_MWh); + pl_productionChartNight.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + } +} + +double chartScale_MWh = max(max(totalDayProduction_MWh, totalNightProduction_MWh), max(totalDayConsumption_MWh, totalNightConsumption_MWh)); +pl_productionChartDay.setFixedScale(chartScale_MWh); +pl_productionChartNight.setFixedScale(chartScale_MWh); +pl_consumptionChartDay.setFixedScale(chartScale_MWh); +pl_consumptionChartNight.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_productionTextDay.setText("Opwek" + System.lineSeparator() + roundToInt(totalDayProduction_MWh*1000) + " kWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToInt(totalDayConsumption_MWh*1000) + " kWh"); + t_productionTextNight.setText("Opwek" + System.lineSeparator() + roundToInt(totalNightProduction_MWh*1000) + " kWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToInt(totalNightConsumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextDay.setText("Opwek" + System.lineSeparator() + roundToInt(totalDayProduction_MWh) + " MWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToInt(totalDayConsumption_MWh) + " MWh"); + t_productionTextNight.setText("Opwek" + System.lineSeparator() + roundToInt(totalNightProduction_MWh) + " MWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToInt(totalNightConsumption_MWh) + " MWh"); +} else { + t_productionTextDay.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalDayProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextDay.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalDayConsumption_MWh/1000,1) + " GWh"); + t_productionTextNight.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalNightProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextNight.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalNightConsumption_MWh/1000,1) + " GWh"); +} + +/*ALCODEEND*/} + +double f_setElectricityAssetsBarChartWeekdayWeekend(I_EnergyData dataObject) +{/*ALCODESTART::1762963209355*/ +double totalWeekendConsumption_MWh = 0; +double totalWeekendProduction_MWh = 0; +double totalWeekdayConsumption_MWh = 0; +double totalWeekdayProduction_MWh = 0; +double weekendConsumption_MWh = 0; +double weekendProduction_MWh = 0; +double weekdayConsumption_MWh = 0; +double weekdayProduction_MWh = 0; + +DataItem di = null; + +for (OL_AssetFlowCategories AFC : dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.keySet()) { + if (uI_Results.v_electricAssetFlows.contains(AFC)) { + if (uI_Results.v_consumptionAssetFlows.contains(AFC)) { + // Weekend + weekendConsumption_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(AFC).getIntegral_MWh(); + totalWeekendConsumption_MWh += weekendConsumption_MWh; + di = new DataItem(); + di.setValue(weekendConsumption_MWh); + pl_consumptionChartWeekend.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + // Weekday + weekdayConsumption_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(AFC).getIntegral_MWh() - weekendConsumption_MWh; + totalWeekdayConsumption_MWh += weekdayConsumption_MWh; + di = new DataItem(); + di.setValue(weekdayConsumption_MWh); + pl_consumptionChartWeekday.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + else { + // Weekend + weekendProduction_MWh = dataObject.getRapidRunData().am_assetFlowsWeekend_kW.get(AFC).getIntegral_MWh(); + totalWeekendProduction_MWh += weekendProduction_MWh; + di = new DataItem(); + di.setValue(weekendProduction_MWh); + pl_productionChartWeekend.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + // Weekday + weekdayProduction_MWh = dataObject.getRapidRunData().am_assetFlowsAccumulators_kW.get(AFC).getIntegral_MWh() - weekendProduction_MWh; + totalWeekdayProduction_MWh += weekdayProduction_MWh; + di = new DataItem(); + di.setValue(weekdayProduction_MWh); + pl_productionChartWeekday.addDataItem(di, uI_Results.lm_assetFlowLabels.get(AFC), uI_Results.cm_assetFlowColors.get(AFC)); + } + } +} + +double chartScale_MWh = max(max(totalWeekdayProduction_MWh, totalWeekendProduction_MWh), max(totalWeekdayConsumption_MWh, totalWeekendConsumption_MWh)); +pl_productionChartWeekday.setFixedScale(chartScale_MWh); +pl_productionChartWeekend.setFixedScale(chartScale_MWh); +pl_consumptionChartWeekday.setFixedScale(chartScale_MWh); +pl_consumptionChartWeekend.setFixedScale(chartScale_MWh); + +if (chartScale_MWh<10) { + t_productionTextWeekday.setText("Opwek" + System.lineSeparator() + roundToInt(totalWeekdayProduction_MWh*1000) + " kWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToInt(totalWeekdayConsumption_MWh*1000) + " kWh"); + t_productionTextWeekend.setText("Opwek" + System.lineSeparator() + roundToInt(totalWeekendProduction_MWh*1000) + " kWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToInt(totalWeekendConsumption_MWh*1000) + " kWh"); +} else if (chartScale_MWh<1000) { + t_productionTextWeekday.setText("Opwek" + System.lineSeparator() + roundToInt(totalWeekdayProduction_MWh) + " MWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToInt(totalWeekdayConsumption_MWh) + " MWh"); + t_productionTextWeekend.setText("Opwek" + System.lineSeparator() + roundToInt(totalWeekendProduction_MWh) + " MWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToInt(totalWeekendConsumption_MWh) + " MWh"); +} else { + t_productionTextWeekday.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalWeekdayProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekday.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalWeekdayConsumption_MWh/1000,1) + " GWh"); + t_productionTextWeekend.setText("Opwek" + System.lineSeparator() + roundToDecimal(totalWeekendProduction_MWh/1000, 1) + " GWh"); + t_consumptionTextWeekend.setText("Gebruik" + System.lineSeparator() + roundToDecimal(totalWeekendConsumption_MWh/1000,1) + " GWh"); +} +/*ALCODEEND*/} + diff --git a/_alp/Agents/ChartBars/Code/Functions.xml b/_alp/Agents/ChartBars/Code/Functions.xml new file mode 100644 index 0000000..49ccf83 --- /dev/null +++ b/_alp/Agents/ChartBars/Code/Functions.xml @@ -0,0 +1,391 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Functions> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101313</Id> + <Name><![CDATA[f_setCharts]]></Name> + <X>20</X> + <Y>1020</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101315</Id> + <Name><![CDATA[f_setElectricitySelfConsumptionBarChartTotal]]></Name> + <X>50</X> + <Y>1060</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101317</Id> + <Name><![CDATA[f_setElectricitySelfConsumptionBarChartSummerWinter]]></Name> + <X>50</X> + <Y>1100</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101319</Id> + <Name><![CDATA[f_setElectricitySelfConsumptionBarChartDayNight]]></Name> + <X>50</X> + <Y>1140</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101321</Id> + <Name><![CDATA[f_setElectricitySelfConsumptionBarChartWeekdayWeekend]]></Name> + <X>50</X> + <Y>1180</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101323</Id> + <Name><![CDATA[f_resetCharts]]></Name> + <X>30</X> + <Y>870</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101333</Id> + <Name><![CDATA[f_setVisiblity]]></Name> + <X>30</X> + <Y>890</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958101347</Id> + <Name><![CDATA[f_setMonthlyCharts]]></Name> + <X>1320</X> + <Y>1060</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958502278</Id> + <Name><![CDATA[f_setHeatBarChartTotal]]></Name> + <X>550</X> + <Y>1060</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958502280</Id> + <Name><![CDATA[f_setHeatBarChartSummerWinter]]></Name> + <X>550</X> + <Y>1100</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958502282</Id> + <Name><![CDATA[f_setHeatBarChartDayNight]]></Name> + <X>550</X> + <Y>1140</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958502284</Id> + <Name><![CDATA[f_setHeatBarChartWeekdayWeekend]]></Name> + <X>550</X> + <Y>1180</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958604004</Id> + <Name><![CDATA[f_setEnergyBarChartTotal]]></Name> + <Description><![CDATA[Only shows Import and Export]]></Description> + <X>870</X> + <Y>1060</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958604006</Id> + <Name><![CDATA[f_setEnergyBarChartSummerWinter]]></Name> + <Description><![CDATA[Only shows Import and Export]]></Description> + <X>870</X> + <Y>1100</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958604008</Id> + <Name><![CDATA[f_setEnergyBarChartDayNight]]></Name> + <Description><![CDATA[Only shows Import and Export]]></Description> + <X>870</X> + <Y>1140</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762958604010</Id> + <Name><![CDATA[f_setEnergyBarChartWeekdayWeekend]]></Name> + <Description><![CDATA[Only shows Import and Export]]></Description> + <X>870</X> + <Y>1180</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762963209071</Id> + <Name><![CDATA[f_setElectricityAssetsBarChartTotal]]></Name> + <X>50</X> + <Y>1270</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762963209166</Id> + <Name><![CDATA[f_setElectricityAssetsBarChartSummerWinter]]></Name> + <X>50</X> + <Y>1310</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762963209261</Id> + <Name><![CDATA[f_setElectricityAssetsBarChartDayNight]]></Name> + <X>50</X> + <Y>1350</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> + <Function AccessType="default" StaticFunction="false"> + <ReturnModificator>VOID</ReturnModificator> + <ReturnType>double</ReturnType> + <Id>1762963209355</Id> + <Name><![CDATA[f_setElectricityAssetsBarChartWeekdayWeekend]]></Name> + <X>50</X> + <Y>1390</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Parameter> + <Name><![CDATA[dataObject]]></Name> + <Type><![CDATA[I_EnergyData]]></Type> + </Parameter> + <Body xmlns:al="http://anylogic.com"/> + </Function> +</Functions> diff --git a/_alp/Agents/ChartBars/Levels/Level.level.xml b/_alp/Agents/ChartBars/Levels/Level.level.xml new file mode 100644 index 0000000..d3ab8c0 --- /dev/null +++ b/_alp/Agents/ChartBars/Levels/Level.level.xml @@ -0,0 +1,2378 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Presentation> + <Rectangle> + <Id>1762958101351</Id> + <Name><![CDATA[rectangle]]></Name> + <X>0</X> + <Y>0</Y> + <Label> + <X>10</X> + <Y>10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <ZHeight>10</ZHeight> + <LineWidth>1</LineWidth> + <LineWidthCode>v_lineWidth</LineWidthCode> + <LineColor>-1644806</LineColor> + <LineColorCode>v_lineColor</LineColorCode> + <LineMaterial>null</LineMaterial> + <LineStyle>SOLID</LineStyle> + <Width>460</Width> + <Height>80</Height> + <Rotation>0.0</Rotation> + <FillColor>-657931</FillColor> + <FillMaterial>null</FillMaterial> + </Rectangle> + <Control Type="RadioButtons"> + <EmbeddedIcon>false</EmbeddedIcon> + <Id>1762958101353</Id> + <Name><![CDATA[radio_energyType]]></Name> + <X>80</X> + <Y>0</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <BasicProperties Width="300" Height="40"> + <EmbeddedIcon>false</EmbeddedIcon> + <TextColor>-16777216</TextColor> + <Enabled>true</Enabled> + <ActionCode>f_setCharts();</ActionCode> + </BasicProperties> + <ExtendedProperties> + <Font Name="Dialog" Size="11" Style="0"/> + <DefaultValueCode>0</DefaultValueCode> + <Orientation>HORIZONTAL</Orientation> + <Button>Elektriciteit</Button> + <Button>Warmte</Button> + <Button>Alle energiedragers</Button> + <LinkTo>false</LinkTo> + </ExtendedProperties> + </Control> + <Control Type="RadioButtons"> + <EmbeddedIcon>false</EmbeddedIcon> + <Id>1762958101355</Id> + <Name><![CDATA[radio_period]]></Name> + <X>20</X> + <Y>35</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <BasicProperties Width="440" Height="40"> + <EmbeddedIcon>false</EmbeddedIcon> + <TextColor>-16777216</TextColor> + <Enabled>true</Enabled> + <ActionCode>f_setCharts();</ActionCode> + </BasicProperties> + <ExtendedProperties> + <Font Name="Dialog" Size="11" Style="0"/> + <DefaultValueCode>0</DefaultValueCode> + <Orientation>HORIZONTAL</Orientation> + <Button>Jaar overzicht</Button> + <Button>Zomer / Winter week</Button> + <Button>Dag / Nacht</Button> + <Button>Week/ Weekend</Button> + <LinkTo>false</LinkTo> + </ExtendedProperties> + </Control> + <Group> + <Id>1762958101357</Id> + <Name><![CDATA[gr_Total]]></Name> + <X>230</X> + <Y>350</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Presentation> + <StackChart> + <Id>1762958101361</Id> + <Name><![CDATA[pl_productionChartBalanceTotal]]></Name> + <X>-160</X> + <Y>-60</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101359</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>322.133</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>242.133</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101365</Id> + <Name><![CDATA[pl_consumptionChartBalanceTotal]]></Name> + <X>-160</X> + <Y>-210</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101363</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101367</Id> + <Name><![CDATA[t_productionTextYear]]></Name> + <X>-120</X> + <Y>-20</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101369</Id> + <Name><![CDATA[t_consumptionTextYear]]></Name> + <X>-120</X> + <Y>-170</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Control Type="Button"> + <EmbeddedIcon>false</EmbeddedIcon> + <Id>1762958101371</Id> + <Name><![CDATA[button_monthlyDetails]]></Name> + <X>100</X> + <Y>350</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <BasicProperties Width="115" Height="30"> + <EmbeddedIcon>false</EmbeddedIcon> + <TextColor>-16777216</TextColor> + <VisibleCode>radio_energyType.getValue() == 0 && (uI_Results.v_selectedObjectScope == OL_ResultScope.GRIDNODE || uI_Results.f_getSelectedObjectData() instanceof EnergyModel || (uI_Results.f_getSelectedObjectData() instanceof GridConnection && ((GridConnection)uI_Results.f_getSelectedObjectData()).v_hasQuarterHourlyValues))</VisibleCode> + <Enabled>true</Enabled> + <ActionCode>gr_Total.setVisible(false); +f_setMonthlyCharts(); +gr_monthlyTotals.setVisible(true);</ActionCode> + </BasicProperties> + <ExtendedProperties> + <Font Name="Dialog" Size="11" Style="0"/> + <LabelText>bekijk per maand</LabelText> + </ExtendedProperties> + </Control> + </Presentation> + </Group> + <Group> + <Id>1762958101373</Id> + <Name><![CDATA[gr_SummerWinter]]></Name> + <X>690</X> + <Y>380</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>false</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <XCode>230</XCode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Presentation> + <StackChart> + <Id>1762958101377</Id> + <Name><![CDATA[pl_productionChartSummer]]></Name> + <X>-160</X> + <Y>-140</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101375</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>322.133</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>242.133</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101381</Id> + <Name><![CDATA[pl_consumptionChartSummer]]></Name> + <X>-160</X> + <Y>-280</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101379</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101383</Id> + <Name><![CDATA[t_productionTextSummer]]></Name> + <X>-120</X> + <Y>-100</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101385</Id> + <Name><![CDATA[t_consumptionTextSummer]]></Name> + <X>-120</X> + <Y>-240</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101387</Id> + <Name><![CDATA[t_topBarplotText1]]></Name> + <X>-190</X> + <Y>-170</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Zomer week]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <StackChart> + <Id>1762958101391</Id> + <Name><![CDATA[pl_productionChartWinter]]></Name> + <X>-160</X> + <Y>180</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101389</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>324</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>244.00000000000003</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101395</Id> + <Name><![CDATA[pl_consumptionChartWinter]]></Name> + <X>-160</X> + <Y>30</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101393</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101397</Id> + <Name><![CDATA[t_productionTextWinter]]></Name> + <X>-120</X> + <Y>220</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101399</Id> + <Name><![CDATA[t_consumptionTextWinter]]></Name> + <X>-120</X> + <Y>70</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101401</Id> + <Name><![CDATA[t_bottomBarplotText1]]></Name> + <X>-190</X> + <Y>143</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Winter week]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + </Presentation> + </Group> + <Group> + <Id>1762958101403</Id> + <Name><![CDATA[gr_DayNight]]></Name> + <X>1120</X> + <Y>380</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>false</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <XCode>230</XCode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Presentation> + <StackChart> + <Id>1762958101407</Id> + <Name><![CDATA[pl_productionChartDay]]></Name> + <X>-160</X> + <Y>-140</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101405</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>322.133</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>242.133</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101411</Id> + <Name><![CDATA[pl_consumptionChartDay]]></Name> + <X>-160</X> + <Y>-280</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101409</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101413</Id> + <Name><![CDATA[t_productionTextDay]]></Name> + <X>-120</X> + <Y>-100</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101415</Id> + <Name><![CDATA[t_consumptionTextDay]]></Name> + <X>-120</X> + <Y>-240</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101417</Id> + <Name><![CDATA[t_topBarplotText2]]></Name> + <X>-200</X> + <Y>-170</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Dag +]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <StackChart> + <Id>1762958101421</Id> + <Name><![CDATA[pl_productionChartNight]]></Name> + <X>-160</X> + <Y>180</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101419</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>324</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>244.00000000000003</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101425</Id> + <Name><![CDATA[pl_consumptionChartNight]]></Name> + <X>-160</X> + <Y>30</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101423</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101427</Id> + <Name><![CDATA[t_productionTextNight]]></Name> + <X>-120</X> + <Y>220</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101429</Id> + <Name><![CDATA[t_consumptionTextNight]]></Name> + <X>-120</X> + <Y>70</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101431</Id> + <Name><![CDATA[t_bottomBarplotText2]]></Name> + <X>-200</X> + <Y>143</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Nacht]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + </Presentation> + </Group> + <Group> + <Id>1762958101433</Id> + <Name><![CDATA[gr_WeekdayWeekend]]></Name> + <X>1550</X> + <Y>380</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>false</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <XCode>230</XCode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Presentation> + <StackChart> + <Id>1762958101437</Id> + <Name><![CDATA[pl_productionChartWeekday]]></Name> + <X>-160</X> + <Y>-140</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101435</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>322.133</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>242.133</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101441</Id> + <Name><![CDATA[pl_consumptionChartWeekday]]></Name> + <X>-160</X> + <Y>-280</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101439</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101443</Id> + <Name><![CDATA[t_productionTextWeekday]]></Name> + <X>-120</X> + <Y>-100</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101445</Id> + <Name><![CDATA[t_consumptionTextWeekday]]></Name> + <X>-120</X> + <Y>-240</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101447</Id> + <Name><![CDATA[t_topBarplotText3]]></Name> + <X>-190</X> + <Y>-170</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Weekdagen +]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <StackChart> + <Id>1762958101451</Id> + <Name><![CDATA[pl_productionChartWeekend]]></Name> + <X>-160</X> + <Y>180</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101449</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>324</Width> + <Height>121.007</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>244.00000000000003</Width> + <Height>41.007000000000005</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <StackChart> + <Id>1762958101455</Id> + <Name><![CDATA[pl_consumptionChartWeekend]]></Name> + <X>-160</X> + <Y>30</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>false</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101453</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1700640000000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>323.04</Width> + <Height>120</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>243.04000000000002</Width> + <Height>40</Height> + <BackgroundColor/> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>36</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor/> + </Labels> + <ShowLegend>true</ShowLegend> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>RIGHT</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </StackChart> + <Text> + <Id>1762958101457</Id> + <Name><![CDATA[t_productionTextWeekend]]></Name> + <X>-120</X> + <Y>220</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Opwek]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101459</Id> + <Name><![CDATA[t_consumptionTextWeekend]]></Name> + <X>-120</X> + <Y>70</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Gebruik]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>RIGHT</Alignment> + </Text> + <Text> + <Id>1762958101461</Id> + <Name><![CDATA[t_bottomBarplotText3]]></Name> + <X>-190</X> + <Y>143</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Weekenden]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + </Presentation> + </Group> + <Group> + <Id>1762958101463</Id> + <Name><![CDATA[gr_monthlyTotals]]></Name> + <X>2040</X> + <Y>320</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>false</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <XCode>230</XCode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Presentation> + <BarChart> + <Id>1762958101467</Id> + <Name><![CDATA[bc_productionMonthlyTotals]]></Name> + <X>-210</X> + <Y>80</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>true</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101465</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1758614400000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>430</Width> + <Height>200</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>360</Width> + <Height>140</Height> + <BackgroundColor>-1</BackgroundColor> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>30</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor>-12566464</TextColor> + </Labels> + <ShowLegend>false</ShowLegend> + <ScaleFromExpression>0</ScaleFromExpression> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>UP</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </BarChart> + <BarChart> + <Id>1762958101471</Id> + <Name><![CDATA[bc_consumptionMonthlyTotals]]></Name> + <X>-210</X> + <Y>-190</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <AutoUpdate>true</AutoUpdate> + <RecurrenceProperties> + <Id>1762958101469</Id> + <OccurrenceAtTime>true</OccurrenceAtTime> + <OccurrenceDate>1758614400000</OccurrenceDate> + <OccurrenceTime Class="CodeUnitValue"> + <Code><![CDATA[0]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </OccurrenceTime> + <RecurrenceCode Class="CodeUnitValue"> + <Code><![CDATA[1]]></Code> + <Unit Class="TimeUnits">HOUR</Unit> + </RecurrenceCode> + </RecurrenceProperties> + <EmbeddedIcon>false</EmbeddedIcon> + <Width>430</Width> + <Height>200</Height> + <BackgroundColor/> + <BorderColor/> + <ChartArea> + <XOffset>50</XOffset> + <YOffset>30</YOffset> + <Width>360</Width> + <Height>140</Height> + <BackgroundColor>-1</BackgroundColor> + <BorderColor>-16777216</BorderColor> + <GridColor>-12566464</GridColor> + </ChartArea> + <Legend> + <Place>SOUTH</Place> + <TextColor>-16777216</TextColor> + <Size>30</Size> + </Legend> + <Labels> + <HorLabelsPosition>DEFAULT</HorLabelsPosition> + <VerLabelsPosition>DEFAULT</VerLabelsPosition> + <TextColor>-12566464</TextColor> + </Labels> + <ShowLegend>false</ShowLegend> + <ScaleFromExpression>0</ScaleFromExpression> + <ScaleToExpression>1</ScaleToExpression> + <ScaleType>AUTO</ScaleType> + <Bars> + <Direction>UP</Direction> + <RelativeWidth>0.8</RelativeWidth> + </Bars> + </BarChart> + <Control Type="Button"> + <EmbeddedIcon>false</EmbeddedIcon> + <Id>1762958101473</Id> + <Name><![CDATA[button_yearTotals]]></Name> + <X>100</X> + <Y>380</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <BasicProperties Width="115" Height="30"> + <EmbeddedIcon>false</EmbeddedIcon> + <TextColor>-16777216</TextColor> + <Enabled>true</Enabled> + <ActionCode>gr_monthlyTotals.setVisible(false); +gr_Total.setVisible(true);</ActionCode> + </BasicProperties> + <ExtendedProperties> + <Font Name="Dialog" Size="11" Style="0"/> + <LabelText>bekijk jaartotalen</LabelText> + </ExtendedProperties> + </Control> + <Text> + <Id>1762958101475</Id> + <Name><![CDATA[t_monthlyProductionYLabel]]></Name> + <X>-195</X> + <Y>170</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>90.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Export [MWh]]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101477</Id> + <Name><![CDATA[t_monthlyProductionXLabel]]></Name> + <X>-153</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[jan]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101479</Id> + <Name><![CDATA[t_monthlyConsumptionYLabel]]></Name> + <X>-195</X> + <Y>-90</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>90.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[Import [MWh]]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101481</Id> + <Name><![CDATA[t_monthlyProductionXLabel1]]></Name> + <X>-123</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[feb]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101483</Id> + <Name><![CDATA[t_monthlyProductionXLabel2]]></Name> + <X>-93</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[mrt]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101485</Id> + <Name><![CDATA[t_monthlyProductionXLabel3]]></Name> + <X>-3</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[jun]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101487</Id> + <Name><![CDATA[t_monthlyProductionXLabel4]]></Name> + <X>-33</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[mei]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101489</Id> + <Name><![CDATA[t_monthlyProductionXLabel5]]></Name> + <X>-63</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[apr]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101491</Id> + <Name><![CDATA[t_monthlyProductionXLabel6]]></Name> + <X>177</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[dec]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101493</Id> + <Name><![CDATA[t_monthlyProductionXLabel7]]></Name> + <X>57</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[aug]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101495</Id> + <Name><![CDATA[t_monthlyProductionXLabel8]]></Name> + <X>27</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[jul]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101497</Id> + <Name><![CDATA[t_monthlyProductionXLabel9]]></Name> + <X>117</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[okt]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101499</Id> + <Name><![CDATA[t_monthlyProductionXLabel10]]></Name> + <X>147</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[nov]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101501</Id> + <Name><![CDATA[t_monthlyProductionXLabel11]]></Name> + <X>87</X> + <Y>264</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[sep]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101503</Id> + <Name><![CDATA[t_monthlyProductionXLabel12]]></Name> + <X>-153</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[jan]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101505</Id> + <Name><![CDATA[t_monthlyProductionXLabel13]]></Name> + <X>-123</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[feb]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101507</Id> + <Name><![CDATA[t_monthlyProductionXLabel14]]></Name> + <X>-93</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[mrt]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101509</Id> + <Name><![CDATA[t_monthlyProductionXLabel15]]></Name> + <X>-3</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[jun]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101511</Id> + <Name><![CDATA[t_monthlyProductionXLabel16]]></Name> + <X>-33</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[mei]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101513</Id> + <Name><![CDATA[t_monthlyProductionXLabel17]]></Name> + <X>-63</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[apr]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101515</Id> + <Name><![CDATA[t_monthlyProductionXLabel18]]></Name> + <X>177</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[dec]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101517</Id> + <Name><![CDATA[t_monthlyProductionXLabel19]]></Name> + <X>57</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[aug]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101519</Id> + <Name><![CDATA[t_monthlyProductionXLabel20]]></Name> + <X>27</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[jul]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101521</Id> + <Name><![CDATA[t_monthlyProductionXLabel21]]></Name> + <X>117</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[okt]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101523</Id> + <Name><![CDATA[t_monthlyProductionXLabel22]]></Name> + <X>147</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[nov]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + <Text> + <Id>1762958101525</Id> + <Name><![CDATA[t_monthlyProductionXLabel23]]></Name> + <X>87</X> + <Y>-6</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>300.0</Rotation> + <Color>-16777216</Color> + <Text><![CDATA[sep]]></Text> + <Font> + <Name><![CDATA[Calibri]]></Name> + <Size>14</Size> + <Style>0</Style> + </Font> + <Alignment>CENTER</Alignment> + </Text> + </Presentation> + </Group> + <Control Type="Button"> + <EmbeddedIcon>false</EmbeddedIcon> + <Id>1763643190106</Id> + <Name><![CDATA[button_electricityChart]]></Name> + <X>20</X> + <Y>700</Y> + <Label> + <X>0</X> + <Y>-10</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <BasicProperties Width="110" Height="30"> + <EmbeddedIcon>false</EmbeddedIcon> + <TextColor>-16777216</TextColor> + <Enabled>true</Enabled> + <ActionCode>// We were showing the electricity self consumption charts before and will switch to the assets charts +if (v_showingElectricitySelfConsumption) { + button_electricityChart.setText("Zelfconsumptie"); +} +// We were showing the electricity asset charts before and will switch to the self consumption charts +else { + button_electricityChart.setText("Apparaten"); +} + +v_showingElectricitySelfConsumption = !v_showingElectricitySelfConsumption; +f_setCharts();</ActionCode> + </BasicProperties> + <ExtendedProperties> + <Font Name="Dialog" Size="11" Style="0"/> + <LabelText>Apparaten</LabelText> + </ExtendedProperties> + </Control> +</Presentation> diff --git a/_alp/Agents/ChartBars/Variables.xml b/_alp/Agents/ChartBars/Variables.xml new file mode 100644 index 0000000..9daad1d --- /dev/null +++ b/_alp/Agents/ChartBars/Variables.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Variables> + <Variable Class="PlainVariable"> + <Id>1763724887270</Id> + <Name><![CDATA[v_showingElectricitySelfConsumption]]></Name> + <Description><![CDATA[When true the barchart with the selfconsumption of electricity is visible, when false it is showing the electricity use per asset type. Toggled by the button button_electricityChart]]></Description> + <X>50</X> + <Y>1220</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Properties SaveInSnapshot="true" + Constant="false" + AccessType="public" + StaticVariable="false"> + <Type><![CDATA[boolean]]></Type> + <InitialValue Class="CodeValue"> + <Code><![CDATA[true]]></Code> + </InitialValue> + </Properties> + </Variable> +</Variables> diff --git a/_alp/Agents/UI_Results/AOC.UI_Results.xml b/_alp/Agents/UI_Results/AOC.UI_Results.xml index 683b27b..b8cfb3b 100644 --- a/_alp/Agents/UI_Results/AOC.UI_Results.xml +++ b/_alp/Agents/UI_Results/AOC.UI_Results.xml @@ -47,7 +47,7 @@ cm_assetFlowColors.put(OL_AssetFlowCategories.electricHobConsumption_kW, v_elect cm_assetFlowColors.put(OL_AssetFlowCategories.electrolyserElectricityConsumption_kW, v_electricityForHydrogenDemandColor); cm_assetFlowColors.put(OL_AssetFlowCategories.evChargingPower_kW, v_electricityForTransportDemandColor); cm_assetFlowColors.put(OL_AssetFlowCategories.heatPumpElectricityConsumption_kW, v_electricityForHeatDemandColor); -cm_assetFlowColors.put(OL_AssetFlowCategories.ptProductionHeat_kW, cm_productionColors.get(OL_EnergyCarriers.HEAT)); +cm_assetFlowColors.put(OL_AssetFlowCategories.ptProductionHeat_kW, v_ptProductionColor); cm_assetFlowColors.put(OL_AssetFlowCategories.pvProductionElectric_kW, v_PVElectricitySupplyColor); cm_assetFlowColors.put(OL_AssetFlowCategories.V2GPower_kW, v_V2GElectricitySupplyColor); cm_assetFlowColors.put(OL_AssetFlowCategories.windProductionElectric_kW, v_windElectricitySupplyColor); diff --git a/_alp/Agents/UI_Results/Code/Functions.java b/_alp/Agents/UI_Results/Code/Functions.java index 587cfac..b86ed32 100644 --- a/_alp/Agents/UI_Results/Code/Functions.java +++ b/_alp/Agents/UI_Results/Code/Functions.java @@ -10,6 +10,8 @@ gr_chartBatteries_presentation.setVisible(false); gr_chartEconomicKPIs_presentation.setVisible(false); gr_chartGTO_presentation.setVisible(false); +gr_chartBars_presenatation.setVisible(false); + switch (v_selectedChartType) { case PROFIEL: @@ -17,8 +19,9 @@ chartProfielen.f_setCharts(); break; case DIAGRAM: - gr_chartBalans_presentation.setVisible(true); - chartBalans.f_setCharts(); + //gr_chartBalans_presentation.setVisible(true); + gr_chartBars_presenatation.setVisible(true); + chartBars.f_setCharts(); break; case BELASTING: gr_chartNetbelasting_presentation.setVisible(true); diff --git a/_alp/Agents/UI_Results/EmbeddedObjects.xml b/_alp/Agents/UI_Results/EmbeddedObjects.xml index f656fc1..7973212 100644 --- a/_alp/Agents/UI_Results/EmbeddedObjects.xml +++ b/_alp/Agents/UI_Results/EmbeddedObjects.xml @@ -214,6 +214,64 @@ <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType> <QuantityColumn/> </EmbeddedObject> + <EmbeddedObject> + <Id>1714770566604</Id> + <Name><![CDATA[chartBars]]></Name> + <X>820</X> + <Y>60</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <PresentationId>1762961065831</PresentationId> + <ActiveObjectClass> + <PackageName>digital_twin_results</PackageName> + <ClassName>ChartBars</ClassName> + </ActiveObjectClass> + <GenericParameterSubstitute> + <GenericParameterSubstituteReference> + <PackageName>digital_twin_results</PackageName> + <ClassName>ChartBars</ClassName> + <ItemName>1762958101306</ItemName> + </GenericParameterSubstituteReference> + </GenericParameterSubstitute> + <Parameters/> + <ReplicationFlag>false</ReplicationFlag> + <Replication Class="CodeValue"> + <Code><![CDATA[100]]></Code> + </Replication> + <CollectionType>ARRAY_LIST_BASED</CollectionType> + <InEnvironment>true</InEnvironment> + <InitialLocationType>XYZ</InitialLocationType> + <XCode Class="CodeValue"> + <Code><![CDATA[0]]></Code> + </XCode> + <YCode Class="CodeValue"> + <Code><![CDATA[0]]></Code> + </YCode> + <ZCode Class="CodeValue"> + <Code><![CDATA[0]]></Code> + </ZCode> + <ColumnCode Class="CodeValue"> + <Code><![CDATA[0]]></Code> + </ColumnCode> + <RowCode Class="CodeValue"> + <Code><![CDATA[0]]></Code> + </RowCode> + <LocationNameCode Class="CodeValue"> + <Code><![CDATA[""]]></Code> + </LocationNameCode> + <InitializationType>SPECIFIED_NUMBER</InitializationType> + <InitializationDatabaseTableQuery> + <Id>1704197349971</Id> + <TableReference/> + </InitializationDatabaseTableQuery> + <InitializationDatabaseType>ONE_AGENT_PER_DATABASE_RECORD</InitializationDatabaseType> + <QuantityColumn/> + </EmbeddedObject> <EmbeddedObject> <Id>1714770587436</Id> <Name><![CDATA[chartSankey]]></Name> diff --git a/_alp/Agents/UI_Results/Levels/Level.level.xml b/_alp/Agents/UI_Results/Levels/Level.level.xml index 79311ac..44e7095 100644 --- a/_alp/Agents/UI_Results/Levels/Level.level.xml +++ b/_alp/Agents/UI_Results/Levels/Level.level.xml @@ -1331,6 +1331,48 @@ f_showCorrectChart();</ActionCode> </EmbeddedObjectPresentation> </Presentation> </Group> + <Group> + <Id>1762961401722</Id> + <Name><![CDATA[gr_chartBars_presenatation]]></Name> + <X>0</X> + <Y>0</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>false</PresentationFlag> + <ShowLabel>false</ShowLabel> + <Lock>true</Lock> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <Presentation> + <EmbeddedObjectPresentation> + <Id>1762961065831</Id> + <Name><![CDATA[chartBars_presentation]]></Name> + <X>-1130</X> + <Y>-380</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>true</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>false</ShowLabel> + <DrawMode>SHAPE_DRAW_2D3D</DrawMode> + <EmbeddedIcon>false</EmbeddedIcon> + <Z>0</Z> + <Rotation>0.0</Rotation> + <ScaleType>AUTOMATICALLY_CALCULATED</ScaleType> + <GISScaleForRealEmbeddedObjectPresentationSize>1000</GISScaleForRealEmbeddedObjectPresentationSize> + <GISScaleForFixedEmbeddedObjectPresentationSize>1000000000</GISScaleForFixedEmbeddedObjectPresentationSize> + <Latitude>0.0</Latitude> + <Longitude>0.0</Longitude> + </EmbeddedObjectPresentation> + </Presentation> + </Group> <Rectangle> <Id>1725361385851</Id> <Name><![CDATA[rect_ResultsUICode]]></Name> diff --git a/_alp/Agents/UI_Results/Variables.xml b/_alp/Agents/UI_Results/Variables.xml index 8a4232f..11b8dac 100644 --- a/_alp/Agents/UI_Results/Variables.xml +++ b/_alp/Agents/UI_Results/Variables.xml @@ -1496,6 +1496,28 @@ <Type><![CDATA[EnumSet<OL_AssetFlowCategories>]]></Type> </Properties> </Variable> + <Variable Class="PlainVariable"> + <Id>1764848395813</Id> + <Name><![CDATA[v_ptProductionColor]]></Name> + <X>80</X> + <Y>1390</Y> + <Label> + <X>10</X> + <Y>0</Y> + </Label> + <PublicFlag>false</PublicFlag> + <PresentationFlag>true</PresentationFlag> + <ShowLabel>true</ShowLabel> + <Properties SaveInSnapshot="true" + Constant="false" + AccessType="public" + StaticVariable="false"> + <Type><![CDATA[Color]]></Type> + <InitialValue Class="CodeValue"> + <Code><![CDATA[indianRed]]></Code> + </InitialValue> + </Properties> + </Variable> <Variable Class="Parameter"> <Id>1715851154621</Id> <Name><![CDATA[energyModel]]></Name> diff --git a/results_UI.alpx b/results_UI.alpx index 6201e51..8469a9d 100644 --- a/results_UI.alpx +++ b/results_UI.alpx @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <AnyLogicWorkspace splitVersion="1" WorkspaceVersion="1.9" - AnyLogicVersion="8.9.6.202509050523" - AlpVersion="8.9.6"> + AnyLogicVersion="8.9.7.202512010504" + AlpVersion="8.9.7"> <Model> <Id>1704197366547</Id> <Name><![CDATA[results_UI]]></Name> @@ -259,5 +259,6 @@ <Uuid>2216cdd0-177c-5678-9e88-dd8b95312234</Uuid> <Uuid>1737c8c6-b526-4dd8-589e-ee4e205b06f4</Uuid> <Uuid>6a43bef6-8b70-4253-a828-82c3ab399655</Uuid> + <Uuid>0a27038a-0f3a-48bb-b235-4a44066a1402</Uuid> </ConvertersApplied> </AnyLogicWorkspace>