4271c0fb31
Fixed compute_next_timestep() for degressive tariff: compute_next_timestep() was actually never called for such a tariff.
GerhardHoffmann2024-08-02 10:50:25 +02:00
4bce854d77
GetDurationFromCost(): Set durationInSecs in case 'pop_accumulate_prices' is not configured in tariff file.
GerhardHoffmann2024-08-01 16:44:06 +02:00
138221759b
GetDurationFromCost(): Minor: removed some debug ouput
GerhardHoffmann2024-08-01 16:43:19 +02:00
9cb7d4aea6
compute_price_for_parking_ticket(): Added handling for prepaid and carry-over.
GerhardHoffmann2024-08-01 16:04:57 +02:00
cde490bab2
compute_next_time_step(): Added handling with pop_plus_steps/pop_minus_steps: '+' usually takes more than one time step. '-' is usually 1.
GerhardHoffmann2024-08-01 16:00:10 +02:00
589d89b73a
Calculator::GetDurationFromCost(): Compute duration from cost for PaymentMethod::Degressive: introduced for Valser Alm (location: Fane).
GerhardHoffmann2024-07-30 15:37:28 +02:00
7536f89d75
compute_duration_for_parking_ticket(): read prepaid-setting from tariff-file, if possible.
GerhardHoffmann2024-07-30 15:32:58 +02:00
9a6b2b195d
get_minimal_parking_price(): compute this price dynamically according to settings in the tariff-file. Introduced for Fuchs (500) for Valser Alm (Location: Fane)
GerhardHoffmann2024-07-30 15:29:47 +02:00
4f2c33cdc2
Minor: added comments and added some debug output.
GerhardHoffmann2024-07-29 11:28:07 +02:00
3cd02296b0
compute_duration_for_parking_ticket(): Fix: pass PERMIT_TYPE explicitly to correct arity of GetDurationFromCost().
GerhardHoffmann2024-07-29 11:25:12 +02:00
f1493f417f
get_maximal_parkingprice(): implement for SHORT_TERM_PARKING_BUS and SHORT_TERM_PARKING_PKW.
GerhardHoffmann2024-07-29 11:24:05 +02:00
356e3be178
Pass PERMIT_TYPE to get_minimal_parkingtime() and get_maximal_parkingtime() to override default parameter value.
GerhardHoffmann2024-07-29 11:22:22 +02:00
31b1dd1690
ResetTimeSteps(): Check paymentOptionIndex for correct value.
GerhardHoffmann2024-07-29 11:20:00 +02:00
84d807930e
Merge branch 'kleipeda-experimental' of /home/siegert/atbfs01entwicklung/Elektronik/PTU/git_bare_repos/libmobilisis-calc into kleipeda-experimental
SiegfriedSiegert2024-07-26 17:35:38 +02:00
cb69d3ca2f
Merge branch 'kleipeda-experimental' of /home/siegert/atbfs01entwicklung/Elektronik/PTU/git_bare_repos/libmobilisis-calc into kleipeda-experimental
SiegfriedSiegert2024-07-26 13:35:56 +02:00
4a2b15d086
Add some debug output into GetDurationForPrice().
GerhardHoffmann2024-07-26 13:34:18 +02:00
63043931c2
Merge branch 'kleipeda-experimental' of /home/siegert/atbfs01entwicklung/Elektronik/PTU/git_bare_repos/libmobilisis-calc into kleipeda-experimental
SiegfriedSiegert2024-07-26 13:12:56 +02:00
8dad8f00e8
GetPriceForTimeStep(): Fix: user default payment option
GerhardHoffmann2024-07-26 13:11:29 +02:00
1ea03f522c
Merge branch 'kleipeda-experimental' of /home/siegert/atbfs01entwicklung/Elektronik/PTU/git_bare_repos/libmobilisis-calc into kleipeda-experimental
SiegfriedSiegert2024-07-26 13:01:17 +02:00
805a732c52
GetPriceForTimeStep(): add prices for computed timesteps. Return maximal price which is still smaller or equal then (input-)price.
GerhardHoffmann2024-07-26 12:53:42 +02:00
ac20a767df
Merge branch 'kleipeda-experimental' of /home/siegert/atbfs01entwicklung/Elektronik/PTU/git_bare_repos/libmobilisis-calc into kleipeda-experimental
2.3.99-2
SiegfriedSiegert2024-07-26 11:08:02 +02:00
2b30e9562f
Recompute time step list (previously is was saved as an optimization)
GerhardHoffmann2024-07-23 12:51:08 +02:00
eb4ef0c3b5
Allow adjustment of the step list by a tolerance of 5 minutes per step
GerhardHoffmann2024-07-23 12:48:50 +02:00
da05d004dd
Introduced 'pun_duration_saved': to be used when time steps have to be re-calculated.
GerhardHoffmann2024-07-23 12:46:44 +02:00
abf4ef0b00
GetPriceForTimeStep(): Use special flag 'pop_accumulate_prices' to add up prices given in the tariff json file.
GerhardHoffmann2024-07-23 11:53:22 +02:00
40440e28d3
Read pop_accumulate_prices and pop_accumulate_durations.
GerhardHoffmann2024-07-22 15:56:04 +02:00
ba8e2786fc
GetTimeSteps(): updated as well for Schnals (505). Still to be tested.
GerhardHoffmann2024-07-22 15:54:36 +02:00
b5804408f4
GetDurationFromCost(): expanded. still to be tested.
GerhardHoffmann2024-07-22 15:53:27 +02:00
f7be0e471a
getDurationFromCost(): call Calculator::GetInstance().GetTimeSteps(cfg, 0, inputDate); for its side-effects. Timesteps will be used in the following calculation.
GerhardHoffmann2024-07-22 15:50:36 +02:00
45694106a7
GetTimeSteps(): added default parameter 'start'; was set inside the funtion.
GerhardHoffmann2024-07-22 15:48:21 +02:00
6d125c65fe
Added flags pop_accumulate_prices pop_accumulate_durations to decide if values in json files should be accumulated or not.
GerhardHoffmann2024-07-22 15:46:45 +02:00