Files
scandocs/uni/masterarbeit/source/moversight/simutils/channel/DroppingChannel.h
2014-06-30 13:58:10 +02:00

41 lines
870 B
C++

/*
* File: DroppingChannel.h
* Author: noackrob
* Author: jgaebler
*
* Created on August 26, 2013, 11:30 AM
*/
#pragma once
#ifndef DROPPINGCHANNEL_H
#define DROPPINGCHANNEL_H
#include "MoversightChannel.h"
namespace ubeeme {
namespace moversight {
/**
* @class DroppingChannel
* @author Robert Noack
* @author Jan Gäbler
* @brief A channel that drops messages
* @ingroup Moversight
*/
class DroppingChannel : public MoversightChannel {
public:
virtual simtime_t getTransmissionFinishTime() const;
virtual void initialize();
virtual void processMessage(cMessage *msg, simtime_t t, result_t& result);
private:
int startTime;
void updateConnection();
};
}
}
#endif /* DROPPINGCHANNEL_H */