scicom.historicalletters.space

The geographical space for HistoricalLetters.

Classes

Nuts2Eu

Define regions containing senders of letters.

Module Contents

class scicom.historicalletters.space.Nuts2Eu

Bases: mesa_geo.GeoSpace

Define 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:

agents (scicom.historicalletters.agents.RegionAgent)

Return type:

None

add_sender_to_region(agent, region_id)

Add sender to region.

Parameters:
Return type:

None

remove_sender_from_region(agent)

Remove sender from region.

Parameters:

agent (scicom.historicalletters.agents.SenderAgent)

Return type:

None

add_sender(agent, regionID)

Add sender to specific region.

Parameters:
Return type:

None

move_sender(agent, pos, regionID)

Move sender from old to new region.

Parameters:
Return type:

None

__remove_sender(agent)

Remove sender.

Parameters:

agent (scicom.historicalletters.agents.SenderAgent)

Return type:

None