Go to the documentation of this file.
14 const std::string& defaultProviderSegmentName,
15 const std::string& defaultCoreSegmentName,
18 int defaultMaxHistorySize,
19 const std::vector<PredictionEngine>& providerSegmentPredictionEngines,
20 const std::vector<PredictionEngine>& coreSegmentPredictionEngines) :
22 aronType(providerSegmentAronType),
23 predictionEngines(providerSegmentPredictionEngines),
24 coreSegment(iceMemory,
25 defaultCoreSegmentName,
28 providerSegmentPredictionEngines),
29 properties({defaultProviderSegmentName, defaultMaxHistorySize})
47 prefix +
"seg.ProviderSegmentName",
51 prefix +
"seg.ProviderMaxHistorySize",
98 const std::vector<PredictionEngine>& predictionEngines)
server::wm::Memory * workingMemory
void setMaxHistorySize(long maxSize)
Sets the maximum history size of entities in this container.
SpecializedCoreSegment coreSegment
Helps connecting a Memory server to the Ice interface.
bool hasProviderSegment(const std::string &name) const
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
aron::type::ObjectPtr & aronType()
void setPredictionEngines(const std::vector< PredictionEngine > &predictionEngines)
void setPredictionEngines(const std::vector< PredictionEngine > &engines)
void setDefaultMaxHistorySize(int64_t maxHistorySize)
virtual ~SpecializedProviderSegment() override
void setDefaultProviderSegmentName(const std::string &providerSegmentName)
virtual void init() override
wm::ProviderSegment & getProviderSegment()
ProviderSegmentT & getProviderSegment(const std::string &name)
aron::type::ObjectPtr aronType
void setAronType(aron::type::ObjectPtr aronType)
virtual void init() override
SpecializedProviderSegment(MemoryToIceAdapter &iceMemory, const std::string &defaultProviderSegmentName="", const std::string &defaultCoreSegmentName="", aron::type::ObjectPtr providerSegmentAronType=nullptr, aron::type::ObjectPtr coreSegmentAronType=nullptr, int defaultMaxHistorySize=10, const std::vector< PredictionEngine > &providerSegmentPredictionEngines={}, const std::vector< PredictionEngine > &coreSegmentPredictionEngines={})
MemoryToIceAdapter & iceMemory
std::shared_ptr< Object > ObjectPtr
void setTag(const LogTag &tag)
ProviderSegment & addProviderSegment(const std::string &name, Args... args)
std::vector< PredictionEngine > predictionEngines
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override