Emulated DVBReceiver Interface. More...
#include <senf/Ext/NetEmu/DVB/EmulatedDVBInterface.hh>
Public Types | |
typedef TypedInterfaceDecorator< EmulatedDVBReceiverInterface, WirelessInterface::Decorator > | Decorator |
Public Types inherited from senf::emu::EmulatedWirelessInterface | |
typedef std::vector< console::ValueRange< unsigned > > | Ranges |
typedef boost::function< double(unsigned nodeId)> | DistanceCallback |
Public Types inherited from senf::emu::WirelessInterface | |
typedef TypedInterfaceDecorator< WirelessInterface, Interface::Decorator > | Decorator |
WirelessInterface base class specific decorator type. More... | |
typedef boost::filter_iterator< frequency_is_whitelisted, Frequencies::const_iterator > | FrequencyIterator |
typedef boost::iterator_range< FrequencyIterator > | FrequenciesRange |
Range of frequency entries. More... | |
Public Types inherited from senf::emu::Interface | |
typedef InterfaceDecorator | Decorator |
Interface base class specific decorator type More... | |
Public Types inherited from senf::emu::EmulatedWirelessReceiver | |
typedef detail::InterfaceAccess< EmulatedWirelessInterface > | emui |
typedef detail::InterfaceAccess< WirelessInterface > | basei |
Public Member Functions | |
EmulatedDVBReceiverInterface () | |
Public Member Functions inherited from senf::emu::EmulatedDVBInterface | |
void | registerFrequency (unsigned frequenc) |
void | registerFrequency (unsigned frequencyLower, unsigned frequencyUpper) |
Public Member Functions inherited from senf::emu::EmulatedWirelessInterface | |
~EmulatedWirelessInterface () | |
void | registerFrequency (unsigned frequency, unsigned bandwidth) |
Register single frequency/bandwidth combination. More... | |
void | registerFrequency (unsigned frequencyLower, unsigned frequencyUpper, unsigned bandwidthLower, unsigned bandwidthUpper) |
Register single frequency/bandwidth range. More... | |
void | registerFrequency (Ranges const &frequencies, Ranges const &bandwidths) |
register frequency/bandwidth ranges More... | |
void | distanceCallback (DistanceCallback cb) |
Public Member Functions inherited from senf::emu::EmulatedInterface | |
virtual | ~EmulatedInterface () |
UDPClientHandle | emulationSocket () const |
Get the emulation socket handle. More... | |
UDPClientHandle::Address | emulationAddress () const |
Get current emulated traffic multicast address. More... | |
void | emulationInterface (std::string const &interface) |
Set interface on which to send/receive emulated traffic. More... | |
std::string const & | emulationInterface () const |
Get interface on which emulated traffic is sent/received. More... | |
std::uint32_t const & | interfaceIndex () const |
Public Member Functions inherited from senf::emu::DVBInterface | |
void | tune (DVBModulationParameter::fec_rate_t fec, DVBModulationParameter::modulation_t mod, DVBModulationParameter::guard_interval_t gi, unsigned freq) |
Public Member Functions inherited from senf::emu::WirelessInterface | |
ModulationParameterIds const & | modulationParameterIds () const |
Get list of valid parameters. More... | |
unsigned | maxNSS () const |
Get max numer of spatial stream;. More... | |
unsigned | frequency () const |
Get current channel frequency. More... | |
unsigned | bandwidth () const |
Get current bandwidth. More... | |
void | frequency (unsigned freq) |
Set channel frequency. More... | |
void | frequency (unsigned freq, unsigned bw) |
Set channel frequency and bandwidth. More... | |
FrequenciesRange | frequencies () const |
Get valid frequency intervals. More... | |
void | whitelistedFrequencyRange (unsigned frequencyLower, unsigned frequencyUpper) |
void | whitelistedChannel (unsigned frequency, unsigned bandwidth) |
void | clearWhitelistedFrequencies () |
void | coverageRange (unsigned distance) |
set the coverage range of the interface in meters More... | |
Public Member Functions inherited from senf::emu::Interface | |
virtual | ~Interface () |
bool | canTransmit () const |
true , if interface is transmit capable More... | |
bool | canReceive () const |
true , if interface is receive capable More... | |
void | enable () |
Enable interface (aka ifconfig up ) More... | |
void | disable () |
Disable interface (aka ifconfig down ) More... | |
bool | enabled () const |
true , if interface enabled More... | |
unsigned | index () const |
Get interface index. More... | |
void | id (MACAddress const &eui) |
Change interface MAC. More... | |
MACAddress const & | id () const |
Get interface MAC Address. More... | |
void | deviceId (InterfaceDeviceId id) |
InterfaceDeviceId | deviceId () const |
std::string const & | device () const |
boost::uint8_t | linkTypeId () const |
std::string | interfaceTypeName () const |
console::DirectoryNode & | consoleDir () const |
Access interface console directory. More... | |
console::DirectoryNode & | statisticsDir () const |
Access the interface statistics directory. More... | |
template<class Stat > | |
senf::Statistics & | registerStatistics (std::string name, Stat &stat) |
Register statistics source. More... | |
boost::optional< senf::Statistics & > | statistic (std::string const &name) |
Get registered statistic. More... | |
void | startStatistics (ClockService::clock_type inverval) |
Start statistics generation. More... | |
Public Member Functions inherited from senf::emu::Receiver | |
virtual | ~Receiver () |
bool | annotationMode () const |
Get interface annotationMode status. More... | |
void | annotationMode (bool a) |
Enable/Disable AnnotationPackets for each frame. More... | |
bool | promisc () const |
Get interface promiscuous status. More... | |
void | promisc (bool v) |
Change interface promiscuous status. More... | |
void | mcAdd (senf::MACAddress const &address) |
void | mcDrop (senf::MACAddress const &address) |
void | flushRxQueues () |
Flush Rx Queues. More... | |
Public Member Functions inherited from senf::emu::EmulatedReceiver | |
void | startStatistics (ClockService::clock_type pollInterval) |
Start statistics generation or change interval. More... | |
void | maxDelay (ClockService::clock_type maxDelay) |
Set maximum allowed packet delay. More... | |
ClockService::clock_type | maxDelay () const |
Get current maxDelay() value. More... | |
unsigned | delayedPackets () const |
Number of packets with delay > maxDelay() More... | |
ClockService::clock_type | maxPacketDelay () const |
Maximum packet delay encountered. More... | |
unsigned | droppedPackets () const |
Number of dropped packets. More... | |
double | lossRate () const |
void | lossRate (double lossRate) |
Additional Inherited Members | |
Static Public Member Functions inherited from senf::emu::Interface | |
static unsigned | nodeId () |
Get unique node id. More... | |
static void | nodeId (unsigned id) |
Set unique node id. More... | |
Public Attributes inherited from senf::emu::Interface | |
boost::signals2::signal< void(Interface &, MACAddress)> | idChangedSignal |
Public Attributes inherited from senf::emu::Receiver | |
ppi::connector::ActiveOutputJack< EthernetPacket > | output |
Static Public Attributes inherited from senf::emu::DVBInterface | |
static const boost::uint8_t | linkTypeId = 40 |
Protected Member Functions inherited from senf::emu::EmulatedDVBInterface | |
EmulatedDVBInterface () | |
void | init () |
virtual void | v_tune (DVBModulationParameter::fec_rate_t fec, DVBModulationParameter::modulation_t mod, DVBModulationParameter::guard_interval_t gi, unsigned frequency) override |
virtual void | v_id (MACAddress const &id) override |
Called to set interface mac address. More... | |
virtual MACAddress | v_id () const override |
Return the interface mac address. More... | |
virtual void | v_enable () override |
Called to enable interface. More... | |
virtual void | v_disable () override |
Called to disable interface. More... | |
virtual bool | v_enabled () const override |
Return true if interface is enabled. More... | |
virtual unsigned | v_frequency () const override |
Called to get current frequency. More... | |
virtual unsigned | v_bandwidth () const override |
Called to get current bandwidth. More... | |
virtual void | v_frequency (unsigned frequency, unsigned bandwidth) override |
Called to set frequency and bandwidth. More... | |
virtual void | v_coverageRange (unsigned distance) override |
std::string const & | v_device () const override |
Protected Member Functions inherited from senf::emu::EmulatedWirelessInterface | |
EmulatedWirelessInterface () | |
void | init () |
unsigned | emulatedFrequency () const |
Get current emulated frequency. More... | |
unsigned | emulatedBandwidth () const |
Get current emulated bandwidth. More... | |
void | emulatedFrequency (unsigned frequency, unsigned bandwidth) |
Set channel frequency/bandwidth. More... | |
void | emulatedCoverageRange (unsigned distance) |
Protected Member Functions inherited from senf::emu::EmulatedInterface | |
EmulatedInterface () | |
void | init () |
void | emulationAddress (UDPClientHandle::Address const &address) |
Change the emulated traffic multicast address. More... | |
void | enableEmulatedInterface () |
Enable the interface. More... | |
void | disableEmulatedInterface () |
Disable the interface. More... | |
bool | emulatedInterfaceEnabled () const |
Get current interface state. More... | |
Protected Member Functions inherited from senf::emu::DVBInterface | |
void | init () |
Protected Member Functions inherited from senf::emu::WirelessInterface | |
WirelessInterface () | |
void | init () |
void | clearRegisteredFrequencies () |
remove all registered frequencies More... | |
void | clearRegisteredModulations () |
remove all registered modulations More... | |
void | registerFrequency (unsigned frequency, unsigned bandwidth) |
register single frequency/bandwidth combination More... | |
void | registerFrequency (unsigned frequencyLower, unsigned frequencyUpper, unsigned bandwidthLower, unsigned bandwidthUpper) |
register frequency/bandwidth range More... | |
void | registerModulation (ModulationParameter::id_t id) |
register modulation configuration More... | |
Protected Member Functions inherited from senf::emu::Interface | |
Interface () | |
void | init () |
Initialize interface. More... | |
Protected Member Functions inherited from senf::emu::WirelessReceiver | |
WirelessReceiver (ppi::connector::ActiveOutput<> &output) | |
WirelessReceiver (ppi::connector::ActiveOutput< EthernetPacket > &output) | |
WirelessReceiver (ppi::connector::ActiveOutputJack<> &output) | |
WirelessReceiver (ppi::connector::ActiveOutputJack< EthernetPacket > &output) | |
void | init () |
Protected Member Functions inherited from senf::emu::EmulatedWirelessReceiver | |
EmulatedWirelessReceiver () | |
void | init () |
virtual bool | v_emulatedWirelessQuality (Packet packet, annotations::Quality &quality) |
Overload to define wireless characteristics. More... | |
Protected Member Functions inherited from senf::emu::EmulatedReceiver | |
EmulatedReceiver () | |
void | init () |
void | initEmulatedReceiver () |
Initialize receiver. More... | |
void | deinitEmulatedReceiver () |
Shut down receiver. More... | |
bool | promiscEmulatedReceiver () const |
Get receiver promiscuous state. More... | |
void | promiscEmulatedReceiver (bool v) |
Set receiver promiscuous state. More... | |
void | annotationModeEmulatedReceiver (bool a) |
Set receiver annotationMode state. More... | |
bool | annotationModeEmulatedReceiver () const |
Get receiver annotationMode state. More... | |
void | mcAddEmulatedReceiver (MACAddress const &address) |
Add multicast MAC address. More... | |
void | mcDropEmulatedReceiver (MACAddress const &address) |
Drops multicast MAC address. More... | |
Protected Attributes inherited from senf::emu::EmulatedDVBInterface | |
ModulationParameter::id_t | modulationId_ |
MACAddress | id_ |
std::string | dev_ |
Protected Attributes inherited from senf::emu::EmulatedWirelessReceiver | |
ppi::connector::ActiveOutputJack | receiverJack |
Protected Attributes inherited from senf::emu::EmulatedReceiver | |
ppi::connector::ActiveOutputJack | receiverJack |
Emulated DVBReceiver Interface.
Definition at line 102 of file EmulatedDVBInterface.hh.
typedef TypedInterfaceDecorator< EmulatedDVBReceiverInterface, WirelessInterface::Decorator> senf::emu::EmulatedDVBReceiverInterface::Decorator |
Definition at line 109 of file EmulatedDVBInterface.hh.
senf::emu::EmulatedDVBReceiverInterface::EmulatedDVBReceiverInterface | ( | ) |
Definition at line 129 of file EmulatedDVBInterface.cc.