From 92da7dfb629c6b4acce096eb6396815b80c35043 Mon Sep 17 00:00:00 2001 From: Fabian Posch Date: Mon, 29 Jan 2024 15:26:00 -0500 Subject: [PATCH] add constructor with output to sim output artifact --- include/artifact.hpp | 8 ++++++-- src/artifact.cpp | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/artifact.hpp b/include/artifact.hpp index 7e685a6..462facc 100644 --- a/include/artifact.hpp +++ b/include/artifact.hpp @@ -179,8 +179,6 @@ struct testcase_t { std::string top; /** This simulation should be run by multiple noes */ bool parallelizable; - /** Maximum pipeline load factor that should be allowed */ - float max_plf; }; /** @@ -190,6 +188,7 @@ class SimConfigArtifact: public Artifact { public: SimConfigArtifact(); + SimConfigArtifact(bool has_reference) { this->has_reference_ = has_reference; }; /** * @brief Get the content of the artifact @@ -222,6 +221,8 @@ class SimConfigArtifact: public Artifact { */ long get_size() { return testcases.size(); }; + const bool& has_reference = has_reference_; + /** * @brief Can this simulation be handled by multiple nodes * @@ -241,6 +242,7 @@ class SimConfigArtifact: public Artifact { private: + bool has_reference_; std::vector testcases; }; @@ -295,6 +297,8 @@ class SignalListArtifact: public Artifact { class SimOutputArtifact: public Artifact { public: + SimOutputArtifact(const std::vector& sim_log, const std::vector& error_log); + /** * @brief Get the content of the artifact * diff --git a/src/artifact.cpp b/src/artifact.cpp index 5574db8..8a4358f 100644 --- a/src/artifact.cpp +++ b/src/artifact.cpp @@ -46,4 +46,9 @@ void SimOutputArtifact::add_err_output(std::string log_line) { this->sim_err_log.emplace_back(log_line); } +SimOutputArtifact::SimOutputArtifact(const std::vector& sim_log, const std::vector& error_log) { + this->sim_log = sim_log; + this->sim_err_log = error_log; +} + }