JuliaDynamics / Agents.jl

Agent-based modeling framework in Julia
https://juliadynamics.github.io/Agents.jl/stable/
MIT License
725 stars 117 forks source link

Disable manual assignment of ID in version 6. #861

Closed Datseris closed 1 year ago

Datseris commented 1 year ago

Since we are going to a breaking 6.0 release due to the continuous space SVector change, we might as well ensure that there is no way for the user to manually add id to agents. cc @Tortar and discussions in #445 and #841

Datseris commented 1 year ago

This means we need to deprecate the add_agent!(a::Agent, ....) function, as this is the only way to add user-created agents ot the model. Otherwise add_agent!(model, ...) does the trick.

Tortar commented 1 year ago

I think this would be best! More we have control of the fields used internally the better

Tortar commented 1 year ago

Implemented in #871