This website requires JavaScript.
ed6592c273
Add: multimap<int, ATBTimeBase> TimeBase
Gerhard Hoffmann
2024-01-22 10:23:41 +0100
cc702a413e
Minor: add compile switches -g -O
v1.0.0
Gerhard Hoffmann
2024-01-18 15:05:15 +0100
51a58bfa15
Minor: Add VERSION variable
Gerhard Hoffmann
2024-01-18 15:03:24 +0100
ff314c810f
Add TimeBase to configuration object.
Gerhard Hoffmann
2024-01-18 15:00:42 +0100
80fa2fe0e2
Extend computation of time steps in GetTimeSteps() for the case of dynamic time steps (e.g. for Neuhauser, Galtuer (745)).
Gerhard Hoffmann
2024-01-18 14:57:04 +0100
89e0f2137b
Add handling of pun_duration_min and pun_duration_max
Gerhard Hoffmann
2024-01-18 14:56:20 +0100
f68d8816c0
Add handling of pop_carry_over_time_range_id and pop_time_step_config.
Gerhard Hoffmann
2024-01-18 14:55:16 +0100
7ce93ddd7a
Extend handling of TimeRangeType.
Gerhard Hoffmann
2024-01-18 14:53:57 +0100
7f8ed9165d
Add handling for TimeStepConfig.
Gerhard Hoffmann
2024-01-18 14:53:01 +0100
0b901954aa
Add members m_start and m_timeStepCompensation (used for Neuhauser, Galtuer (745) at the moment). Add several setters/getters.
Gerhard Hoffmann
2024-01-18 14:49:56 +0100
9f4b10bb9a
Add and fill multimap<int, ATBTimeRange> TimeRange; multimap<int, ATBTimeStepConfig> TimeStepConfig; when parsing json-file.
Gerhard Hoffmann
2024-01-18 14:43:08 +0100
2f939d607d
Add include/mobilisis/tariff_timebase.h include/mobilisis/tariff_timestep_config.h
Gerhard Hoffmann
2024-01-18 14:41:54 +0100
283e970be4
Add pun_duration_min and pun_duration_max
Gerhard Hoffmann
2024-01-18 14:41:12 +0100
e14edea07f
Add TimeRangeType and TimeStepConfigType.
Gerhard Hoffmann
2024-01-18 14:39:57 +0100
e520965c6b
Add pop_carry_over_time_range_id and pop_time_step_config
Gerhard Hoffmann
2024-01-18 14:38:13 +0100
6a781f0d3b
Minor: add debug output
Gerhard Hoffmann
2024-01-18 14:37:13 +0100
c357cbbbe0
Add descrption file for tariff time step config
Gerhard Hoffmann
2024-01-18 14:36:28 +0100
b4940e98fe
Add test for NEUHAUSER_BILEXA_GALTUER
Gerhard Hoffmann
2024-01-18 14:34:57 +0100
b8a5803613
Add tariff-file for galtuer.
Gerhard Hoffmann
2024-01-18 14:33:44 +0100
6a79c6c463
Adapt TimeBase description.
Gerhard Hoffmann
2024-01-18 14:32:32 +0100
528b3882a0
renamed
Gerhard Hoffmann
2024-01-17 08:23:19 +0100
7d274f807e
delete useless files
Gerhard Hoffmann
2024-01-17 08:21:08 +0100
e977665649
delete useless files
Gerhard Hoffmann
2024-01-17 08:19:37 +0100
44a94b7007
Minor: add comment
Gerhard Hoffmann
2024-01-16 11:56:54 +0100
7c13d8b88c
Added pun_duration_min and pun_duration_max in case we dont have to pay for a full time range
Gerhard Hoffmann
2024-01-16 11:56:12 +0100
e050a8a82a
Fix: do not divide by durationUnit when calling recursively GetCostFromDuration()
master
Gerhard Hoffmann
2024-01-08 15:48:10 +0100
68ba6808fa
Fix: 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 Hoffmann
2024-01-08 14:06:49 +0100
64bc639eaa
delete (useless)
Gerhard Hoffmann
2024-01-07 16:09:16 +0100
f0312bc8fb
another books
Gerhard Hoffmann
2023-12-22 13:19:06 +0100
37052e97fc
Add some vue books/docs.
Gerhard Hoffmann
2023-12-21 15:49:35 +0100
8cf816c158
Add testcases for naz
Gerhard Hoffmann
2023-12-15 13:28:58 +0100
f1f5ac8900
Add operator << for printing
Gerhard Hoffmann
2023-12-15 13:28:34 +0100
ddded411aa
Add operator << for printing
Gerhard Hoffmann
2023-12-15 13:28:19 +0100
96587229e2
Add operator << for printing
Gerhard Hoffmann
2023-12-15 13:28:04 +0100
3d3794ea4e
Add multimap for dailly ticket.w
Gerhard Hoffmann
2023-12-15 13:27:02 +0100
bb83ae3074
Fix: add a 'break' in swich/case.
Gerhard Hoffmann
2023-12-15 13:25:09 +0100
c598014dd0
Add parsing of
Gerhard Hoffmann
2023-12-15 13:24:29 +0100
ad534eef09
Add 4 new data type for IdentifyJsonMember().
Gerhard Hoffmann
2023-12-15 13:22:49 +0100
5ee73bf804
IdentifyJsonMember(): add 4 new data types: DailyTicket, TimeBase, Customer and TimeRange.
Gerhard Hoffmann
2023-12-15 13:20:42 +0100
ef7fff79c9
draft for tarif in naz
Gerhard Hoffmann
2023-12-15 13:18:12 +0100
ea2dfa144f
Add new menber types: dailly ticket, timebase, time range and customer.
Gerhard Hoffmann
2023-12-12 17:56:26 +0100
f56979a61a
Minor: rename to ATBCustomer.
Gerhard Hoffmann
2023-12-12 17:55:44 +0100
cc07b8f20e
Minor: rename to ATBTimeBase
Gerhard Hoffmann
2023-12-12 17:55:06 +0100
81459f7ab4
Minor: remove 'pragma onc'
Gerhard Hoffmann
2023-12-12 17:50:23 +0100
db7fe35095
Add some new ideas.
Gerhard Hoffmann
2023-12-12 12:14:54 +0100
08e89df5a5
Include 3 new header files.
Gerhard Hoffmann
2023-12-12 12:14:34 +0100
d6324f03a8
Add drafts for 3 new haeder files.
Gerhard Hoffmann
2023-12-12 12:14:14 +0100
2b3ee3f384
Renamed again.
Gerhard Hoffmann
2023-12-12 12:11:32 +0100
08f8f3a9fd
""
Gerhard Hoffmann
2023-12-12 12:10:55 +0100
a80bc7294a
Removed tartiff_csutomer.
Gerhard Hoffmann
2023-12-12 12:00:04 +0100
3a0baf266b
Add first draft.
Gerhard Hoffmann
2023-12-12 11:59:35 +0100
31193336cf
Define daily ticket structure.
Gerhard Hoffmann
2023-12-12 11:53:22 +0100
4fbc2c502b
Header for definition of daily ticket.
Gerhard Hoffmann
2023-12-12 11:36:58 +0100
8d7d175b51
GetDailyTicketDuration(): replace ZellersAlgorithm by qts build in method dayOfWeek().
Gerhard Hoffmann
2023-12-12 11:34:04 +0100
ebb5bad7c5
Minor: replace call to LOG_ERROR() using qCritical().
Gerhard Hoffmann
2023-12-12 11:30:30 +0100
b122206a94
Minor add some json files under OTHER_FILES for documentation.
Gerhard Hoffmann
2023-12-12 11:08:10 +0100
83807a0f99
Add tariff-files for documentation under OTHERFILES.
Gerhard Hoffmann
2023-12-12 11:05:13 +0100
d0e0699906
Add tests for linsinger maschinenbau.
neuhauser-linsinger-maschinenbau
Gerhard Hoffmann
2023-12-12 10:59:49 +0100
3006e64b37
private_GetDurationFromCost():
Gerhard Hoffmann
2023-12-12 10:58:08 +0100
c8218bd7af
private_GetDurationFromCost():
Gerhard Hoffmann
2023-12-12 10:56:58 +0100
ba3dfcd3d6
Minor: private_GetCostFromDuration(): define static variables using helpers moved to namespace Utilities.
Gerhard Hoffmann
2023-12-12 10:55:19 +0100
c51d350618
Minor: Moved
Gerhard Hoffmann
2023-12-12 10:53:10 +0100
a95a39a557
GetCostFromDuration(): 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 Hoffmann
2023-12-12 10:52:16 +0100
67b12f4b33
Private GetCostFromDuration() and GetCostFromDuration() helpers:
Gerhard Hoffmann
2023-12-12 10:49:51 +0100
60002404da
GetDurationFromCost(): 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 Hoffmann
2023-12-12 10:43:16 +0100
d4e03a51dd
Moved uint32_t computeWeekDaysPrice(Configuration const *cfg, PaymentMethod id) const; double computeWeekDaysDurationUnit(Configuration const *cfg, PaymentMethod id) const; to namespace Utilities.
Gerhard Hoffmann
2023-12-12 10:41:21 +0100
723b3530cc
Added helpers GetPriceForStep() and GetStepForPrice() to make source more readable.
Gerhard Hoffmann
2023-12-12 10:40:20 +0100
63f508fb95
Moved
Gerhard Hoffmann
2023-12-12 10:38:31 +0100
6e0a74c8cc
Add helpers GetSteps(), noSpecialDays(), specialDays() and tariffIs24_7() to make the source more readable.
Gerhard Hoffmann
2023-12-12 10:36:22 +0100
d11cffb8bd
Set pop_business_hours when parsing json-tariff-file.
Gerhard Hoffmann
2023-12-12 10:34:39 +0100
15f552a973
Minor: Add header tariff_business_hours.h
Gerhard Hoffmann
2023-12-12 10:33:03 +0100
52ad1c3ba8
Minor: add constructor taking some parameters..
Gerhard Hoffmann
2023-12-12 10:31:54 +0100
43b8a8d3bf
Add member pop_business_hours. Add default constructor.
Gerhard Hoffmann
2023-12-12 10:30:55 +0100
ceef73195d
Add helper structure
Gerhard Hoffmann
2023-12-12 10:26:13 +0100
282a412ef5
IsYearPeriodActive(): return true, even if no YearPeriod is given in tariff-json-file.
Gerhard Hoffmann
2023-12-12 10:23:45 +0100
9dcf7a8f30
Implement added helpers.
Gerhard Hoffmann
2023-12-12 10:22:34 +0100
4187598edf
Add helpers for collecting them in Utilities namespave. BusinessHours getBusinessHours(Configuration const *cfg, PaymentMethod methodId); uint32_t computeWeekDaysPrice(Configuration const *cfg, PaymentMethod id); double computeWeekDaysDurationUnit(Configuration const *cfg, PaymentMethod id);
Gerhard Hoffmann
2023-12-12 10:20:02 +0100
88e92dddb9
Fix: nextTimeStep must be between minParkingTime and maxParkingTime.
neuhauser_korneuburg
Gerhard Hoffmann
2023-12-11 09:00:24 +0100
0f05a1a784
(1) Fix debug output. (2) Use UpDown-Argument for calculation of next tiem step.
Gerhard Hoffmann
2023-12-08 10:16:52 +0100
2d696941a5
Fix: use second.pun_duration instead of second.pun_id Minor: add debug output.
Gerhard Hoffmann
2023-12-08 10:14:48 +0100
5598b02816
Make distinction base on PaymentMethod, not on some other data contained in json-tariff-file.
Gerhard Hoffmann
2023-12-07 17:00:28 +0100
548447af1f
set -O option to calm down compiler because of FORTIFY_SOURCE=2 option
Gerhard Hoffmann
2023-12-07 17:00:03 +0100
b9a7c04db9
Add compute_next_timestep() computing timesteps if PaymentMethod = Steps. Add additional code for computing time steps dynamically if PaymentMethod = Linear.
Gerhard Hoffmann
2023-12-07 16:28:17 +0100
5b8d9c62cc
Add and implement utilities: int getMinimalParkingTime(Configuration const *cfg, PaymentMethod methodId); int getMaximalParkingTime(Configuration const *cfg, PaymentMethod methodId); uint32_t getMinimalParkingPrice(Configuration const *cfg, PaymentMethod methodId); uint32_t getFirstDurationStep(Configuration const *cfg, PaymentMethod methodId);
Gerhard Hoffmann
2023-12-07 16:27:09 +0100
56e2843ddb
Add compute_next_timestep().
Gerhard Hoffmann
2023-12-07 16:26:09 +0100
6b76c4c2dd
Add test cases for neuhauser.
Gerhard Hoffmann
2023-12-06 10:52:35 +0100
54e9a0f86d
Minor: add debug ouput (and commnt it out)
Gerhard Hoffmann
2023-12-06 10:51:46 +0100
d7beb3b41b
Fix: replace 'continue' with 'break' to return first fitting time-range in findNextWorkTimeRange().
Gerhard Hoffmann
2023-12-06 10:49:33 +0100
9d220df52e
Mainly removed debug output. Regression tests with szeged looking good.
Gerhard Hoffmann
2023-12-05 17:31:56 +0100
de7a63bc2a
new test cases for regression tests
Gerhard Hoffmann
2023-12-05 17:30:12 +0100
73b1c1459e
added tariff for testing
Gerhard Hoffmann
2023-12-01 14:26:07 +0100
a599e47a47
Add test cases for szeged.
Gerhard Hoffmann
2023-12-01 14:25:06 +0100
e97ad17b09
removed typo
Gerhard Hoffmann
2023-12-01 14:24:51 +0100
19428ce46c
implemented both cost and duration functions. to be tested
Gerhard Hoffmann
2023-12-01 14:24:15 +0100
4c268e6693
Added draft implementation of private_GetDurationFromCost().
Gerhard Hoffmann
2023-11-28 16:43:03 +0100
cc5c52c1a0
Added private_getDurationFromCost()
Gerhard Hoffmann
2023-11-28 16:42:29 +0100
602ff5f94e
Added State for invalid price
Gerhard Hoffmann
2023-11-28 16:41:27 +0100
b8720bac6c
Added special days.
Gerhard Hoffmann
2023-11-28 16:40:41 +0100
64c005cd70
Implement private_GetCostFromDuration() using a loop and not using recursive calls.
Gerhard Hoffmann
2023-11-28 15:25:37 +0100
9abc165a7c
Implemented computeWeekDaysPrice() and computeWeekDaysDurationUnit()
Gerhard Hoffmann
2023-11-28 15:20:31 +0100