You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: