FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
response.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// Copyright (c) 2006-2008 Marc Brooker and Michael Inggs
4// Copyright (c) 2008-present FERS Contributors (see AUTHORS.md).
5//
6// See the GNU GPLv2 LICENSE file in the FERS project root for more information.
7
8/**
9 * @file response.cpp
10 * @brief Implementation of the Response class
11 */
12
13#include "response.h"
14
15#include "libxml_wrapper.h"
16#include "radar/radar_obj.h"
17#include "radar/transmitter.h"
18#include "signal/radar_signal.h"
19
21
22namespace serial
23{
24 std::string Response::getTransmitterName() const noexcept { return _transmitter->getName(); }
25
26 void Response::addInterpPoint(const InterpPoint& point) { _points.push_back(point); }
27
28 std::vector<ComplexType> Response::renderBinary(RealType& rate, unsigned& size, const RealType fracWinDelay) const
29 {
30 rate = _wave->getRate();
31 return _wave->render(_points, size, fracWinDelay);
32 }
33}
RealType getRate() const noexcept
Gets the sample rate of the radar signal.
std::vector< ComplexType > render(const std::vector< interp::InterpPoint > &points, unsigned &size, RealType fracWinDelay) const
Renders the radar signal.
const std::string & getName() const noexcept
Retrieves the name of the object.
Definition object.h:68
void addInterpPoint(const interp::InterpPoint &point)
Adds an interpolation point to the response.
Definition response.cpp:26
std::string getTransmitterName() const noexcept
Retrieves the name of the associated transmitter.
Definition response.cpp:24
std::vector< ComplexType > renderBinary(RealType &rate, unsigned &size, RealType fracWinDelay) const
Renders the response in binary format.
Definition response.cpp:28
double RealType
Type for real numbers.
Definition config.h:27
Wrapper for managing XML documents and elements using libxml2.
Defines the Radar class and associated functionality.
Classes for handling radar waveforms and signals.
Classes for managing radar signal responses.
Stores data for an interpolation point.
Header file for the Transmitter class in the radar namespace.