45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/*
|
|
* File: MoversightChannel.cc
|
|
* Author: jgaebler
|
|
* Author: noackrob
|
|
*
|
|
* Created on August 26, 2013, 11:39 AM
|
|
*/
|
|
#include "MoversightChannel.h"
|
|
#include <cmodule.h>
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Override the OMNET callback to determine the transmission
|
|
* finish time for delivered and dropped message reliable.
|
|
*/
|
|
simtime_t
|
|
MoversightChannel::getTransmissionFinishTime() const {
|
|
return cDatarateChannel::getTransmissionFinishTime();
|
|
}
|
|
|
|
/**
|
|
* @brief Initialize the channel
|
|
*/
|
|
void
|
|
MoversightChannel::initialize() {
|
|
cDatarateChannel::initialize();
|
|
}
|
|
|
|
/**
|
|
* @brief OMNET callback, called if a message delivered via that channel.
|
|
* This method encapsulates the channel's functionality.
|
|
* @param msg The message to process
|
|
* @param t The transmission start time
|
|
* @param result The transmission results (propagation delay, transmission duration, discard flag) created by the channel
|
|
* @see cChannel::processMessage for more details
|
|
*/
|
|
void
|
|
MoversightChannel::processMessage(cMessage *msg, simtime_t t, result_t& result) {
|
|
cDatarateChannel::processMessage(msg, t, result);
|
|
}
|
|
}
|
|
}
|