EntityInstance Class Reference

#include <RobotAPI/libraries/armem/server/ltm/EntityInstance.h>

+ Inheritance diagram for EntityInstance:

Public Member Functions

 EntityInstance (const std::string &exportName, const MemoryID &memoryId, const std::shared_ptr< Processors > &filters, const std::shared_ptr< persistence::MemoryPersistenceStrategy > &persistenceStrategy)
 
- Public Member Functions inherited from EntityInstanceBase
Statistics getStatistics () const
 
void loadAllReferences (armem::wm::EntitySnapshot &e) const
 return the full sub-ltm as a wm::EntitySnapshot with only references the ltm may be huge, use with caution More...
 
 MemoryItem (const std::string &exportName, const MemoryID &)
 
 MemoryItem (const std::string &exportName, const MemoryID &, const std::shared_ptr< Processors > &)
 
void resetStatistics ()
 statistics More...
 
void resolve (armem::wm::EntityInstance &e) const
 convert the references of the input into a wm::Memory More...
 
nlohmann::json store (const armem::wm::EntityInstance &e)
 encode the content of a wm::Memory and store More...
 
- Public Member Functions inherited from MemoryItem
virtual std::string getExportName () const
 
MemoryID getMemoryID () const
 
MemoryID id () const
 
 MemoryItem (const std::string &exportName, const MemoryID &)
 
 MemoryItem (const std::string &exportName, const MemoryID &, const std::shared_ptr< Processors > &)
 
std::string name () const
 
void setExportName (const std::string &n)
 
void setMemoryID (const MemoryID &)
 
void setMemoryName (const std::string &memoryName)
 
virtual ~MemoryItem ()=default
 

Protected Member Functions

void _loadAllReferences (armem::wm::EntitySnapshot &wmEntitySnapshot) const override
 
void _resolve (armem::wm::EntityInstance &wmEntitySnapshot) const override
 
nlohmann::json _store (const armem::wm::EntityInstance &wmEntityInstance) override
 
- Protected Member Functions inherited from MemoryItem
virtual void _setExportName (const std::string &)
 
virtual void _setMemoryID (const MemoryID &)
 

Additional Inherited Members

- Static Public Member Functions inherited from EntityInstanceBase
static std::string getLevelName ()
 
- Protected Attributes inherited from EntityInstanceBase
std::recursive_mutex ltm_mutex
 
Statistics statistics
 
- Protected Attributes inherited from MemoryItem
std::shared_ptr< Processorsprocessors
 

Detailed Description

Definition at line 10 of file EntityInstance.h.

Constructor & Destructor Documentation

◆ EntityInstance()

EntityInstance ( const std::string &  exportName,
const MemoryID memoryId,
const std::shared_ptr< Processors > &  filters,
const std::shared_ptr< persistence::MemoryPersistenceStrategy > &  persistenceStrategy 
)

Definition at line 16 of file EntityInstance.cpp.

Member Function Documentation

◆ _loadAllReferences()

void _loadAllReferences ( armem::wm::EntitySnapshot wmEntitySnapshot) const
overrideprotectedvirtual

Implements EntityInstanceBase.

Definition at line 27 of file EntityInstance.cpp.

+ Here is the call graph for this function:

◆ _resolve()

void _resolve ( armem::wm::EntityInstance wmEntitySnapshot) const
overrideprotectedvirtual

Implements EntityInstanceBase.

Definition at line 42 of file EntityInstance.cpp.

+ Here is the call graph for this function:

◆ _store()

nlohmann::json _store ( const armem::wm::EntityInstance wmEntityInstance)
overrideprotectedvirtual

Implements EntityInstanceBase.

Definition at line 144 of file EntityInstance.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: