14 template<
class PersonType>
19 Traveller(
const PersonType& home_person, PersonType* new_person,
const string& home_sim_id,
20 const string& destination_sim_id,
uint home_simulator_index)
21 : m_home_simulator_id(home_sim_id), m_destination_simulator_id(destination_sim_id),
22 m_home_simulator_index(home_simulator_index),
23 m_home_person(home_person), m_new_person(new_person) {}
26 : m_home_simulator_id(other_traveller.m_home_simulator_id),
27 m_destination_simulator_id(other_traveller.m_destination_simulator_id),
28 m_home_simulator_index(other_traveller.m_home_simulator_index),
29 m_home_person(other_traveller.m_home_person), m_new_person(other_traveller.m_new_person) {}
40 return m_home_simulator_id;
44 return m_home_simulator_index;
48 return m_destination_simulator_id;
PersonType * getNewPerson() const
Time Dependent Person DataType.
string m_home_simulator_id
The id of the home simulator.
PersonType m_home_person
The person in the region of origin.
Header file for the Person class.
const PersonType & getHomePerson() const
string getHomeSimulatorId() const
string getDestinationSimulatorId() const
uint getHomeSimulatorIndex() const
Traveller(const Traveller &other_traveller)
Traveller(const PersonType &home_person, PersonType *new_person, const string &home_sim_id, const string &destination_sim_id, uint home_simulator_index)
string m_destination_simulator_id
The id of the destination simulator.
uint m_home_simulator_index
The index of the person in the home simulator.
PersonType * m_new_person
The person when he travelled to the other region.