RepastHPC  2.3.1
Public Member Functions | Protected Attributes | List of all members
repast::AbstractImporterExporter Class Referenceabstract

Wraps and Importer and an Exporter so that both use commensurate semantics and all imports and exports are balanced. More...

#include <AgentImporterExporter.h>

Inheritance diagram for repast::AbstractImporterExporter:
repast::ImporterExporter_BY_SET repast::ImporterExporter_COUNT_LIST repast::ImporterExporter_COUNT_SET repast::ImporterExporter_LIST repast::ImporterExporter_MAP_int repast::ImporterExporter_SET

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

AbstractImporterimporter
 
AbstractExporterexporter
 

Detailed Description

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.

Member Function Documentation

◆ exchangeAgentStatusUpdates()

void AbstractImporterExporter::exchangeAgentStatusUpdates ( boost::mpi::communicator  comm,
std::vector< std::vector< AgentStatus > * > &  statusUpdates 
)
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.

◆ version()

virtual std::string repast::AbstractImporterExporter::version ( )
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.


The documentation for this class was generated from the following files: