scicom.historicalletters.space
The geographical space for HistoricalLetters.
Classes
Define regions containing senders of letters. |
Module Contents
- class scicom.historicalletters.space.Nuts2Eu
Bases:
mesa_geo.GeoSpaceDefine regions containing senders of letters.
The space model is initialized with all EU NUTS2 regions. The movement of one agent during the model run consitst of the removing the sender from the old region, setting the new sender position and then adding the sender to the new region.
This is modified from a mesa-geo example, here https://github.com/projectmesa/mesa-examples/blob/main/gis/geo_schelling_points/geo_schelling_points/space.py
- _id_region_map
- add_regions(agents)
Add regions to space.
- Parameters:
- Return type:
None
- add_sender_to_region(agent, region_id)
Add sender to region.
- Parameters:
region_id (str)
- Return type:
None
- remove_sender_from_region(agent)
Remove sender from region.
- Parameters:
- Return type:
None
- add_sender(agent, regionID)
Add sender to specific region.
- Parameters:
regionID (str)
- Return type:
None
- move_sender(agent, pos, regionID)
Move sender from old to new region.
- Parameters:
pos (mesa.space.FloatCoordinate)
regionID (str)
- Return type:
None
- __remove_sender(agent)
Remove sender.
- Parameters:
- Return type:
None