repast4py package¶
Submodules¶
- repast4py.context module
SharedContextSharedContext.add()SharedContext.add_projection()SharedContext.add_value_layer()SharedContext.agent()SharedContext.agents()SharedContext.contains_type()SharedContext.get_projection()SharedContext.ghost_agent()SharedContext.move_agents()SharedContext.remove()SharedContext.request_agents()SharedContext.size()SharedContext.synchronize()
- repast4py.core module
AgentAgentManagerAgentManager.add_ghost()AgentManager.add_ghosts_to_projection()AgentManager.add_local()AgentManager.add_req_ghost()AgentManager.delete_ghost()AgentManager.delete_ghosted()AgentManager.delete_local()AgentManager.get_ghost()AgentManager.get_local()AgentManager.is_ghosted_to()AgentManager.is_requested()AgentManager.remove_ghost()AgentManager.remove_local()AgentManager.set_as_ghosted()AgentManager.tag_as_ghosted()AgentManager.untag_as_ghosted()
BoundedProjectionGhostAgentGhostedAgentSharedProjection
- repast4py.checkpoint module
CheckpointCheckpoint.restore()Checkpoint.restore_agents()Checkpoint.restore_network()Checkpoint.restore_random()Checkpoint.restore_schedule()Checkpoint.restore_space()Checkpoint.save()Checkpoint.save_agents()Checkpoint.save_network()Checkpoint.save_random()Checkpoint.save_schedule()Checkpoint.save_space()
DEFAULT_TAGIGNORE_EVT
- repast4py.geometry module
- repast4py.logging module
- repast4py.network module
DirectedSharedNetworkSharedNetworkSharedNetwork.graphSharedNetwork.add()SharedNetwork.add_edge()SharedNetwork.add_nodes()SharedNetwork.clear_edges()SharedNetwork.contains_edge()SharedNetwork.edge_countSharedNetwork.is_directedSharedNetwork.node_countSharedNetwork.num_edges()SharedNetwork.remove()SharedNetwork.remove_edge()SharedNetwork.update_edge()
UndirectedSharedNetworkread_network()write_network()
- repast4py.parameters module
- repast4py.random module
- repast4py.schedule module
- repast4py.space module
BorderTypeCartesianTopologyContinuousPointContinuousSpaceDiscretePointGridOccupancyTypeSharedCSpaceSharedCSpace.add()SharedCSpace.contains()SharedCSpace.get_agent()SharedCSpace.get_agents()SharedCSpace.get_agents_within()SharedCSpace.get_local_bounds()SharedCSpace.get_location()SharedCSpace.get_num_agents()SharedCSpace.get_random_local_pt()SharedCSpace.move()SharedCSpace.nameSharedCSpace.remove()
SharedGrid
- repast4py.util module
- repast4py.value_layer module
Module contents¶
repast4py is an agent-based modeling framework for distributed simulation.
The MPI namespace used throughout repast4py is available as:
from repast4py import MPI
In the default build this is the real mpi4py.MPI. When repast4py is built
single-rank (with the R4PY_NO_MPI environment variable set), it is instead a
pure-Python substitute that requires neither a native MPI library nor mpi4py: in that
case MPI.COMM_WORLD has size 1, rank 0, and all collective operations are
identities / no-ops. Either way, MPI.COMM_WORLD is the communicator passed to
shared projections and contexts.