RepastHPC  2.3.1
Public Member Functions | Public Attributes | Friends | List of all members
repast::SyncStatus_Packet< Content > Class Template Reference

Class that contains information sent in conjunction with synchronizing agent status (agents moving or being removed from the simulation). More...

#include <RepastProcess.h>

Public Member Functions

 SyncStatus_Packet (std::vector< Content > *agentContent, std::map< std::string, std::vector< ProjectionInfoPacket * > > *projectionInfo, std::set< AgentId > *secondaryIds, AgentExporterInfo *exporterInfo)
 
SyncStatus_PacketdeleteExporterInfo ()
 This method includes a very odd construction that arises because the Packet must delete the exporter info on the process to which it has been sent, but it cannot delete the exporter info on the process from which it was sent. More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< Content > * agentContentPtr
 
std::map< std::string, std::vector< ProjectionInfoPacket * > > * projectionInfoPtr
 
std::set< AgentId > * secondaryIdsPtr
 
AgentExporterInfo * exporterInfoPtr
 

Friends

class boost::serialization::access
 

Detailed Description

template<typename Content>
class repast::SyncStatus_Packet< Content >

Class that contains information sent in conjunction with synchronizing agent status (agents moving or being removed from the simulation).

May contain secondary agent information (that is, agents that must newly be created as non-local agents on the receiving process due to obligations of projection contracts and the new existence of the agents being moved to that process).

Note the unusual requirement of the deletion of exporter information.

Member Function Documentation

◆ deleteExporterInfo()

template<typename Content >
SyncStatus_Packet* repast::SyncStatus_Packet< Content >::deleteExporterInfo ( )
inline

This method includes a very odd construction that arises because the Packet must delete the exporter info on the process to which it has been sent, but it cannot delete the exporter info on the process from which it was sent.

The solution is to call this function manually on the receiving process, but not call it on the sending proc.

The pointer returned allows the abbreviation:

delete instance.deleteExporterInfo();


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