28 #include <RobotAPI/interface/core/RobotState.h>
30 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
31 #include <MemoryX/interface/components/WorkingMemoryInterface.h>
42 defineOptionalProperty<std::string>(
43 "TestToRun",
"UpdateNotifications",
"Name of test that should be executed");
44 defineOptionalProperty<std::string>(
45 "SnapshotName",
"",
"Name of WM snapshot to load (if TestToRun=SnapshotLoad)");
46 defineOptionalProperty<std::string>(
47 "CommonPlacesSnapshot",
49 "Name of secondary WM snapshot to load (if TestToRun=CommonPlaces)");
55 virtual public WorkingMemoryListenerInterface
72 return "WorkingMemoryExample";
75 void onInitComponent()
override;
76 void onConnectComponent()
override;
78 void reportEntityCreated(
const std::string& segmentName,
79 const ::memoryx::EntityBasePtr& entity,
80 const ::Ice::Current& = Ice::emptyCurrent)
override;
81 void reportEntityUpdated(
const std::string& segmentName,
82 const ::memoryx::EntityBasePtr& entityOld,
83 const ::memoryx::EntityBasePtr& entityNew,
84 const ::Ice::Current& = Ice::emptyCurrent)
override;
85 void reportEntityRemoved(
const std::string& segmentName,
86 const ::memoryx::EntityBasePtr& entity,
87 const ::Ice::Current& = Ice::emptyCurrent)
override;
88 void reportSnapshotLoaded(
const std::string& segmentName,
89 const ::Ice::Current& = Ice::emptyCurrent)
override;
90 void reportSnapshotCompletelyLoaded(
const Ice::Current&
c = Ice::emptyCurrent)
override;
91 void reportMemoryCleared(
const std::string& segmentName,
92 const ::Ice::Current& = Ice::emptyCurrent)
override;
95 WorkingMemoryInterfacePrx memoryPrx;
96 LongtermMemoryInterfacePrx longtermMemoryPrx;
98 std::string testToRun;
100 void testFileTransfer();
101 void testUpdateObserver();
102 void testObjectMovement();
103 void testSnapshots();
104 void testCommonPlaces();