|
INET Framework for OMNeT++/OMNEST
|
#include <NoiseSource.h>
Public Member Functions | |
| virtual | ~NoiseSource () |
| virtual const cGate * | getRadioGate () const override |
| Returns the gate of the radio that receives incoming signals. More... | |
| virtual RadioMode | getRadioMode () const override |
| Returns the current radio mode, This is the same mode as the one emitted with the last radioModeChangedSignal. More... | |
| virtual void | setRadioMode (RadioMode radioMode) override |
| Changes the current radio mode. More... | |
| virtual ReceptionState | getReceptionState () const override |
| Returns the current radio reception state. More... | |
| virtual TransmissionState | getTransmissionState () const override |
| Returns the current radio transmission state. More... | |
| virtual int | getId () const override |
| Returns an identifier for this radio which is globally unique for the whole lifetime of the simulation among all radios. More... | |
| virtual const IAntenna * | getAntenna () const override |
| Returns the antenna used by the transceiver of this radio. More... | |
| virtual const ITransmitter * | getTransmitter () const override |
| Returns the transmitter part of this radio. More... | |
| virtual const IReceiver * | getReceiver () const override |
| Returns the receiver part of this radio. More... | |
| virtual const IRadioMedium * | getMedium () const override |
| Returns the radio medium where this radio is transmitting and receiving radio signals. More... | |
| virtual const ITransmission * | getTransmissionInProgress () const override |
| Returns the ongoing transmission that the transmitter is currently transmitting or nullptr. More... | |
| virtual const ITransmission * | getReceptionInProgress () const override |
| Returns the ongoing reception that the receiver is currently receiving or nullptr. More... | |
| virtual IRadioSignal::SignalPart | getTransmittedSignalPart () const override |
| Returns the signal part of the ongoing transmission that the transmitter is currently transmitting or -1 if no transmission is in progress. More... | |
| virtual IRadioSignal::SignalPart | getReceivedSignalPart () const override |
| Returns the signal part of the ongoing reception that the receiver is currently receiving or -1 if no reception is in progress. More... | |
Public Member Functions inherited from inet::IPhysicalLayer | |
| virtual | ~IPhysicalLayer () |
Public Member Functions inherited from inet::IPrintableObject | |
| virtual | ~IPrintableObject () |
| virtual std::ostream & | printToStream (std::ostream &stream, int level, int evFlags=0) const |
| Prints this object to the provided output stream. More... | |
| virtual std::string | printToString () const |
| virtual std::string | printToString (int level, int evFlags=0) const |
| virtual std::string | getInfoStringRepresentation (int evFlags=0) const |
| virtual std::string | getDetailStringRepresentation (int evFlags=0) const |
| virtual std::string | getDebugStringRepresentation (int evFlags=0) const |
| virtual std::string | getTraceStringRepresentation (int evFlags=0) const |
| virtual std::string | getCompleteStringRepresentation (int evFlags=0) const |
Protected Member Functions | |
| virtual int | numInitStages () const override |
| virtual void | initialize (int stage) override |
| virtual void | handleMessage (cMessage *message) override |
| virtual void | startTransmission () |
| virtual void | endTransmission () |
| virtual void | scheduleSleepTimer () |
| virtual void | scheduleTransmissionTimer (const ITransmission *transmission) |
Protected Attributes | |
| const int | id = nextId++ |
| cGate * | radioIn = nullptr |
| int | mediumModuleId = -1 |
| ModuleRefByPar< IRadioMedium > | medium |
| const IAntenna * | antenna = nullptr |
| const ITransmitter * | transmitter = nullptr |
| cMessage * | transmissionTimer = nullptr |
| cMessage * | sleepTimer = nullptr |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::IRadio | |
| enum | RadioMode { RADIO_MODE_OFF, RADIO_MODE_SLEEP, RADIO_MODE_RECEIVER, RADIO_MODE_TRANSMITTER, RADIO_MODE_TRANSCEIVER, RADIO_MODE_SWITCHING } |
| This enumeration specifies the requested operational mode of the radio. More... | |
| enum | ReceptionState { RECEPTION_STATE_UNDEFINED, RECEPTION_STATE_IDLE, RECEPTION_STATE_BUSY, RECEPTION_STATE_RECEIVING } |
| This enumeration specifies the reception state of the radio. More... | |
| enum | TransmissionState { TRANSMISSION_STATE_UNDEFINED, TRANSMISSION_STATE_IDLE, TRANSMISSION_STATE_TRANSMITTING } |
| This enumeration specifies the transmission state of the radio. More... | |
Public Types inherited from inet::IPrintableObject | |
| enum | PrintLevel { PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO, PRINT_LEVEL_COMPLETE = INT_MIN } |
| enum | PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) } |
Static Public Member Functions inherited from inet::physicallayer::IRadio | |
| static const char * | getRadioModeName (RadioMode radioMode) |
| Returns the name of the provided radio mode. More... | |
| static const char * | getRadioReceptionStateName (ReceptionState receptionState) |
| Returns the name of the provided radio reception state. More... | |
| static const char * | getRadioTransmissionStateName (TransmissionState transmissionState) |
| Returns the name of the provided radio transmission state. More... | |
Static Public Attributes inherited from inet::physicallayer::IRadio | |
| static simsignal_t | radioModeChangedSignal = cComponent::registerSignal("radioModeChanged") |
| This signal is emitted when the radio mode of the radio is changed. More... | |
| static simsignal_t | listeningChangedSignal = cComponent::registerSignal("listeningChanged") |
| This signal is emitted when the radio listening of the radio is changed. More... | |
| static simsignal_t | receptionStateChangedSignal = cComponent::registerSignal("receptionStateChanged") |
| This signal is emitted when the radio reception state of the radio is changed. More... | |
| static simsignal_t | transmissionStateChangedSignal = cComponent::registerSignal("transmissionStateChanged") |
| This signal is emitted when the radio transmission state of the radio is changed. More... | |
| static simsignal_t | receivedSignalPartChangedSignal = cComponent::registerSignal("receivedSignalPartChanged") |
| This signal is emitted when the received part is changed by the radio. More... | |
| static simsignal_t | transmittedSignalPartChangedSignal = cComponent::registerSignal("transmittedSignalPartChanged") |
| This signal is emitted when the transmitted part is changed by the radio. More... | |
Static Protected Attributes inherited from inet::physicallayer::IRadio | |
| static int | nextId = 0 |
| static cEnum * | radioModeEnum = nullptr |
| The enumeration registered for radio mode. More... | |
| static cEnum * | receptionStateEnum = nullptr |
| The enumeration registered for radio reception state. More... | |
| static cEnum * | transmissionStateEnum = nullptr |
| The enumeration registered for radio transmission state. More... | |
|
virtual |
|
protectedvirtual |
Referenced by handleMessage().
|
inlineoverridevirtual |
Returns the antenna used by the transceiver of this radio.
This function never returns nullptr.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns an identifier for this radio which is globally unique for the whole lifetime of the simulation among all radios.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the radio medium where this radio is transmitting and receiving radio signals.
This function never returns nullptr.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the gate of the radio that receives incoming signals.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the current radio mode, This is the same mode as the one emitted with the last radioModeChangedSignal.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the signal part of the ongoing reception that the receiver is currently receiving or -1 if no reception is in progress.
This is the same part as the one emitted with the last receivedPartChangedSignal.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the receiver part of this radio.
This function never returns nullptr.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the ongoing reception that the receiver is currently receiving or nullptr.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the current radio reception state.
This is the same state as the one emitted with the last receptionStateChangedSignal.
Implements inet::physicallayer::IRadio.
|
overridevirtual |
Returns the ongoing transmission that the transmitter is currently transmitting or nullptr.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the current radio transmission state.
This is the same state as the one emitted with the last transmissionStateChangedSignal.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the signal part of the ongoing transmission that the transmitter is currently transmitting or -1 if no transmission is in progress.
This is the same part as the one emitted with the last transmittedPartChangedSignal.
Implements inet::physicallayer::IRadio.
|
inlineoverridevirtual |
Returns the transmitter part of this radio.
This function never returns nullptr.
Implements inet::physicallayer::IRadio.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
protectedvirtual |
Referenced by endTransmission(), and initialize().
|
protectedvirtual |
Referenced by startTransmission().
|
inlineoverridevirtual |
Changes the current radio mode.
The actual change may take zero or more time. The new radio mode will be emitted with a radioModeChangedSignal.
Implements inet::physicallayer::IRadio.
|
protectedvirtual |
Referenced by handleMessage().
|
protected |
Referenced by initialize().
|
protected |
|
protected |
Referenced by initialize(), startTransmission(), and ~NoiseSource().
|
protected |
Referenced by initialize(), and ~NoiseSource().
|
protected |
Referenced by initialize().
|
protected |
Referenced by handleMessage(), initialize(), scheduleSleepTimer(), and ~NoiseSource().
|
protected |
|
protected |
Referenced by initialize().