#include <MemoryX/gui-plugins/SceneEditor/memoryxcontroller/MemoryXController.h>
◆ MemoryXController()
Constructor.
Creates an instance of this class.
◆ ~MemoryXController()
◆ getAllSnapshots()
| std::vector< std::string > getAllSnapshots |
( |
| ) |
|
Returns a list with the names of all existing snapshots.
- Returns
- std::vector<std::string> list of names of all existing snapshots
◆ getController()
◆ getPriorKnowlegdeController()
◆ getWorkingMemoryController()
◆ init()
| void init |
( |
const memoryx::PriorKnowledgeInterfacePrx & | priorKnowledgePrx, |
|
|
const memoryx::WorkingMemoryInterfacePrx & | workingMemoryPrx, |
|
|
const std::string & | workingMemoryUpdatesTopic, |
|
|
const std::string & | objectInstancesSegmentName, |
|
|
const memoryx::LongtermMemoryInterfacePrx & | longtermMemoryPrx, |
|
|
const controller::ControllerPtr & | mainController ) |
Initialisates the MemoryXController.
- Parameters
-
| priorKnowledgePrx | the proxy to the priorknowledge |
| workingMemoryPrx | the proxy to the working memory |
| workingMemoryUpdatesTopic | the name of the topic where changes of the working memory are reported |
| objectInstancesSegmentName | the name of the segment in the working memory where the object instances are stored |
| longtermMemoryPrx | the proxy to the longtermmemory where snapshots are stored |
| mainController | the controller of this programm |
- See also
- controller::Controller
◆ loadSnapshot()
| std::vector< std::string > loadSnapshot |
( |
const std::string & | snapshotName | ) |
|
Loads the content of the snapshot with the given name and add it to the current working memory.
Returns a list with the ids of the added object instances. If there is no snapshot with the given name nothing is added to the working memory.
- Parameters
-
| snapshotName | the name of the snapshot that should be loaded |
- Returns
- std::vector<std::string> the list with the ids of the added object instances
◆ saveObjectsInSnapshot()
| bool saveObjectsInSnapshot |
( |
std::string & | snapshotName, |
|
|
const std::vector< std::string > & | objectIds ) |
Saves all object instances whose ids are given in a snapshot with the given name.
- Parameters
-
| snapshotName | the name of the snapshot |
| objectIds | the list with the ids of the object instances that shold be saved |
- Returns
- bool true when the saving was successful
◆ saveSceneInSnapshot()
| bool saveSceneInSnapshot |
( |
std::string & | snapshotName | ) |
|
Saves the whole content of the working memory in a snapshot with the given name.
If the given name does not start with 'Snapshot_', this prefix will be added.
- Parameters
-
| snapshotName | the name of the snapshot |
- Returns
- bool true when the saving was successful
The documentation for this class was generated from the following files: