Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Confusion re deliveryTime for CollectionCarrier. #334

Closed
kt86 opened this issue Nov 25, 2024 · 5 comments
Closed

Confusion re deliveryTime for CollectionCarrier. #334

kt86 opened this issue Nov 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@kt86
Copy link
Contributor

kt86 commented Nov 25, 2024

From @JWJoubert:
We found it a bit counter-intuitive (it took us some time to pinpoint the discrepancy) that for the LspShipment, the “collection” or pick-up time, the code uses the “delivery time”, even though the LspShipment does have a “pickupServiceTime” option.

From my first view on it, this seems to be wrong in the code, so that in

and
builder.setEndTime(startTimeOfLoading + lspShipment.getDeliveryServiceTime());
(?) it should use get**Pickup**...

Just changing the code will cause a lot of test failures (which is somehow, good, showing, that this is tested)

@kt86 kt86 added the bug Something isn't working label Nov 25, 2024
@JWJoubert
Copy link
Collaborator

Just changing the code will cause a lot of test failures (which is somehow, good, showing, that this is tested)

Well done for many tests!

Just changing the code...

Do you mean changing it in this one particular place only? What will be needed? A more thorough walk through the code and tracing its implications? What would your first prize be?

@JWJoubert
Copy link
Collaborator

JWJoubert commented Nov 25, 2024

@kt86, can you please add XanderPENG (GitHub username) to this project? It would be good if he gets up to speed of the developments.

@kt86
Copy link
Contributor Author

kt86 commented Nov 25, 2024

Dear @JWJoubert , I invited him with write permissions.

@kt86
Copy link
Contributor Author

kt86 commented Nov 25, 2024

Do you mean changing it in this one particular place only? What will be needed? A more thorough walk through the code and tracing its implications? What would your first prize be?

I assume, that is the main point, where the transformation from the LspShipment to all the internal logic is done. But of course, it would be a very good idea, to walk a bit more along the code and see, if this assumption is correct.
I also assume, that one sees a lot, when walking through the simple tests - starting with tests consisting only of the CollectionCarrierRessource - and analyze, whether the "new" solution now is the correct one.

((My note was a more quick note for myself and therefore a bit casual/offhand. Sorry for that. I will try to start again getting things formulated a bit better and also add (temporal) comments again in English ))

@kt86
Copy link
Contributor Author

kt86 commented Nov 29, 2024

Moved issue to matsim-org/matsim-libs#3604

@kt86 kt86 closed this as completed Nov 29, 2024
@kt86 kt86 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants