MRC-CSO-SPHSU / UKSEABMLib.jl

MIT License
1 stars 1 forks source link

Making positions Agents.jl-conform #52

Closed AtiyahElsheikh closed 1 year ago

AtiyahElsheikh commented 1 year ago

Agents.jl specify that each agent has a valid space (which can be null or nothing) on which the agents is operating.

The agents components (Person, House, Town) are not conform with Agents.jl. Thinkable adjustments need to consider:

  1. Whether the type House and Town to remain as an agent type or to convert them to space type
  2. If not, to adjust the types definition (to introduce a pos field conform with available spaces in Agents.jl)
  3. If yes, to consider (shallow or dummy) implementation of Agents.jl space type
AtiyahElsheikh commented 1 year ago

A mini demographic example has been established MiniDemographicABM.jl. The example is beneficial in many ways as demonstration of how to

  1. establish the space concept conform with Agents.jl (existing built-in space type has been extended)
  2. exploit existing capabilities of Agents.jl (e.g. data collection using widely used package DataFrames.jl)