Channel with propagation delay. More...
#include <cdelaychannel.h>
Public Member Functions | |
Redefined cChannel member functions. | |
virtual bool | isTransmissionChannel () const |
virtual double | getNominalDatarate () const |
virtual simtime_t | calculateDuration (cMessage *msg) const |
virtual simtime_t | getTransmissionFinishTime () const |
virtual bool | isBusy () const |
virtual void | forceTransmissionFinishTime (simtime_t t) |
Setting and getting channel parameters. | |
virtual void | setDelay (double d) |
virtual void | setDisabled (bool d) |
virtual simtime_t | getDelay () const |
virtual bool | isDisabled () const |
Implementation methods | |
virtual void | initialize () |
virtual void | processMessage (cMessage *msg, simtime_t t, result_t &result) |
Protected Member Functions | |
virtual void | handleParameterChange (const char *parname) |
Constructors, destructor | |
| |
cDelayChannel (const char *name=NULL) | |
virtual | ~cDelayChannel () |
static cDelayChannel * | create (const char *name) |
Channel with propagation delay.
cDelayChannel::cDelayChannel | ( | const char * | name = NULL |
) | [inline, explicit] |
Constructor.
This is only for internal purposes, and should not be used when creating channels dynamically; use the create() factory method instead.
static cDelayChannel* cDelayChannel::create | ( | const char * | name | ) | [static] |
Utility function for dynamic channel creation.
Equivalent to cChannelType::getDelayChannelType()->create(name)
.
virtual simtime_t cDelayChannel::getDelay | ( | ) | const [inline, virtual] |
Returns the propagation delay of the channel, in seconds.
This method is equivalent to reading the "delay" parameter, via par("delay").
virtual void cDelayChannel::handleParameterChange | ( | const char * | parname | ) | [protected, virtual] |
virtual bool cDelayChannel::isDisabled | ( | ) | const [inline, virtual] |
Returns whether the channel is disabled.
This method is equivalent to reading the "disabled" parameter, via par("disabled"). A disabled channel discards all messages sent on it.