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

Ordered agent types #33

Open
leo-desbureaux-tellae opened this issue Dec 16, 2021 · 0 comments
Open

Ordered agent types #33

leo-desbureaux-tellae opened this issue Dec 16, 2021 · 0 comments
Labels
io Inputs/Outputs

Comments

@leo-desbureaux-tellae
Copy link
Contributor

Problem exposition

Some agents depend on others to be created, therefore enforcing a specific order in agent initialisation. For instance a vehicle sharing station must be created before its vehicles, or an operator before its staff members.

Today, initialisation (non-users) agents are created following the input's order. If a shared bike appears before its station, an error occurs. This is a problem, since there is no real specification of the required input order. Moreover, having to sort its inputs depending on the agent type is really annoying in itself.

Proposed solution

I think that in most of the current cases, the required ordering exclusively depends on the agent's type. Therefore, specifying an order on the agent types, and then sorting the inputs according to this order could be a solution. Maybe using an OrderedDict for the agent_type_class specification could do the trick, and avoid repetition of the agent types.

@leo-desbureaux-tellae leo-desbureaux-tellae added the enhancement New feature or request label Dec 16, 2021
@leo-desbureaux-tellae leo-desbureaux-tellae added io Inputs/Outputs and removed enhancement New feature or request labels Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io Inputs/Outputs
Projects
None yet
Development

No branches or pull requests

1 participant