RepastHPC
2.3.1
|
Wraps and Importer and an Exporter so that both use commensurate semantics and all imports and exports are balanced. More...
#include <AgentImporterExporter.h>
Public Member Functions | |
AbstractImporterExporter (AbstractImporter *i, AbstractExporter *e) | |
virtual const std::set< int > & | getExportingProcesses () |
virtual void | registerOutgoingRequests (AgentRequest &req) |
virtual void | importedAgentIsRemoved (const AgentId &id) |
virtual void | importedAgentIsMoved (const AgentId &id, int newProcess) |
virtual void | importedAgentIsNowLocal (const AgentId &id) |
virtual void | getSetOfAgentsBeingImported (std::set< AgentId > &set) |
virtual const AbstractExporter::StatusMap * | getOutgoingStatusChanges () |
virtual const std::set< int > & | getProcessesExportedTo () |
virtual void | registerIncomingRequests (std::vector< AgentRequest > &requests) |
virtual void | agentRemoved (const AgentId &id) |
virtual void | agentMoved (const AgentId &id, int process) |
virtual void | incorporateAgentExporterInfo (std::map< int, AgentRequest * > info) |
virtual void | clearStatusMap () |
virtual AgentExporterInfo * | getAgentExportInfo (int destProc) |
virtual void | clearAgentExportInfo () |
virtual const std::map< int, AgentRequest > & | getAgentsToExport () |
virtual void | exchangeAgentStatusUpdates (boost::mpi::communicator comm, std::vector< std::vector< AgentStatus > * > &statusUpdates) |
Exchanges the contents of the 'statusMap' with the destination processes, updating the status (moved or removed) for all agents being exported. More... | |
virtual std::string | version ()=0 |
Returns the version of this AbstractImporterExporter. More... | |
virtual std::string | getReport () |
Gets a printable report of the state of this object. | |
virtual void | clear () |
virtual void | clearExporter () |
virtual void | clearExportToSpecificProc (int rank) |
Protected Attributes | |
AbstractImporter * | importer |
AbstractExporter * | exporter |
Wraps and Importer and an Exporter so that both use commensurate semantics and all imports and exports are balanced.
Most methods are pass-through to the underlying importer or exporter.
|
virtual |
Exchanges the contents of the 'statusMap' with the destination processes, updating the status (moved or removed) for all agents being exported.
Returns this information in the statusUpdates vector.
|
pure virtual |
Returns the version of this AbstractImporterExporter.
The version is a string that indicates the semantic version of the importer and the exporter (e.g. "COUNT_LIST")
Implemented in repast::ImporterExporter_BY_SET, repast::ImporterExporter_MAP_int, repast::ImporterExporter_SET, repast::ImporterExporter_LIST, repast::ImporterExporter_COUNT_SET, and repast::ImporterExporter_COUNT_LIST.