Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
Emulate UDP stream using a data madel generator. More...
#include <cheetah/emulator/Emulator.h>
Public Types | |
typedef generators::TimeFrequencyGenerator< T > | ModelType |
Public Member Functions | |
template<typename... StreamConstructorArgs> | |
Emulator (Config const &, ModelType *model, StreamConstructorArgs &&...) | |
Construct an Emulator utilisiing the provided model. More... | |
int | run () |
void | stop () |
bool | is_running () const |
boost::asio::ip::udp::endpoint const | end_point () const |
the port to where the udp data stream is being directed | |
boost::asio::ip::udp::endpoint const | subscriber_end_point () const |
the subscription service listening address More... | |
ModelType const & | model () const |
return a reference to the model object | |
template<typename... StreamConstructorArgs> | |
Emulator (Config const &config, generators::TimeFrequencyGenerator< T > *model, StreamConstructorArgs &&... args) | |
Emulate UDP stream using a data madel generator.
Definition at line 49 of file Emulator.h.
ska::cheetah::emulator::Emulator< StreamType, T >::Emulator | ( | Config const & | , |
ModelType * | model, | ||
StreamConstructorArgs && | ... | ||
) |
Construct an Emulator utilisiing the provided model.
model | is the model to be used, OWNERSHIP IS TRANSFERRED TO THIS CLASs |
boost::asio::ip::udp::endpoint const ska::cheetah::emulator::Emulator< StreamType, T >::subscriber_end_point | ( | ) | const |
the subscription service listening address
you can subscribe to the data stream by simply connecting (i.e send anything) to the returned address
Definition at line 84 of file Emulator.cpp.