|
INET Framework for OMNeT++/OMNEST
|
#include <NarrowbandReceiverBase.h>
Public Member Functions | |
| NarrowbandReceiverBase () | |
| virtual std::ostream & | printToStream (std::ostream &stream, int level, int evFlags=0) const override |
| Prints this object to the provided output stream. More... | |
| virtual const IListening * | createListening (const IRadio *radio, const simtime_t startTime, const simtime_t endTime, const Coord &startPosition, const Coord &endPosition) const override |
| Returns a description of how the receiver is listening on the medium. More... | |
| virtual bool | computeIsReceptionPossible (const IListening *listening, const ITransmission *transmission) const override |
| Returns whether the reception of the provided transmission is possible or not independently of the reception conditions. More... | |
| virtual bool | computeIsReceptionPossible (const IListening *listening, const IReception *reception, IRadioSignal::SignalPart part) const override |
| Returns whether the reception of the provided part is possible or not. More... | |
| virtual const IReceptionDecision * | computeReceptionDecision (const IListening *listening, const IReception *reception, IRadioSignal::SignalPart part, const IInterference *interference, const ISnir *snir) const override |
| Returns the reception decision for the transmission part that specifies whether the reception is possible, attempted, and successful. More... | |
| virtual const IModulation * | getModulation () const |
| virtual void | setModulation (const IModulation *modulation) |
| virtual Hz | getCenterFrequency () const |
| virtual void | setCenterFrequency (Hz centerFrequency) |
| virtual Hz | getBandwidth () const |
| virtual void | setBandwidth (Hz bandwidth) |
Public Member Functions inherited from inet::physicallayer::SnirReceiverBase | |
| virtual double | getSNIRThreshold () const |
| virtual bool | computeIsReceptionSuccessful (const IListening *listening, const IReception *reception, IRadioSignal::SignalPart part, const IInterference *interference, const ISnir *snir) const override |
| Returns whether the reception of the provided part is actually successful or failed by the receiver. More... | |
Public Member Functions inherited from inet::physicallayer::ReceiverBase | |
| ReceiverBase () | |
| virtual W | getMinInterferencePower () const override |
| Returns the minimum interference power below which receptions are to be ignored while computing the interference. More... | |
| virtual W | getMinReceptionPower () const override |
| Returns the minimum reception power below which successful reception is definitely not possible. More... | |
| virtual bool | computeIsReceptionAttempted (const IListening *listening, const IReception *reception, IRadioSignal::SignalPart part, const IInterference *interference) const override |
| Returns whether the reception of the provided part is actually attempted or ignored by the receiver. More... | |
| virtual const IReceptionResult * | computeReceptionResult (const IListening *listening, const IReception *reception, const IInterference *interference, const ISnir *snir, const std::vector< const IReceptionDecision * > *decisions) const override |
| Returns the complete result of the reception process for the provided reception. More... | |
Public Member Functions inherited from inet::physicallayer::IReceiver | |
| virtual const IListeningDecision * | computeListeningDecision (const IListening *listening, const IInterference *interference) const =0 |
| Returns the result of the listening process specifying the reception state of the receiver. More... | |
Public Member Functions inherited from inet::IPrintableObject | |
| virtual | ~IPrintableObject () |
| 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 void | initialize (int stage) override |
Protected Member Functions inherited from inet::physicallayer::ReceiverBase | |
| virtual int | numInitStages () const override |
| virtual W | computeSignalPower (const IListening *listening, const ISnir *snir, const IInterference *interference) const |
| virtual Packet * | computeReceivedPacket (const ISnir *snir, bool isReceptionSuccessful) const |
Protected Attributes | |
| const IModulation * | modulation |
| Hz | centerFrequency |
| Hz | bandwidth |
Protected Attributes inherited from inet::physicallayer::SnirReceiverBase | |
| double | snirThreshold = NaN |
| SnirThresholdMode | snirThresholdMode = SnirThresholdMode::STM_UNDEFINED |
Additional Inherited Members | |
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) } |
Protected Types inherited from inet::physicallayer::SnirReceiverBase | |
| enum | SnirThresholdMode { SnirThresholdMode::STM_UNDEFINED = -1, SnirThresholdMode::STM_MIN, SnirThresholdMode::STM_MEAN } |
| inet::physicallayer::NarrowbandReceiverBase::NarrowbandReceiverBase | ( | ) |
|
overridevirtual |
Returns whether the reception of the provided part is possible or not.
For example, it might check if the reception power is above sensitivity.
This function may be called before the reception actually starts at the receiver, thus it must be purely functional and support optimistic parallel computation.
Reimplemented from inet::physicallayer::ReceiverBase.
Reimplemented in inet::physicallayer::FlatReceiverBase, inet::physicallayer::ApskDimensionalReceiver, inet::physicallayer::ApskScalarReceiver, inet::physicallayer::Ieee80211DimensionalReceiver, and inet::physicallayer::Ieee80211ScalarReceiver.
|
overridevirtual |
Returns whether the reception of the provided transmission is possible or not independently of the reception conditions.
For example, it might check if the carrier frequency and the modulation of the transmission matches how the receiver is listening on the medium.
This function may be called before the reception actually starts at the receiver, thus it must be purely functional and support optimistic parallel computation.
Reimplemented from inet::physicallayer::ReceiverBase.
Reimplemented in inet::physicallayer::ApskDimensionalReceiver, inet::physicallayer::ApskScalarReceiver, inet::physicallayer::Ieee80211DimensionalReceiver, and inet::physicallayer::Ieee80211ScalarReceiver.
Referenced by inet::physicallayer::ApskDimensionalReceiver::computeIsReceptionPossible(), inet::physicallayer::Ieee80211ScalarReceiver::computeIsReceptionPossible(), inet::physicallayer::ApskScalarReceiver::computeIsReceptionPossible(), and inet::physicallayer::FlatReceiverBase::computeIsReceptionPossible().
|
overridevirtual |
Returns the reception decision for the transmission part that specifies whether the reception is possible, attempted, and successful.
This function may be called before the reception actually starts at the receiver, thus it must be purely functional and support optimistic parallel computation.
Reimplemented from inet::physicallayer::ReceiverBase.
|
overridevirtual |
Returns a description of how the receiver is listening on the medium.
Implements inet::physicallayer::IReceiver.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::physicallayer::SnirReceiverBase.
Reimplemented in inet::physicallayer::Ieee80211ReceiverBase, inet::physicallayer::FlatReceiverBase, inet::physicallayer::Ieee802154NarrowbandDimensionalReceiver, and inet::physicallayer::Ieee802154NarrowbandScalarReceiver.
Referenced by inet::physicallayer::FlatReceiverBase::initialize().
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::physicallayer::SnirReceiverBase.
Reimplemented in inet::physicallayer::FlatReceiverBase, inet::physicallayer::Ieee80211ReceiverBase, inet::physicallayer::ApskDimensionalReceiver, inet::physicallayer::ApskScalarReceiver, inet::physicallayer::Ieee80211DimensionalReceiver, inet::physicallayer::Ieee80211ScalarReceiver, inet::physicallayer::Ieee802154NarrowbandDimensionalReceiver, and inet::physicallayer::Ieee802154NarrowbandScalarReceiver.
Referenced by inet::physicallayer::FlatReceiverBase::printToStream().
|
inlinevirtual |
Referenced by inet::physicallayer::NarrowbandRadioBase::setBandwidth().
|
inlinevirtual |
|
inlinevirtual |
Referenced by inet::physicallayer::NarrowbandRadioBase::setModulation().
|
protected |
Referenced by computeIsReceptionPossible(), createListening(), initialize(), and printToStream().
|
protected |
Referenced by computeIsReceptionPossible(), createListening(), initialize(), and printToStream().
|
protected |
Referenced by initialize(), and printToStream().