Parcourir la source

Fix abstract classes

Eric Ramat il y a 4 ans
Parent
commit
20711a0a36

+ 16 - 0
src/artis-star/kernel/dtss/Coordinator.hpp

@@ -69,6 +69,22 @@ namespace artis {
 
             const common::GraphManager<Time>& get_graph_manager() const { return _graph_manager; }
 
+            virtual void finish(const typename Time::type& t)
+            {
+#ifndef WITH_TRACE
+                (void) t;
+#endif
+
+#ifdef WITH_TRACE
+                common::Trace<Time>::trace()
+                        << common::TraceElement<Time>(type::get_name(), t,
+                                common::FormalismType::DTSS,
+                                common::FunctionType::FINISH,
+                                common::LevelType::FORMALISM);
+                common::Trace<Time>::trace().flush();
+#endif
+            }
+
             typename Time::type start(const typename Time::type& t)
             {
 

+ 16 - 0
src/artis-star/kernel/pdevs/Coordinator.hpp

@@ -80,6 +80,22 @@ namespace artis {
                 }
             }
 
+            virtual void finish(const typename Time::type& t)
+            {
+#ifndef WITH_TRACE
+                (void) t;
+#endif
+
+#ifdef WITH_TRACE
+                common::Trace<Time>::trace()
+                        << common::TraceElement<Time>(type::get_name(), t,
+                                common::FormalismType::PDEVS,
+                                common::FunctionType::FINISH,
+                                common::LevelType::FORMALISM);
+                common::Trace<Time>::trace().flush();
+#endif
+            }
+
             typename Time::type start(const typename Time::type& t)
             {
 //                When i-message (i, t) at time t

+ 3 - 0
src/artis-star/kernel/pdevs/mpi/ModelProxy.hpp

@@ -77,6 +77,9 @@ namespace artis {
                     return std::string();
                 }
 
+                virtual void finish(const typename Time::type& /* t */)
+                { }
+
                 virtual common::Value observe(const typename Time::type& t,
                         unsigned int index) const
                 {