Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F386478
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/apps/test-csvfiles/CMakeLists.txt b/apps/test-csvfiles/CMakeLists.txt
deleted file mode 100644
index 4470e6b..0000000
--- a/apps/test-csvfiles/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-ROSA_add_app(test-csvfiles test-csvfiles.cpp)
-ROSA_add_library_dependencies(test-csvfiles ROSAConfig)
-ROSA_add_library_dependencies(test-csvfiles ROSADeluxe)
-ROSA_add_library_dependencies(test-csvfiles ROSAAgent)
diff --git a/apps/test-csvfiles/test-csvfiles.cpp b/apps/test-csvfiles/test-csvfiles.cpp
deleted file mode 100644
index c2ed884..0000000
--- a/apps/test-csvfiles/test-csvfiles.cpp
+++ /dev/null
@@ -1,128 +0,0 @@
-//===-- apps/sa-ews1/sa-ews1.cpp --------------------------------*- C++ -*-===//
-//
-// The RoSA Framework -- Application SA-EWS1
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file apps/sa-ews1/sa-ews1.cpp
-///
-/// \author David Juhasz (david.juhasz@tuwien.ac.at)
-///
-/// \date 2017-2019
-///
-/// \brief The application SA-EWS1 implements the case study from the paper:
-/// M. Götzinger, N. Taherinejad, A. M. Rahmani, P. Liljeberg, A. Jantsch, and
-/// H. Tenhunen: Enhancing the Early Warning Score System Using Data Confidence
-/// DOI: 10.1007/978-3-319-58877-3_12
-//===----------------------------------------------------------------------===//
-
-#include "rosa/agent/Abstraction.hpp"
-#include "rosa/agent/Confidence.hpp"
-
-#include "rosa/config/version.h"
-
-#include "rosa/deluxe/DeluxeContext.hpp"
-
-#include "rosa/support/csv/CSVReader.hpp"
-#include "rosa/support/csv/CSVWriter.hpp"
-
-#include <fstream>
-
-using namespace rosa;
-using namespace rosa::agent;
-using namespace rosa::deluxe;
-using namespace rosa::terminal;
-
-const std::string AppName = "TEST-CSVFiles";
-
-/// Paths for the CSV files for simulation.
-///
-///@{
-const std::string HRCSVPath = "HR.csv";SOURCES += \
- lib/agent/Abstraction.cpp \
- lib/agent/Confidence.cpp \
- lib/agent/Functionality.cpp \
- lib/agent/History.cpp \
- lib/agent/namespace.cpp
-
-const std::string BRCSVPath = "BR.csv";
-const std::string SpO2CSVPath = "SpO2.csv";
-const std::string BPSysCSVPath = "BPSys.csv";
-const std::string BodyTempCSVPath = "BodyTemp.csv";
-const std::string ScoreCSVPath = "Score.csv";
-///@}
-
-
-int main(void) {
- LOG_INFO_STREAM
- << '\n'
- << library_string() << " -- " << Color::Red << AppName << "app"
- << Color::Default << '\n'
- << Color::Yellow
- << "CSV files are read from and written to the current working directory."
- << Color::Default << '\n';
-
- std::unique_ptr<DeluxeContext> C = DeluxeContext::create(AppName);
-
- //
- // Create deluxe sensors.
- //
- LOG_INFO("Creating sensors.");
-
- //
- // Create functionalities.
- //
- LOG_INFO("Creating Functionalities for Agents.");
-
- //
- // Create low-level deluxe agents with \c createLowLevelAgent.
- //
- LOG_INFO("Creating low-level agents.");
-
-
- //
- // Connect sensors to low-level agents.
- //
- LOG_INFO("Connect sensors to their corresponding low-level agents.");
-
- //
- // Create a high-level deluxe agent.
- //
- LOG_INFO("Create high-level agent.");
-
- //
- // Connect low-level agents to the high-level agent.
- //
- LOG_INFO("Connect low-level agents to the high-level agent.");
-
- //
- // For simulation output, create a logger agent writing the output of the
- // high-level agent into a CSV file.
- //
- LOG_INFO("Create a logger agent.");
-
- // Create CSV writer.
- std::ofstream ScoreCSV(ScoreCSVPath);
- csv::CSVWriter<uint32_t> ScoreWriter(ScoreCSV);
- //
- // Connect the high-level agent to the logger agent.
- //
- LOG_INFO("Connect the high-level agent to the logger agent.");
-
- //
- // Do simulation.
- //
- LOG_INFO("Setting up and performing simulation.");
-
- //
- // Open CSV files and register them for their corresponding sensors.
- //
-
- // Type aliases for iterators.
- //using CSVInt = csv::CSVFlatIterator<int32_t>;
- //using CSVFloat = csv::CSVFlatIterator<float>;
-
- LOG_INFO("Finished application successullfy.");
-
- return 0;
-}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jul 3, 4:18 PM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
157290
Default Alt Text
(4 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment