ImportanceFilter.h
Go to the documentation of this file.
1#pragma once
2
3// Base Class
4#include <chrono>
5
6#include "../Filter.h"
7
9{
10
16
18 {
19 public:
20 static const constexpr char* NAME = "SnapshotImportanceFilter";
21 static const constexpr char* PARAM_THRESHOLD = "Threshold";
22 static const constexpr char* PARAM_TYPE = "Type";
23
25
26 virtual bool accept(const armem::wm::EntitySnapshot& e, bool simulatedVersion) override;
27 void configure(const nlohmann::json& json) override;
28
30 std::string getName() override;
31
32 private:
33 double threshold = 1.0;
34 FilterStatistics stats;
35 ImportanceType type;
36
37 bool important(armem::wm::EntityInstance& i);
38 };
39
40} // namespace armarx::armem::server::ltm::processor::filter
virtual bool accept(const armem::wm::EntitySnapshot &e, bool simulatedVersion) override
Client-side working entity instance.
Client-side working memory entity snapshot.