#include <CommunicationLog.h>
void inet::physicallayer::CommunicationLog::close |
( |
| ) |
|
|
virtual |
void inet::physicallayer::CommunicationLog::open |
( |
| ) |
|
|
virtual |
void inet::physicallayer::CommunicationLog::writeReception |
( |
const IRadio * |
receiver, |
|
|
const IRadioFrame * |
radioFrame |
|
) |
| |
|
virtual |
Referenced by inet::physicallayer::RadioMedium::receivePacket().
47 const ITransmission *transmission = radioFrame->getTransmission();
48 const IReception *reception = radioFrame->getReception();
49 const Radio *receiverRadio = check_and_cast<
const Radio *>(receiver);
50 output <<
"R " << receiverRadio->getFullPath() <<
" " << reception->getReceiver()->getId() <<
" " 51 <<
"M " << check_and_cast<
const RadioFrame *>(radioFrame)->getName() <<
" " << transmission->getId() <<
" " 52 <<
"S " << reception->getStartTime() <<
" " << reception->getStartPosition() <<
" -> " 53 <<
"E " << reception->getEndTime() <<
" " << reception->getEndPosition() << endl;
std::ofstream output
Definition: CommunicationLog.h:33
void inet::physicallayer::CommunicationLog::writeTransmission |
( |
const IRadio * |
transmitter, |
|
|
const IRadioFrame * |
radioFrame |
|
) |
| |
|
virtual |
Referenced by inet::physicallayer::RadioMedium::transmitPacket().
37 const ITransmission *transmission = radioFrame->getTransmission();
38 const Radio *transmitterRadio = check_and_cast<
const Radio *>(transmitter);
39 output <<
"T " << transmitterRadio->getFullPath() <<
" " << transmitterRadio->getId() <<
" " 40 <<
"M " << check_and_cast<
const RadioFrame *>(radioFrame)->getName() <<
" " << transmission->getId() <<
" " 41 <<
"S " << transmission->getStartTime() <<
" " << transmission->getStartPosition() <<
" -> " 42 <<
"E " << transmission->getEndTime() <<
" " << transmission->getEndPosition() << endl;
std::ofstream output
Definition: CommunicationLog.h:33
std::ofstream inet::physicallayer::CommunicationLog::output |
|
protected |
The documentation for this class was generated from the following files: