#include <senf/Ext/NetEmu/DVB/EmulatedDVBInterface.hh>
Public Member Functions | |
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... | |
Protected Member Functions | |
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... | |
virtual void | v_initEmulationInterface ()=0 |
Called to initialize the emulated interface. More... | |
virtual void | v_deinitEmulationInterface ()=0 |
Called to shut down the emulated interface. 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 Attributes | |
ModulationParameter::id_t | modulationId_ |
MACAddress | id_ |
std::string | dev_ |
Additional Inherited Members | |
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... | |
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 |
Static Public Attributes inherited from senf::emu::DVBInterface | |
static const boost::uint8_t | linkTypeId = 40 |
Definition at line 30 of file EmulatedDVBInterface.hh.
|
protected |
Definition at line 28 of file EmulatedDVBInterface.cc.
|
protected |
Definition at line 43 of file EmulatedDVBInterface.cc.
void senf::emu::EmulatedDVBInterface::registerFrequency | ( | unsigned | frequenc | ) |
void senf::emu::EmulatedDVBInterface::registerFrequency | ( | unsigned | frequencyLower, |
unsigned | frequencyUpper | ||
) |
|
overrideprotectedvirtual |
Called to get current bandwidth.
Implements senf::emu::WirelessInterface.
|
overrideprotectedvirtual |
Implements senf::emu::WirelessInterface.
|
overrideprotectedvirtual |
Implements senf::emu::Interface.
Definition at line 37 of file EmulatedDVBInterface.cc.
|
overrideprotectedvirtual |
Called to disable interface.
Implements senf::emu::Interface.
|
overrideprotectedvirtual |
Called to enable interface.
Implements senf::emu::Interface.
|
overrideprotectedvirtual |
Return true
if interface is enabled.
Implements senf::emu::Interface.
|
overrideprotectedvirtual |
Called to get current frequency.
Implements senf::emu::WirelessInterface.
|
overrideprotectedvirtual |
Called to set frequency and bandwidth.
Implements senf::emu::WirelessInterface.
|
overrideprotectedvirtual |
Called to set interface mac address.
Implements senf::emu::Interface.
|
overrideprotectedvirtual |
Return the interface mac address.
Implements senf::emu::Interface.
|
overrideprotectedvirtual |
Implements senf::emu::DVBInterface.
Definition at line 61 of file EmulatedDVBInterface.cc.
|
protected |
Definition at line 60 of file EmulatedDVBInterface.hh.
|
protected |
Definition at line 59 of file EmulatedDVBInterface.hh.
|
protected |
Definition at line 58 of file EmulatedDVBInterface.hh.