Browse Source

dtss: observable names

Eric Ramat 1 year ago
parent
commit
33276cd46b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/artis-star/kernel/dtss/Dynamics.hpp

+ 7 - 0
src/artis-star/kernel/dtss/Dynamics.hpp

@@ -95,6 +95,13 @@ namespace artis {
                 }
             }
 
+            virtual std::string observable_name(unsigned int observable_index) const
+            {
+                assert(_observables.find(observable_index) != _observables.end());
+
+                return _observables.find(observable_index)->second;
+            }
+
             void output_port(common::Port p)
             {
                 _simulator->add_out_port(p);