Stride Reference Manual
1.0
|
#include <RemoteSimulatorSender.h>
Public Member Functions | |
RemoteSimulatorSender (const string &m_name, const int mpi_id) | |
~RemoteSimulatorSender ()=default | |
virtual string | getName () const override |
virtual future< SimulatorStatus > | timeStep () override |
virtual void | welcomeHomeTravellers (const pair< vector< uint >, vector< Health >> &travellers) override |
virtual void | hostForeignTravellers (const vector< stride::Simulator::TravellerType > &travellers, uint days, const string &destination_district, const string &destination_facility) override |
Receive travellers travellers: the travellers this simulator has to host. More... | |
virtual void | sendNewTravellers (uint amount, uint days, const string &destination_sim_id, const string &destination_district, const string &destination_facility) override |
Commands to send an amount of travellers to another region The Simulator will have to take action, select travellers, and indicate which travellers he chose amount: the amount of travellers to be sent days: how long these people will be gone destination_sim: a way of communicating with the destination simulator, this must contain all data to achieve communication destination_district: The name of the city in which the airport / facility is located e.g. More... | |
virtual void | returnForeignTravellers () override |
Return foreign people that would return today, signals the Simulator to return today's travellers. More... | |
![]() | |
virtual | ~AsyncSimulator () |
Private Member Functions | |
virtual void | sendNewTravellers (const vector< Simulator::TravellerType > &travellers, uint days, const string &destination_sim_id, const string &destination_district, const string &destination_facility) override |
Send specifically chosen travellers to the destination region This function is used by the Simulator to give the signal to send people. More... | |
virtual void | returnForeignTravellers (const pair< vector< uint >, vector< Health >> &travellers, const string &home_sim_id) override |
Send foreign travellers to the original region This function is used by the Simulator to give the signal to send people. More... | |
void | makeSimulatorStatus () |
void | makeTravellersReturningStruct () |
Definition at line 23 of file RemoteSimulatorSender.h.
|
inline |
Definition at line 83 of file RemoteSimulatorSender.h.
|
default |
|
inlineoverridevirtual |
Implements stride::AsyncSimulator.
Definition at line 86 of file RemoteSimulatorSender.h.
|
inlineoverridevirtual |
Implements stride::AsyncSimulator.
Definition at line 87 of file RemoteSimulatorSender.h.
|
inlineoverridevirtual |
Implements stride::AsyncSimulator.
Definition at line 88 of file RemoteSimulatorSender.h.
|
inlineoverridevirtual |
Receive travellers travellers: the travellers this simulator has to host.
Contains the data needed to identify a person in the home simulator days: The amount of days the travellers will stay in this simulator destination_district: The name of the city in which the airport / facility is located e.g. "Antwerp" destination_facility: The name of the facility / airport e.g. "ANR"
Implements stride::AsyncSimulator.
Definition at line 89 of file RemoteSimulatorSender.h.
|
inlineoverridevirtual |
Commands to send an amount of travellers to another region The Simulator will have to take action, select travellers, and indicate which travellers he chose amount: the amount of travellers to be sent days: how long these people will be gone destination_sim: a way of communicating with the destination simulator, this must contain all data to achieve communication destination_district: The name of the city in which the airport / facility is located e.g.
"Antwerp" destination_facility: The name of the facility / airport e.g. "ANR"
Implements stride::AsyncSimulator.
Definition at line 90 of file RemoteSimulatorSender.h.
|
inlineoverridevirtual |
Return foreign people that would return today, signals the Simulator to return today's travellers.
Implements stride::AsyncSimulator.
Definition at line 91 of file RemoteSimulatorSender.h.
|
inlineoverrideprivatevirtual |
Send specifically chosen travellers to the destination region This function is used by the Simulator to give the signal to send people.
Implements stride::AsyncSimulator.
Definition at line 94 of file RemoteSimulatorSender.h.
|
inlineoverrideprivatevirtual |
Send foreign travellers to the original region This function is used by the Simulator to give the signal to send people.
Implements stride::AsyncSimulator.
Definition at line 95 of file RemoteSimulatorSender.h.
|
inlineprivate |
Number of occurence of each type
Position offset from struct starting address
Create the type
Definition at line 97 of file RemoteSimulatorSender.h.
|
inlineprivate |
Definition at line 98 of file RemoteSimulatorSender.h.