Skip to content

Commit

Permalink
Co2-Werte und Kommentierung.
Browse files Browse the repository at this point in the history
  • Loading branch information
kt86 committed Jun 15, 2024
1 parent 70b9da6 commit 9b5f3f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private static void calculationsAndTableWriting(Table table) {
//Todo: Eigentlich müsste man aus dem folgenden eine Funktion machen können, mit wenigen übergabe-Infos. Weil inhaltlich ist es 3x das gleiche.
{ //Projektanzahl
Table nkvBelow1_count = Table.create("Nu of Projects with BCR < 1 ");
nkvBelow1_count.addColumns(DoubleColumn.create("# All Projects"
nkvBelow1_count.addColumns(DoubleColumn.create("# of all Projects"
, new double[]{tbl.rowCount()
}
));
Expand All @@ -190,7 +190,7 @@ private static void calculationsAndTableWriting(Table table) {

{ // Gesparte Investitionskosten - Barwert der Kosten in Mio EUR
Table nkvBelow1_costs = Table.create("Projects with BCR < 1 -- safed Investment Costs - Barwert (Mio EUR)");
nkvBelow1_costs.addColumns(DoubleColumn.create("Costs of all projects"
nkvBelow1_costs.addColumns(DoubleColumn.create("Investment costs of all projects (Mio EUR)"
, (double) tbl.summarize(Headers.INVCOST_ORIG, sum).apply().get(0,0))
);

Expand All @@ -209,7 +209,7 @@ private static void calculationsAndTableWriting(Table table) {

{ // Gesparte CO2 - Emissionen: Aus Verkehr und Lebenszyklusemissionen (t/a)
Table nkvBelow1_co2safed = Table.create("Projects with BCR < 1 -- safed CO2 emissions -- direct and lifecycle of infrastructure (t/a");
nkvBelow1_co2safed.addColumns(DoubleColumn.create("Costs of all projects"
nkvBelow1_co2safed.addColumns(DoubleColumn.create("CO2 Emissions of all projects (t/a)"
, (double) tbl.summarize(Headers.CO_2_EQUIVALENTS_EMISSIONS, sum).apply().get(0,0))
);

Expand Down

0 comments on commit 9b5f3f2

Please sign in to comment.