← Documentation
ADS-IDAC Engine 5.0.0
Communication.cpp
Go to the documentation of this file.
1// Communication.cpp: implementation of the Communication class.
2//
4
5#include "Communication.h"
6#include <boost/serialization/export.hpp>
7#include <boost/archive/binary_oarchive.hpp>
8#include <boost/archive/binary_iarchive.hpp>
9BOOST_CLASS_EXPORT_IMPLEMENT(Communication)
10using namespace std;
11
13// Construction/Destruction
15
17{
24}
25Communication::Communication(int _sender, int _receiver)
26{
28 sender = _sender;
29 intended_receiver = _receiver;
30}
31
33{
34
35}
48void Communication::setSenderAndReceiver(int _sender, int _receiver){
49 sender = _sender;
50 intended_receiver = _receiver;
51}
53 sender = _cp.getSender();
59}
61 fout << sender << ' ' << intended_receiver << ' ' << time_of_communication << ' '
63
64}
68}
void setSenderAndReceiver(int, int)
int getTypeOfCommunication()
void setSender(int)
int type_of_communication
Definition: Communication.h:56
void setTypeOfCommunication(int)
int getTypeOfPauseActivity()
void setCommunicationPriority(int)
virtual ~Communication()
double getTimeOfCommunication()
void saveCommunicationToFile(std::ofstream &)
double time_of_communication
Definition: Communication.h:55
int type_of_pause_activity
Definition: Communication.h:58
void setIntendedReceiver(int)
int getIntendedReceiver()
void setTimeOfCommunication(double)
void retrieveCommunicationFromFile(std::ifstream &)
void setTypeOfPauseActivity(int)
int communication_priority
Definition: Communication.h:57
void copyCommunication(Communication &)
int getCommunicationPriority()
struct @0 r5pars_
constexpr int None
Definition: SimConstants.h:75