Get network metadata for debugging/visualization.
- Returns
- Map of property names to string representations
Subclasses can override to expose internal state:
- Particle count, average velocity
- Modal frequencies, decay times
- Waveguide delay lengths etc.
Reimplemented from MayaFlux::Nodes::Network::NodeNetwork.
Definition at line 570 of file DuctNetwork.cpp.
571{
573
575 metadata[
"length"] = std::to_string(
m_length) +
" m";
576 metadata[
"intervals"] = std::to_string(
m_intervals);
577 metadata[
"courant"] = std::to_string(
m_courant);
578 metadata[
"bandwidth"] = std::to_string(
m_bandwidth) +
" Hz";
581 metadata[
"mouth"] = std::string(
m_mouth->get_type_name());
582 metadata[
"bell"] = std::string(
m_bell->get_type_name());
584 return metadata;
585}
std::atomic< Output > m_output
std::shared_ptr< TerminationOperator > m_mouth
std::shared_ptr< TerminationOperator > m_bell
double m_applied_viscosity
double m_applied_friction
std::mutex m_producer_mutex
virtual std::unordered_map< std::string, std::string > get_metadata() const
Get network metadata for debugging/visualization.
constexpr std::string_view enum_to_string(EnumType value) noexcept
Universal enum to string converter using magic_enum (original case).
References MayaFlux::Reflect::enum_to_string(), MayaFlux::Nodes::Network::NodeNetwork::get_metadata(), m_applied_friction, m_applied_viscosity, m_bandwidth, m_bell, m_courant, m_intervals, m_length, m_mouth, m_output, and m_producer_mutex.