RepastHPC  2.3.1
Public Member Functions | List of all members
repast::Exporter_SET Class Reference

Maintains a set of agents being exported for each receiving process. More...

#include <AgentImporterExporter.h>

Inheritance diagram for repast::Exporter_SET:
repast::AbstractExporter

Public Member Functions

virtual void registerIncomingRequests (std::vector< AgentRequest > &requests)
 Makes a record of the data receives (in the form of a vector of AgentRequests) so that the agents' data can be sent to the requesting processes.
 
 Exporter_SET (StatusMap *outgoingStatusMap, AgentExporterData *outgoingAgentExporterInfo)
 
virtual std::string getReport ()
 Gets a printable report of the state of this object.
 
- Public Member Functions inherited from repast::AbstractExporter
virtual void incorporateAgentExporterInfo (std::map< int, AgentRequest * > info)
 The set of information received here comprises the information that some other process was using to export information about agents that are now being moved to this process. More...
 
virtual void agentRemoved (const AgentId &id)
 1) Removes the agent export information from this process 2) Updates the outgoing status change buffer to include the status change for this agent to all procs to which this agent was being exported (except if one of these was the proc to which the agent is now moving; this is omitted)
 
virtual void agentMoved (const AgentId &id, int process)
 1) Removes the agent export information from this process 2) Places a copy of the agent export information into the outgoing buffer 3) Updates the outgoing status change buffer to include the status change for this agent to all procs to which this agent was being exported (except if one of these was the proc to which the agent is now moving; this is omitted)
 
virtual const std::set< int > & getProcessesExportedTo ()
 Gets the list of processes this exporter is sending information to.
 
AgentExporterInfo * getAgentExportInfo (int destProc)
 Gets the export information that has been placed into the 'outgoing agent export information' buffer because agents that were being exported are being sent to a new process, for the specified process.
 
const StatusMap * getOutgoingStatusChanges ()
 Gets the set of status changes for the exported agents.
 
void clearAgentExportInfo ()
 Clears the outgoing agent export information buffer; should be called after the information is sent.
 
void clearStatusMap ()
 Clears the outgoing status information buffer; should be called after the information is sent.
 
virtual const std::map< int, AgentRequest > & getAgentsToExport ()
 Gets the list of agents being exported by this exported, as a map by ints representing the processes to which information will be sent.
 
 AbstractExporter (StatusMap *outgoingStatusMap, AgentExporterData *outgoingAgentExporterInfo)
 
virtual void clear ()
 
virtual void clearExportToSpecificProc (int rank)
 

Additional Inherited Members

- Public Types inherited from repast::AbstractExporter
typedef std::map< int, std::set< AgentStatus > > StatusMap
 
- Protected Attributes inherited from repast::AbstractExporter
StatusMap * outgoingStatusChanges
 
AgentExporterDataoutgoingAgentExporterInformation
 
std::set< int > processesExportedTo
 
std::map< int, AgentRequestexportedMap
 

Detailed Description

Maintains a set of agents being exported for each receiving process.

An agent that is requested more than once will appear in this set only once; canceling an agent just once removes it from this set. A 'send' will be created for a receiving process only if that process has entries in the list.


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