RepastHPC
2.3.1
|
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_Packet * | deleteExporterInfo () |
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 |
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.
|
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();