Interface for fusion methods used for entities in working memory.
More...
#include <MemoryX/libraries/workingmemory/fusion/EntityFusionMethod.h>
|
| | EntityFusionMethod (std::string methodName) |
| | Constructs a new fusion method.
|
| |
| EntityBasePtr | fuseEntity (const EntityBasePtr &baseEntity, const EntityBasePtr &updateEntity, const ::Ice::Current &=Ice::emptyCurrent) override=0 |
| | Fusion method.
|
| |
| 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.
|
| |
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.
◆ EntityFusionMethod()
Constructs a new fusion method.
- Parameters
-
◆ fuseEntity()
| EntityBasePtr fuseEntity |
( |
const EntityBasePtr & | baseEntity, |
|
|
const EntityBasePtr & | updateEntity, |
|
|
const ::Ice::Current & | = Ice::emptyCurrent ) |
|
overridepure virtual |
◆ getMethodName()
| std::string getMethodName |
( |
const ::Ice::Current & | = Ice::emptyCurrent | ) |
const |
|
inlineoverride |
◆ initEntity()
| EntityBasePtr initEntity |
( |
const EntityBasePtr & | updateEntity, |
|
|
const ::Ice::Current & | = Ice::emptyCurrent ) |
|
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.
- Parameters
-
| updateEntity | entity to be initilialized |
- Returns
- initialized entity
The documentation for this class was generated from the following file: