Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Types | Public Member Functions | List of all members
ska::cheetah::emulator::Emulator< StreamType, T > Class Template Reference

Emulate UDP stream using a data madel generator. More...

#include <cheetah/emulator/Emulator.h>

Collaboration diagram for ska::cheetah::emulator::Emulator< StreamType, T >:
Collaboration graph

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)
 

Detailed Description

template<typename StreamType, typename T>
class ska::cheetah::emulator::Emulator< StreamType, T >

Emulate UDP stream using a data madel generator.

Definition at line 49 of file Emulator.h.

Constructor & Destructor Documentation

◆ Emulator()

template<typename StreamType , typename T >
template<typename... StreamConstructorArgs>
ska::cheetah::emulator::Emulator< StreamType, T >::Emulator ( Config const &  ,
ModelType model,
StreamConstructorArgs &&  ... 
)

Construct an Emulator utilisiing the provided model.

Parameters
modelis the model to be used, OWNERSHIP IS TRANSFERRED TO THIS CLASs

Member Function Documentation

◆ subscriber_end_point()

template<typename StreamType , typename T >
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.

85 {
86  return _server.end_point();
87 }
Here is the call graph for this function:

The documentation for this class was generated from the following files: