1b933c05a6Remove static instance of calculator. Replaced with use of Calculator-singleton-calss.Gerhard Hoffmann2024-01-23 10:55:00 +0100
ac45ebb926GetTimeSteps(): compute time step only once, when calling get_minimal_parkingprice(). Otherwise use timeSteps-member in Calculator.Gerhard Hoffmann2024-01-23 10:53:26 +0100
9af39fa83fTurn Calculator into a singletome and move the list of timesteps inside calculator.Gerhard Hoffmann2024-01-23 10:51:25 +0100
80fa2fe0e2Extend computation of time steps in GetTimeSteps() for the case of dynamic time steps (e.g. for Neuhauser, Galtuer (745)).Gerhard Hoffmann2024-01-18 14:57:04 +0100
89e0f2137bAdd handling of pun_duration_min and pun_duration_maxGerhard Hoffmann2024-01-18 14:56:20 +0100
f68d8816c0Add handling of pop_carry_over_time_range_id and pop_time_step_config.Gerhard Hoffmann2024-01-18 14:55:16 +0100
0b901954aaAdd members m_start and m_timeStepCompensation (used for Neuhauser, Galtuer (745) at the moment). Add several setters/getters.Gerhard Hoffmann2024-01-18 14:49:56 +0100
9f4b10bb9aAdd and fill multimap<int, ATBTimeRange> TimeRange; multimap<int, ATBTimeStepConfig> TimeStepConfig; when parsing json-file.Gerhard Hoffmann2024-01-18 14:43:08 +0100
7c13d8b88cAdded pun_duration_min and pun_duration_max in case we dont have to pay for a full time rangeGerhard Hoffmann2024-01-16 11:56:12 +0100
e050a8a82aFix: do not divide by durationUnit when calling recursively GetCostFromDuration()
master
Gerhard Hoffmann2024-01-08 15:48:10 +0100
68ba6808faFix: rounding issue in GetCostFromDuration(): do not price_per_unit/durationUnit, but set price_per_unit to day_price, and divide end result by durationUnit to work around the rounding problem (for e.g. a full hour price).Gerhard Hoffmann2024-01-08 14:06:49 +0100
ba3dfcd3d6Minor: private_GetCostFromDuration(): define static variables using helpers moved to namespace Utilities.Gerhard Hoffmann2023-12-12 10:55:19 +0100
a95a39a557GetCostFromDuration(): 1: Get payment method from tariff file. 2: Use tariffIs24_7() helper (Tariff for Schoenau is such a case) 3: Add new code for neuhauser/linsinger maschinenbau: Very similar to Schoenau, but here there are extra operating times 6.00-18.00 during the week, 6-12 on Saturday. Check if the current time is inside such time ranges and return associated price.Gerhard Hoffmann2023-12-12 10:52:16 +0100
67b12f4b33Private GetCostFromDuration() and GetCostFromDuration() helpers:Gerhard Hoffmann2023-12-12 10:49:51 +0100
60002404daGetDurationFromCost(): 1: Get payment method from tariff file. 2: Use tariffIs24_7() helper (Tariff for Schoenau is such a case) 3: Add new code for neuhauser/linsinger maschinenbau: Very similar to Schoenau, but here there are extra operating times 6.00-18.00 during the week, 6-12 on Saturday. Check if the current time is inside such time ranges and return associated price.Gerhard Hoffmann2023-12-12 10:43:16 +0100
6e0a74c8ccAdd helpers GetSteps(), noSpecialDays(), specialDays() and tariffIs24_7() to make the source more readable.Gerhard Hoffmann2023-12-12 10:36:22 +0100
d11cffb8bdSet pop_business_hours when parsing json-tariff-file.Gerhard Hoffmann2023-12-12 10:34:39 +0100