16 #ifndef __OMNETPP_CDELAYCHANNEL_H 17 #define __OMNETPP_CDELAYCHANNEL_H 20 #include "csimulation.h" 37 FL_ISDISABLED = 1 << 10,
38 FL_DELAY_NONZERO = 1 << 11,
45 void checkState()
const {
if (!parametersFinalized())
throw cRuntimeError(
this, E_PARAMSNOTREADY);}
54 virtual void handleParameterChange(
const char *parname)
override;
103 virtual bool isBusy()
const override {
return false;}
116 virtual void setDelay(
double d);
121 virtual void setDisabled(
bool d);
134 virtual bool isDisabled()
const {checkState();
return flags & FL_ISDISABLED;}
142 virtual void initialize()
override;
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition: cmessage.h:95
Thrown when the simulation kernel or other components detect a runtime error.
Definition: cexception.h:283
virtual bool isDisabled() const
Definition: cdelaychannel.h:134
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Channel with propagation delay.
Definition: cdelaychannel.h:29
Allows returning multiple values from the processMessage() method.
Definition: cchannel.h:64
virtual bool isTransmissionChannel() const override
Definition: cdelaychannel.h:83
virtual bool isBusy() const override
Definition: cdelaychannel.h:103
#define SIMTIME_ZERO
Zero simulation time.
Definition: simtime_t.h:73
virtual ~cDelayChannel()
Definition: cdelaychannel.h:69
cDelayChannel(const char *name=nullptr)
Definition: cdelaychannel.h:64
virtual simtime_t calculateDuration(cMessage *msg) const override
Definition: cdelaychannel.h:93
Definition: cabstracthistogram.h:21
virtual void forceTransmissionFinishTime(simtime_t t) override
Definition: cdelaychannel.h:108
int simsignal_t
Signal handle.
Definition: clistener.h:24
virtual simtime_t getDelay() const
Definition: cdelaychannel.h:127
Base class for channels.
Definition: cchannel.h:34
virtual double getNominalDatarate() const override
Definition: cdelaychannel.h:88
virtual simtime_t getTransmissionFinishTime() const override
Definition: cdelaychannel.h:98