31 #include <MemoryX/interface/core/EntityBase.h>
32 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
33 #include <MemoryX/interface/memorytypes/MemorySegments.h>
42 virtual public BodySchemaMemorySegmentBase
50 OacBasePtr
getOacById(const ::std::string&
id, const ::Ice::Current& = Ice::emptyCurrent)
const
52 return completeOac(OacBasePtr::dynamicCast(getEntityById(
id)));
55 OacBasePtr
getOacByName(const ::std::string& name, const ::Ice::Current& = Ice::emptyCurrent)
const
57 return completeOac(OacBasePtr::dynamicCast(getEntityByName(name)));
60 OacBaseList
getAll(const ::Ice::Current& = Ice::emptyCurrent)
const
64 EntityIdList entityIdList = getAllEntityIds();
66 for (EntityIdList::const_iterator it = entityIdList.begin(); it != entityIdList.end(); ++it)
68 OacBasePtr oac = getOacById(*it);
72 result.push_back(oac);
88 OacBasePtr replaceObjectDummies(OacBasePtr oac)
const;
97 OacBasePtr completeOac(OacBasePtr oac)
const;
116 OacPtr oacCast = OacPtr::dynamicCast(oac);
120 throw IceUtil::NullHandleException(
"Could not cast OacBase into Oac Ptr", 0);
125 throw armarx::LocalException(
"PersistentObjectClassSegmentBaseProxy is NULL");
128 SECObjectRelationsBasePtr pre = oacCast->getPredictionFunction()->getSECPreconditions();
129 SECObjectRelationsBasePtr post = oacCast->getPredictionFunction()->getSECEffects();