32 #include <MemoryX/interface/components/CommonStorageInterface.h>
33 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
34 #include <MemoryX/interface/components/PriorKnowledgeInterface.h>
35 #include <MemoryX/interface/workingmemory/AbstractWorkingMemoryInterface.h>
46 defineOptionalProperty<bool>(
"UsePriorMemory",
true,
"Switch prior knowledge on/off.");
48 defineOptionalProperty<std::string>(
49 "PriorMemoryName",
"PriorKnowledge",
"Name of PriorKnowledge Ice component");
51 defineOptionalProperty<bool>(
52 "UseLongtermMemory",
true,
"Switch longterm memory on/off.");
54 defineOptionalProperty<std::string>(
55 "LongtermMemoryName",
"LongtermMemory",
"Name of LongtermMemory Ice component");
57 defineOptionalProperty<bool>(
60 "Publish scene updates (ObjectCreated/Updated/Removed) on IceStrom topic");
62 defineOptionalProperty<std::string>(
64 "WorkingMemoryUpdates",
65 "Name of IceStrom topic to publish scene updates on");
67 defineOptionalProperty<std::string>(
70 "Name of Snapshot that should be loaded on start up. Leave empty for none.");
76 WorkingMemoryUpdaterBasePrx
proxy;
83 virtual public AbstractWorkingMemoryInterface,
92 return "AbstractWorkingMemory";
95 void onInitComponent()
override;
96 void onConnectComponent()
override;
113 return Component::getObjectAdapter();
117 AbstractMemorySegmentPrx addSegment(
const std::string& segmentName,
118 const AbstractMemorySegmentPtr& segment,
119 const ::Ice::Current& = Ice::emptyCurrent)
override;
121 WorkingMemoryUpdaterBasePrx
122 registerUpdater(
const std::string& updaterName,
123 const WorkingMemoryUpdaterBasePtr& updater,
124 const ::Ice::Current& = Ice::emptyCurrent)
override;
125 WorkingMemoryUpdaterBasePrx getUpdater(
const std::string& updaterName,
126 const ::Ice::Current& = Ice::emptyCurrent)
override;
127 void unregisterUpdater(
const std::string& updaterName,
128 const ::Ice::Current& = Ice::emptyCurrent)
override;
137 return updatesTopicName;
140 AbstractMemorySegmentPrx
144 return addSegment(segmentName, segment);
148 void clear(const ::Ice::Current& = Ice::emptyCurrent)
override;
149 void print(const ::Ice::Current& = Ice::emptyCurrent)
const override;
153 virtual void onInitWorkingMemory() = 0;
154 virtual void onConnectWorkingMemory() = 0;