MemoryToIceAdapter Class Reference

Helps connecting a Memory server to the Ice interface. More...

#include <RobotAPI/libraries/armem/server/MemoryToIceAdapter.h>

Public Member Functions

data::AddSegmentResult addSegment (const data::AddSegmentInput &input, bool addCoreSegments=false)
 
data::AddSegmentsResult addSegments (const data::AddSegmentsInput &input, bool addCoreSegments=false)
 
armem::CommitResult commit (const armem::Commit &commit)
 
data::CommitResult commit (const data::Commit &commitIce)
 
data::CommitResult commit (const data::Commit &commitIce, Time timeArrived)
 
armem::CommitResult commitLocking (const armem::Commit &commit)
 
data::CommitResult commitLocking (const data::Commit &commitIce)
 
data::CommitResult commitLocking (const data::Commit &commitIce, Time timeArrived)
 
dto::DirectlyStoreResult directlyStore (const dto::DirectlyStoreInput &directlStoreInput)
 
prediction::data::EngineSupportMap getAvailableEngines ()
 
dto::RecordStatusResult getRecordStatus ()
 
armem::structure::data::GetServerStructureResult getServerStructure ()
 
 MemoryToIceAdapter (server::wm::Memory *workingMemory=nullptr, server::ltm::Memory *longtermMemory=nullptr)
 Construct an MemoryToIceAdapter from an existing Memory. More...
 
prediction::data::PredictionResultSeq predict (prediction::data::PredictionRequestSeq requests)
 
query::data::Result query (const armem::query::data::Input &input)
 
client::QueryResult query (const client::QueryInput &input)
 
void setMemoryListener (client::MemoryListenerInterfacePrx memoryListenerTopic)
 
dto::StartRecordResult startRecord (const dto::StartRecordInput &startRecordInput)
 
dto::StopRecordResult stopRecord ()
 

Public Attributes

server::ltm::MemorylongtermMemory
 
client::MemoryListenerInterfacePrx memoryListenerTopic
 
server::wm::MemoryworkingMemory
 

Detailed Description

Helps connecting a Memory server to the Ice interface.

This involves conversion of ice types to C++ types as well as catchin exceptions and converting them to error messages

Definition at line 19 of file MemoryToIceAdapter.h.

Constructor & Destructor Documentation

◆ MemoryToIceAdapter()

MemoryToIceAdapter ( server::wm::Memory workingMemory = nullptr,
server::ltm::Memory longtermMemory = nullptr 
)

Construct an MemoryToIceAdapter from an existing Memory.

Definition at line 24 of file MemoryToIceAdapter.cpp.

Member Function Documentation

◆ addSegment()

data::AddSegmentResult addSegment ( const data::AddSegmentInput &  input,
bool  addCoreSegments = false 
)

Definition at line 38 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSegments()

data::AddSegmentsResult addSegments ( const data::AddSegmentsInput &  input,
bool  addCoreSegments = false 
)

Definition at line 98 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ commit() [1/3]

armem::CommitResult commit ( const armem::Commit commit)

Definition at line 156 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:

◆ commit() [2/3]

data::CommitResult commit ( const data::Commit &  commitIce)

Definition at line 149 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:

◆ commit() [3/3]

data::CommitResult commit ( const data::Commit &  commitIce,
Time  timeArrived 
)

Definition at line 112 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ commitLocking() [1/3]

armem::CommitResult commitLocking ( const armem::Commit commit)

Definition at line 207 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:

◆ commitLocking() [2/3]

data::CommitResult commitLocking ( const data::Commit &  commitIce)

Definition at line 200 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:

◆ commitLocking() [3/3]

data::CommitResult commitLocking ( const data::Commit &  commitIce,
Time  timeArrived 
)

Definition at line 163 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ directlyStore()

dto::DirectlyStoreResult directlyStore ( const dto::DirectlyStoreInput &  directlStoreInput)

Definition at line 387 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAvailableEngines()

prediction::data::EngineSupportMap getAvailableEngines ( )

Definition at line 484 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRecordStatus()

dto::RecordStatusResult getRecordStatus ( )

Definition at line 444 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerStructure()

armem::structure::data::GetServerStructureResult getServerStructure ( )

Definition at line 354 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ predict()

prediction::data::PredictionResultSeq predict ( prediction::data::PredictionRequestSeq  requests)

Definition at line 476 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ query() [1/2]

armem::query::data::Result query ( const armem::query::data::Input &  input)

Definition at line 288 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ query() [2/2]

client::QueryResult query ( const client::QueryInput input)

Definition at line 347 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:

◆ setMemoryListener()

void setMemoryListener ( client::MemoryListenerInterfacePrx  memoryListenerTopic)

Definition at line 31 of file MemoryToIceAdapter.cpp.

+ Here is the caller graph for this function:

◆ startRecord()

dto::StartRecordResult startRecord ( const dto::StartRecordInput &  startRecordInput)

Definition at line 402 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stopRecord()

dto::StopRecordResult stopRecord ( )

Definition at line 416 of file MemoryToIceAdapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ longtermMemory

server::ltm::Memory* longtermMemory

Definition at line 65 of file MemoryToIceAdapter.h.

◆ memoryListenerTopic

client::MemoryListenerInterfacePrx memoryListenerTopic

Definition at line 67 of file MemoryToIceAdapter.h.

◆ workingMemory

server::wm::Memory* workingMemory

Definition at line 64 of file MemoryToIceAdapter.h.


The documentation for this class was generated from the following files: