Go to the documentation of this file.
35 const std::string& exportName,
37 const std::shared_ptr<persistence::RedundantPersistenceStrategy>& persistenceStrategy);
43 void _configure(const nlohmann::json& config) final;
51 const
std::
string& prefix) override;
60 std::shared_ptr<persistence::RedundantPersistenceStrategy> persistenceStrategy)
62 persistenceStrategy_ = persistenceStrategy;
65 std::shared_ptr<persistence::RedundantPersistenceStrategy>
68 return persistenceStrategy_;
76 std::list<std::string> coreSegNames)
final;
83 std::time_t current_date;
85 std::shared_ptr<persistence::RedundantPersistenceStrategy> persistenceStrategy_;
87 std::vector<
std::
string> split(
std::
string str,
char delimiter);
bool hasCoreSegment(const std::string &coreSegmentName) const final
check if core segment exists
std::shared_ptr< CoreSegment > findCoreSegment(const std::string &coreSegmentName) const final
find core segment
void getAndSaveStatistics()
getAndSaveStatistics generates and saves statistics for a LTM recording
void _loadAllReferences(armem::wm::Memory &wmMemory) final
void createPropertyDefinitions(PropertyDefinitionsPtr &defs, const std::string &prefix) override
default parameters. Implementation should use the configuration to configure
void setPersistenceStrategy(std::shared_ptr< persistence::RedundantPersistenceStrategy > persistenceStrategy)
void _resolve(armem::wm::Memory &wmMemory) final
constexpr auto n() noexcept
void _configure(const nlohmann::json &config) final
configuration
Interface functions for the longterm memory classes.
std::shared_ptr< persistence::RedundantPersistenceStrategy > getPersistenceStrategy() const
void _loadOnStartup() final
void _loadLatestNReferences(int n, armem::wm::Memory &wmMemory) final
void _store(const armem::wm::Memory &wmMemory) final
A memory storing data on the hard drive and in mongodb (needs 'armarx memory start' to start the mong...
Client-side working memory.
bool forEachCoreSegment(std::function< void(CoreSegment &)> func) const final
iterate over all core segments of this ltm
void _setMemoryID(const MemoryID &memoryId) final
void _directlyStore(const armem::wm::Memory &wmMemory, bool simulatedVersion) final
const std::string memoryName
void _setExportName(const std::string &memoryName) final