MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_metadata()

std::unordered_map< std::string, std::string > MayaFlux::Nodes::Network::DuctNetwork::get_metadata ( ) const
nodiscardoverridevirtual

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{
572 auto metadata = NodeNetwork::get_metadata();
573
574 std::scoped_lock lock(m_producer_mutex);
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";
579 metadata["friction"] = std::to_string(m_applied_friction) + " 1/s";
580 metadata["viscosity"] = std::to_string(m_applied_viscosity) + " m^2/s";
581 metadata["mouth"] = std::string(m_mouth->get_type_name());
582 metadata["bell"] = std::string(m_bell->get_type_name());
583 metadata["output"] = std::string(Reflect::enum_to_string(m_output.load(std::memory_order_relaxed)));
584 return metadata;
585}
std::shared_ptr< TerminationOperator > m_mouth
std::shared_ptr< TerminationOperator > m_bell
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.

Here is the call graph for this function: