Filter.cpp
Go to the documentation of this file.
1 #include "Filter.h"
2 
4 {
5  void
6  MemoryFilter::configure(const nlohmann::json& json)
7  {
8  }
9 
10  void
11  SnapshotFilter::configure(const nlohmann::json& json)
12  {
13  }
14 
16  {
17  return stats;
18  }
19 
21  {
22  return "Base_Filter";
23  }
24 
26  {
27  stats.accepted = 0;
28  stats.rejected = 0;
29  stats.additional_time = std::chrono::duration<double>::zero();
30  }
31 
32 
33 } // namespace armarx::armem::server::ltm::processor
armarx::armem::server::ltm::processor
Definition: Converter.cpp:3
armarx::armem::server::ltm::processor::MemoryFilter::configure
virtual void configure(const nlohmann::json &json)
Definition: Filter.cpp:6
armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics::rejected
double rejected
Definition: Filter.h:37
armarx::armem::server::ltm::processor::SnapshotFilter::getFilterStatistics
virtual FilterStatistics getFilterStatistics()
Definition: Filter.cpp:15
armarx::armem::server::ltm::processor::SnapshotFilter::stats
struct armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics stats
armarx::armem::server::ltm::processor::SnapshotFilter::getName
virtual std::string getName()
Definition: Filter.cpp:20
armarx::armem::server::ltm::processor::SnapshotFilter::configure
virtual void configure(const nlohmann::json &json)
Definition: Filter.cpp:11
armarx::armem::server::ltm::processor::SnapshotFilter::resetStatisticsForNewEpisode
void resetStatisticsForNewEpisode()
resetStatisticsForNewEpisode resets the parts of the statistics that are unique to one recording cycl...
Definition: Filter.cpp:25
armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics
Definition: Filter.h:35
armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics::accepted
double accepted
Definition: Filter.h:36
Filter.h
armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics::additional_time
std::chrono::duration< double > additional_time
Definition: Filter.h:38