|
Interface for fusion methods used for entities in working memory. More...
#include <MemoryX/libraries/workingmemory/fusion/EntityFusionMethod.h>
Public Member Functions | |
EntityFusionMethod (std::string methodName) | |
Constructs a new fusion method. More... | |
EntityBasePtr | fuseEntity (const EntityBasePtr &baseEntity, const EntityBasePtr &updateEntity, const ::Ice::Current &=Ice::emptyCurrent) override=0 |
Fusion method. More... | |
std::string | getMethodName (const ::Ice::Current &=Ice::emptyCurrent) const override |
EntityBasePtr | initEntity (const EntityBasePtr &updateEntity, const ::Ice::Current &=Ice::emptyCurrent) override |
Initialization of an entity. More... | |
Interface for fusion methods used for entities in working memory.
Define fusion methods by subclassing EntityFusionMethod. The pure virtual method fuse() needs to be implemented.
Definition at line 43 of file EntityFusionMethod.h.
|
inline |
Constructs a new fusion method.
name | of the fusion method |
Definition at line 52 of file EntityFusionMethod.h.
|
overridepure virtual |
Fusion method.
Fuses two entities with the same key. Implement this in a concrete EntityFusionMethod.
baseEntity | base entity for fusion |
updateEntity | entity to be fused with base entity |
Implemented in GaussianMixturePositionFusion, KalmanFilterFusion, PriorAttributeEnrichmentFusion, and AttributeReplacementFusion.
|
inlineoverride |
Definition at line 78 of file EntityFusionMethod.h.
|
inlineoverride |
Initialization of an entity.
Implement this method in order to add attributes which are fusion method specific, if you need it. The default implementation just returns the updateEntity.
updateEntity | entity to be initilialized |
Definition at line 64 of file EntityFusionMethod.h.