25 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
32 using SnapshotMap = std::map<Ice::Identity, WorkingMemorySnapshotInterfacePtr>;
39 virtual public WorkingMemorySnapshotListSegmentBase
45 WorkingMemorySnapshotInterfacePrx
createSnapshot(const ::std::string& name,
const AbstractWorkingMemoryInterfacePrx& workingMemory,
46 const ::Ice::Current& = Ice::emptyCurrent)
override;
47 WorkingMemorySnapshotInterfacePrx
createSubsetSnapshot(const ::std::string& name,
const AbstractWorkingMemoryInterfacePrx& workingMemory,
const Ice::StringSeq& entityIdList,
48 const ::Ice::Current&
c = Ice::emptyCurrent)
override;
49 WorkingMemorySnapshotInterfacePrx
openSnapshot(const ::std::string& name, const ::Ice::Current& = Ice::emptyCurrent)
override;
50 void closeSnapshot(
const WorkingMemorySnapshotInterfacePrx& snapshot, const ::Ice::Current& = Ice::emptyCurrent)
override;
51 void loadSnapshot(const ::std::string& name,
const AbstractWorkingMemoryInterfacePrx& workingMemory,
52 const ::Ice::Current& = Ice::emptyCurrent)
override;
53 bool removeSnapshot(const ::std::string& name, const ::Ice::Current& = Ice::emptyCurrent)
override;
54 NameList
getSnapshotNames(const ::Ice::Current& = Ice::emptyCurrent)
const override;
56 Ice::Int size(const ::Ice::Current& = Ice::emptyCurrent)
const override;
57 void clear(const ::Ice::Current& = Ice::emptyCurrent)
override;
58 void print(const ::Ice::Current& = Ice::emptyCurrent)
const override;
62 void setSegmentName(
const std::string& segmentName, const ::Ice::Current& = Ice::emptyCurrent)
override
64 this->segmentName = segmentName;
67 void setParentMemory(
const MemoryInterfacePtr& memory,
const Ice::Current&)
override
69 this->parentMemory = memory;
75 MemoryInterfacePtr parentMemory;
76 DatabaseInterfacePrx databasePrx;
77 CollectionInterfacePrx snapshotListCollection;
85 std::string segmentName;