27#include <MemoryX/interface/core/EntityBase.h>
28#include <MemoryX/interface/memorytypes/MemoryEntities.h>
29#include <MemoryX/interface/memorytypes/MemorySegments.h>
37 virtual public ActiveOacMemorySegmentBase
43 ActiveOacMemorySegmentBase(),
50 addEntity(
const EntityBasePtr& entity, const ::Ice::Current&
c = Ice::emptyCurrent)
override
55 WorkingMemoryListenerInterfacePrx tmpListenerProxy = listenerProxy;
58 listenerProxy = tmpListenerProxy;
63 ObjectInstanceList args;
64 std::vector<std::string> ids = actualEntity->getArgumentInstanceIds();
66 for (std::vector<std::string>::const_iterator it = ids.begin(); it != ids.end(); ++it)
70 args.push_back(
object);
78 listenerProxy->reportEntityCreated(
segmentName, actualEntity);
91 changeState(OacExecState state, const ::Ice::Current& = Ice::emptyCurrent)
override
#define ARMARXCOMPONENT_IMPORT_EXPORT
std::string addEntity(const EntityBasePtr &entity, const ::Ice::Current &c=Ice::emptyCurrent) override
ActiveOacFullPtr getActiveOac(const ::Ice::Current &=Ice::emptyCurrent) override
OacMemorySegmentBasePrx oacSegmentPrx
void changeState(OacExecState state, const ::Ice::Current &=Ice::emptyCurrent) override
ActiveOacMemorySegment(ObjectInstanceMemorySegmentBasePrx objectInstanceSegmentPrx, OacMemorySegmentBasePrx oacSegmentPrx)
ActiveOacFullPtr activeOac
ObjectInstanceMemorySegmentBasePrx objectInstanceSegmentPrx
void clear(const ::Ice::Current &c=Ice::emptyCurrent) override
std::string addEntity(const EntityBasePtr &entity, const ::Ice::Current &c=Ice::emptyCurrent) override
addEntity addes an entity to this segment. The registered fusion methods are applied in order to fuse...
void updateEntity(const std::string &entityId, const EntityBasePtr &update, const ::Ice::Current &c=Ice::emptyCurrent) override
WorkingMemoryEntitySegment()
EntityBasePtr getEntityById(const ::std::string &id) const
IceInternal::Handle< ActiveOacMemorySegment > ActiveOacMemorySegmentPtr
IceInternal::Handle< ObjectInstance > ObjectInstancePtr
IceInternal::Handle< ActiveOac > ActiveOacPtr