|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
Manages timing properties such as frequency, offsets, and synchronization. More...
#include "prototype_timing.h"
Public Member Functions | |
| PrototypeTiming (std::string name, const SimId id=0) noexcept | |
| Constructor for PrototypeTiming. | |
| ~PrototypeTiming ()=default | |
| PrototypeTiming (const PrototypeTiming &)=default | |
| PrototypeTiming (PrototypeTiming &&)=default | |
| PrototypeTiming & | operator= (const PrototypeTiming &)=default |
| PrototypeTiming & | operator= (PrototypeTiming &&)=default |
| void | copyAlphas (std::vector< RealType > &alphas, std::vector< RealType > &weights) const noexcept |
| Copies the alphas and weights vectors. | |
| RealType | getFrequency () const noexcept |
| Gets the current frequency. | |
| std::string | getName () const |
| Gets the name of the timing source. | |
| SimId | getId () const noexcept |
| Gets the unique ID of the timing source. | |
| bool | getSyncOnPulse () const noexcept |
| Checks if synchronization on pulse is enabled. | |
| std::optional< RealType > | getPhaseOffset () const noexcept |
| Gets the phase offset. | |
| std::optional< RealType > | getFreqOffset () const noexcept |
| Gets the frequency offset. | |
| std::optional< RealType > | getRandomFreqOffsetStdev () const noexcept |
| std::optional< RealType > | getRandomPhaseOffsetStdev () const noexcept |
| void | setFrequency (const RealType freq) noexcept |
| Sets the frequency value. | |
| void | setSyncOnPulse () noexcept |
| Enables synchronization on pulse. | |
| void | clearSyncOnPulse () noexcept |
| Disables synchronization on pulse. | |
| void | setAlpha (RealType alpha, RealType weight) noexcept |
| Sets an alpha and weight value. | |
| void | clearNoiseEntries () noexcept |
| Clears all noise entries. | |
| void | setFreqOffset (RealType offset) noexcept |
| Sets the frequency offset. | |
| void | clearFreqOffset () noexcept |
| Clears the frequency offset. | |
| void | setPhaseOffset (RealType offset) noexcept |
| Sets the phase offset. | |
| void | clearPhaseOffset () noexcept |
| Clears the phase offset. | |
| void | setRandomFreqOffsetStdev (RealType stdev) noexcept |
| Sets a random frequency offset standard deviation. | |
| void | setRandomPhaseOffsetStdev (RealType stdev) noexcept |
| Sets a random phase offset standard deviation. | |
| void | clearRandomFreqOffsetStdev () noexcept |
| Clears the random frequency offset standard deviation. | |
| void | clearRandomPhaseOffsetStdev () noexcept |
| Clears the random phase offset standard deviation. | |
| void | setName (std::string name) noexcept |
| Sets the name of the timing source. | |
Manages timing properties such as frequency, offsets, and synchronization.
Definition at line 29 of file prototype_timing.h.
|
explicitnoexcept |
Constructor for PrototypeTiming.
| name | The name of the timing source. |
Definition at line 37 of file prototype_timing.h.
|
default |
|
default |
|
default |
|
noexcept |
Clears the frequency offset.
Definition at line 146 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Clears all noise entries.
Definition at line 33 of file prototype_timing.cpp.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Clears the phase offset.
Definition at line 158 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Clears the random frequency offset standard deviation.
Definition at line 177 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Clears the random phase offset standard deviation.
Definition at line 182 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Disables synchronization on pulse.
Definition at line 121 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Copies the alphas and weights vectors.
| alphas | Reference to the vector where alpha values will be copied. |
| weights | Reference to the vector where weight values will be copied. |
Definition at line 27 of file prototype_timing.cpp.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Gets the frequency offset.
Definition at line 100 of file prototype_timing.h.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Gets the current frequency.
Definition at line 65 of file prototype_timing.h.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Gets the unique ID of the timing source.
Definition at line 79 of file prototype_timing.h.
Referenced by serial::xml_parser_utils::parseReceiver(), serial::xml_parser_utils::parseTransmitter(), core::World::replace(), and timing::to_json().
Here is the caller graph for this function:| std::string timing::PrototypeTiming::getName | ( | ) | const |
Gets the name of the timing source.
Definition at line 72 of file prototype_timing.h.
Referenced by serial::xml_parser_utils::parseReceiver(), serial::xml_parser_utils::parseTransmitter(), core::World::replace(), and timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Gets the phase offset.
Definition at line 93 of file prototype_timing.h.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Definition at line 102 of file prototype_timing.h.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Definition at line 104 of file prototype_timing.h.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
noexcept |
Checks if synchronization on pulse is enabled.
Definition at line 86 of file prototype_timing.h.
Referenced by timing::to_json().
Here is the caller graph for this function:
|
default |
|
default |
Sets an alpha and weight value.
| alpha | The alpha value to be added. |
| weight | The weight value to be added. |
Definition at line 21 of file prototype_timing.cpp.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Sets the frequency offset.
| offset | The frequency offset to be set. |
Definition at line 141 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Sets the frequency value.
| freq | The frequency value to be set. |
Definition at line 111 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Sets the name of the timing source.
| name | The new name. |
Definition at line 189 of file prototype_timing.h.
|
noexcept |
Sets the phase offset.
| offset | The phase offset to be set. |
Definition at line 153 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Sets a random frequency offset standard deviation.
| stdev | The standard deviation for generating the random frequency offset. |
Definition at line 165 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Sets a random phase offset standard deviation.
| stdev | The standard deviation for generating the random phase offset. |
Definition at line 172 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function:
|
noexcept |
Enables synchronization on pulse.
Definition at line 116 of file prototype_timing.h.
Referenced by timing::from_json().
Here is the caller graph for this function: