OMNeT++ Simulation Library
6.0.3
|
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;}
111 virtual void setDelay(
double d);
116 virtual void setDisabled(
bool d);
129 virtual bool isDisabled()
const override {checkState();
return flags & FL_ISDISABLED;}
137 virtual void initialize()
override;
int simsignal_t
Signal handle.
Definition: clistener.h:27
Channel with propagation delay.
Definition: cdelaychannel.h:29
virtual bool isBusy() const override
Definition: cdelaychannel.h:103
virtual simtime_t calculateDuration(cMessage *msg) const override
Definition: cdelaychannel.h:93
Base class for channels.
Definition: cchannel.h:46
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
virtual simtime_t getTransmissionFinishTime() const override
Definition: cdelaychannel.h:98
Options for the cSimpleModule::send() and cSimpleModule::sendDirect() calls.
Definition: csimplemodule.h:82
virtual simtime_t getDelay() const
Definition: cdelaychannel.h:122
virtual ~cDelayChannel()
Definition: cdelaychannel.h:69
virtual bool isDisabled() const override
Definition: cdelaychannel.h:129
#define SIMTIME_ZERO
Zero simulation time.
Definition: simtime_t.h:70
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition: cmessage.h:95
cDelayChannel(const char *name=nullptr)
Definition: cdelaychannel.h:64
Thrown when the simulation kernel or other components detect a runtime error.
Definition: cexception.h:286
virtual bool isTransmissionChannel() const override
Definition: cdelaychannel.h:83
virtual double getNominalDatarate() const override
Definition: cdelaychannel.h:88