RepastHPC
2.3.1
|
Importer that maintains a set of agents being sent from each sending process. More...
#include <AgentImporterExporter.h>
Public Member Functions | |
virtual void | registerOutgoingRequests (AgentRequest &req) |
Given an agent request (including requests for agents on multiple other processes), makes a record of the agents that are being requested by this process and will therefore be received from other processes. More... | |
virtual void | importedAgentIsRemoved (const AgentId &id) |
Notifies this importer that the agent that it (presumably) has been importing has been removed from the simulation on its home process, and the information for that agent will no longer be sent. | |
virtual void | importedAgentIsMoved (const AgentId &id, int newProcess) |
Notifies this importer that the agent that it (presumably) has been importing from another process has been moved; its information will now be received from its new home process (unless the agent was moved to this process) | |
virtual std::string | getReport () |
Get a printable indication of the data in this object. | |
virtual void | getSetOfAgentsBeingImported (std::set< AgentId > &set) |
virtual void | clear () |
Public Member Functions inherited from repast::AbstractImporter | |
virtual const std::set< int > & | getExportingProcesses () |
Gets a const reference to the set of ints representing the processes that are sending this process agent information. | |
void | importedAgentIsNowLocal (const AgentId &id) |
Some semantic sugar; operationally this is the same as 'importedAgentIsRemoved'. | |
Additional Inherited Members | |
Protected Attributes inherited from repast::AbstractImporter | |
std::set< int > | exportingProcesses |
Importer that maintains a set of agents being sent from each sending process.
Note that because this is a set, an agent may appear in it only once, no matter how many times it is requested. Canceling the agent will remove it from the set, even if the agent was requested multiple duplicate times. If the set for a given process is size zero, no mpi 'receive' will be created; if the set has any elements, an mpi 'receive' will be created.
|
virtual |
Given an agent request (including requests for agents on multiple other processes), makes a record of the agents that are being requested by this process and will therefore be received from other processes.
The record must at a minimum indicate which other processes are sending agent information, but may include other information, such as how many times a particular agent has been requested.
Implements repast::AbstractImporter.