97 return "CommonPlacesTester";
100 void onInitComponent()
override;
101 void onConnectComponent()
override;
104 WorkingMemoryInterfacePrx memoryPrx;
105 LongtermMemoryInterfacePrx longtermMemoryPrx;
106 CommonPlacesLearnerInterfacePrx cpLearnerPrx;
107 std::string testToRun;
108 std::string objectToLoad;
109 std::string ltmSegmentName;
111 void testLearnFromSnapshot();
112 void testLearnFromSingleSnapshot();
114 void testClustering();
117 void testClusteringBatch();
120 void testGetClusterLocations();
122 void getRandomIds(std::vector<std::string>& allIds,
123 std::vector<std::string>& ids,
126 DeviationType getDeviationTypeFromString(
const std::string& devTypeStr);
130 struct timeval tv1, tv2, dtv;
136 gettimeofday(&tv1, &tz);
142 gettimeofday(&tv2, &tz);
143 dtv.tv_sec = tv2.tv_sec - tv1.tv_sec;
144 dtv.tv_usec = tv2.tv_usec - tv1.tv_usec;
149 dtv.tv_usec += 1000000;
152 return dtv.tv_sec * 1000 + dtv.tv_usec / 1000;