DMPEntity Class Reference

#include <MemoryX/libraries/memorytypes/entity/DMPEntity.h>

+ Inheritance diagram for DMPEntity:

Public Member Functions

DMPEntityPtr clone (const Ice::Current &c=Ice::emptyCurrent) const
 
 DMPEntity ()
 
 DMPEntity (const DMPEntity &source)
 
 DMPEntity (const std::string &name, const std::string &id="")
 
bool get3rdOrder (const ::Ice::Current &=Ice::emptyCurrent) const override
 
std::string getDMPName (const ::Ice::Current &=Ice::emptyCurrent) const override
 
std::string getDMPtextStr (const ::Ice::Current &=Ice::emptyCurrent) const override
 
int getDMPType (const ::Ice::Current &=Ice::emptyCurrent) const override
 
int getTrajDim (const ::Ice::Current &=Ice::emptyCurrent) const override
 
Ice::ObjectPtr ice_clone () const override
 
void set3rdOrder (const bool is3rdOrder, const ::Ice::Current &=Ice::emptyCurrent) override
 
void setDMPName (const std::string &dmpName, const ::Ice::Current &=Ice::emptyCurrent) override
 
void setDMPtextStr (const std::string &dmptext, const ::Ice::Current &=Ice::emptyCurrent) override
 
void setDMPType (const std::string &dmpType, const ::Ice::Current &=Ice::emptyCurrent) override
 
void setTrajDim (const int trajdim, const ::Ice::Current &=Ice::emptyCurrent) override
 
 ~DMPEntity () override
 
- Public Member Functions inherited from Entity
void __decRef () override
 
template<typename T >
IceInternal::Handle< TaddWrapper (T *wrapper)
 Add EntityWrapper to entity. More...
 
EntityPtr clone (const Ice::Current &c=Ice::emptyCurrent) const
 
void deserialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
 Subclasses should use serializable attributes and consider these methods final. More...
 
bool equals (const EntityBasePtr &otherEntity, const ::Ice::Current &=Ice::emptyCurrent) const override
 equals computes if two Entity instances are equal. More...
 
bool equalsAttributes (const EntityBasePtr &otherEntity, const ::Ice::Current &=Ice::emptyCurrent) const override
 equalsAttributes computes if two Entity instances are equal. More...
 
virtual EntityRefBaseList getAllParentRefs (bool includeMetaEntities=true) const
 Retrieve all parents by traversing the whole hierarchy. More...
 
virtual std::vector< std::string > getAllParentsAsStringList () const
 
EntityAttributeBasePtr getAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve attribute from entity. More...
 
memoryx::NameList getAttributeNames (const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve list of all attribute names. More...
 
virtual armarx::VariantPtr getAttributeValue (const ::std::string &attrName) const
 Retrieve value of an attribute from entity. More...
 
virtual EntityRefBaseList getDirectParentRefs () const
 Retrieve parent entity references. More...
 
::std::string getId (const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve id of this entity which is an integer in string representation. More...
 
::std::string getName (const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve name of this entity. More...
 
template<typename T >
IceInternal::Handle< TgetWrapper ()
 Retrieve EntityWrapper that has previously been added with Entity::addWrapper(). More...
 
bool hasAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
 Check whether this entity has an attribute with the given name. More...
 
Ice::ObjectPtr ice_clone () const override
 
bool isMetaEntity (const ::Ice::Current &=Ice::emptyCurrent) const override
 Indicates whether this entity only contains meta information. More...
 
void putAttribute (const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override
 Store attribute in entity. More...
 
template<typename T >
void putAttribute (const std::string &attrName, T attrValue, ProbabilityMeasureBasePtr uncertainty=ProbabilityMeasureBasePtr())
 Create and store attribute from name, value, and optionally uncertainty measure. More...
 
void removeAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) override
 Remove attribute with given name from entity. More...
 
void serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
 Subclasses should use serializable attributes and consider these methods final. More...
 
virtual void setDirectParentRefs (const EntityRefBaseList &entityRefs)
 Replace parent entity references. More...
 
void setId (const ::std::string &id, const ::Ice::Current &=Ice::emptyCurrent) override
 Set id of this entity. More...
 
void setMetaEntity (bool isMetaEntity, const ::Ice::Current &=Ice::emptyCurrent) override
 Mark this entity as meta (i.e. More...
 
void setName (const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) override
 Set name of this entity. More...
 

Friends

std::ostream & operator<< (std::ostream &stream, const DMPEntity &rhs)
 
std::ostream & operator<< (std::ostream &stream, const DMPEntityBasePtr &rhs)
 
std::ostream & operator<< (std::ostream &stream, const DMPEntityPtr &rhs)
 

Additional Inherited Members

- Static Public Member Functions inherited from Entity
static EntityPtr CreateGenericEntity ()
 Creates an entity without any convenience getter/setter functions. More...
 
- Protected Member Functions inherited from Entity
 Entity ()
 
 Entity (const Entity &source)
 
void ice_postUnmarshal () override
 
void ice_preMarshal () override
 
void output (std::ostream &stream) const
 
 ~Entity () override
 
- Protected Attributes inherited from Entity
std::mutex attributesMutex
 
std::shared_mutex entityMutex
 
AbstractEntityWrapperBaseList wrappers
 
std::recursive_mutex wrappersMutex
 

Detailed Description

Definition at line 37 of file DMPEntity.h.

Constructor & Destructor Documentation

◆ DMPEntity() [1/3]

DMPEntity ( )

Definition at line 30 of file DMPEntity.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DMPEntity() [2/3]

DMPEntity ( const DMPEntity source)

Definition at line 39 of file DMPEntity.cpp.

◆ DMPEntity() [3/3]

DMPEntity ( const std::string &  name,
const std::string &  id = "" 
)

Definition at line 49 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ ~DMPEntity()

~DMPEntity ( )
override

Definition at line 55 of file DMPEntity.cpp.

Member Function Documentation

◆ clone()

DMPEntityPtr clone ( const Ice::Current &  c = Ice::emptyCurrent) const

Definition at line 121 of file DMPEntity.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get3rdOrder()

bool get3rdOrder ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 101 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ getDMPName()

std::string getDMPName ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 86 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ getDMPtextStr()

std::string getDMPtextStr ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 96 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ getDMPType()

int getDMPType ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 91 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ getTrajDim()

int getTrajDim ( const ::Ice::Current &  = Ice::emptyCurrent) const
override

Definition at line 106 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Definition at line 116 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ set3rdOrder()

void set3rdOrder ( const bool  is3rdOrder,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 75 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ setDMPName()

void setDMPName ( const std::string &  dmpName,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 60 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ setDMPtextStr()

void setDMPtextStr ( const std::string &  dmptext,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 70 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ setDMPType()

void setDMPType ( const std::string &  dmpType,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 65 of file DMPEntity.cpp.

+ Here is the call graph for this function:

◆ setTrajDim()

void setTrajDim ( const int  trajdim,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 80 of file DMPEntity.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<< [1/3]

std::ostream& operator<< ( std::ostream &  stream,
const DMPEntity rhs 
)
friend

Definition at line 66 of file DMPEntity.h.

◆ operator<< [2/3]

std::ostream& operator<< ( std::ostream &  stream,
const DMPEntityBasePtr &  rhs 
)
friend

Definition at line 78 of file DMPEntity.h.

◆ operator<< [3/3]

std::ostream& operator<< ( std::ostream &  stream,
const DMPEntityPtr rhs 
)
friend

Definition at line 72 of file DMPEntity.h.


The documentation for this class was generated from the following files: