Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial location of a Vehicle #3440

Closed
sebhoerl opened this issue Aug 30, 2024 · 0 comments · Fixed by #3472
Closed

Initial location of a Vehicle #3440

sebhoerl opened this issue Aug 30, 2024 · 0 comments · Fixed by #3472

Comments

@sebhoerl
Copy link
Contributor

We are playing with some approaches for intermodal travel and would like to have a more consistent way of defining where vehicles are located in the beginning of the simulation. This would allow us to know, for instance, if the vehicle is parked at the agent's home location to be used to get to a P&R station or if it is the other way round: the vehicle is parked at the P&R station so the agent needs to take public transport to pick it up.

Two options come to my mind:

  • Use an attribute in the Attributes of each Vehicle and test for the existence of this attribute in PopulationAgentSource.findVehicleLink. If the attribute is set, skip the current auto-magic.
  • Make the start link an optional (nullable) first-order attribute of a Vehicle (plus with a direct attribute in the vehicles XML). Otherwise the same logic applies.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant