Child: [569601] (diff)

Download this file

PushBackChannel.h    29 lines (24 with data), 599 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* PushBackChannel.h
*
* Created on: Jan 30, 2015
* Author: imarek
*/
#ifndef PUSHBACKCHANNEL_H_
#define PUSHBACKCHANNEL_H_
#include <omnetpp.h>
//#include <cchannel.h>
#include "simtime.h"
class PushBackChannel : public cIdealChannel
{
private:
// stores the end of the last transmission; used if there is a datarate
simtime_t txfinishtime;
public:
PushBackChannel();
virtual ~PushBackChannel();
virtual bool isBusy() const {return true;}
static PushBackChannel *create(const char *name);
void setBusy(bool busy);
};
#endif /* PUSHBACKCHANNEL_H_ */