29 #include <MemoryX/interface/core/EntityBase.h>
30 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
31 #include <MemoryX/interface/memorytypes/MemorySegments.h>
37 virtual public PersistentAgentInstancesSegmentBase
46 AgentInstanceBasePtr
getAgentInstanceById(
const std::string&
id, const ::Ice::Current& = Ice::emptyCurrent)
const
48 AgentInstanceBasePtr res = AgentInstanceBasePtr::dynamicCast(getEntityById(
id));
52 ARMARX_WARNING_S <<
"Entity with id " <<
id <<
" is not of type AgentInstance!" << std::endl;
58 AgentInstanceBasePtr
getAgentInstanceByName(
const std::string& name, const ::Ice::Current& = Ice::emptyCurrent)
const
60 AgentInstanceBasePtr res = AgentInstanceBasePtr::dynamicCast(getEntityByName(name));
64 ARMARX_WARNING_S <<
"Entity with name " << name <<
" is not of type AgentEntity!" << std::endl;