PredictionEntity Class Reference

#include <MemoryX/libraries/memorytypes/entity/prediction/PredictionEntity.h>

+ Inheritance diagram for PredictionEntity:

Public Member Functions

PredictionEntityPtr clone (const Ice::Current &c=Ice::emptyCurrent) const
 
EntityRefBasePtr getPredictedProfilerMemorySnapshotRef (const Ice::Current &c=Ice::emptyCurrent) const override
 getPredictedProfilerMemorySnapshotRef situation (memory snapshot) which was predicted on the basis of getSourceProfilerMemorySnapshotRef()
 
EntityRefBaseList getPredictedProfilerMemorySnapshotRefList (const Ice::Current &c=Ice::emptyCurrent) const override
 
std::string getPredictionMethodName (const Ice::Current &c=Ice::emptyCurrent) const override
 
Ice::Float getPredictionScore (const Ice::Current &c=Ice::emptyCurrent) const override
 
EntityRefBasePtr getProfilerMemorySnapshotRef (const Ice::Current &c=Ice::emptyCurrent) const override
 getProfilerMemorySnapshotRef situation (memory snapshot) that actually occured (may differ from pediction)
 
EntityRefBasePtr getSourceProfilerMemorySnapshotRef (const Ice::Current &c=Ice::emptyCurrent) const override
 getSourceProfilerMemorySnapshotRef situation (memory snapshot) before the prediction
 
Ice::Int getTaskCount (const Ice::Current &c=Ice::emptyCurrent) const override
 
Ice::ObjectPtr ice_clone () const override
 
void initializeAttributes ()
 
 PredictionEntity ()
 
 PredictionEntity (const EntityRefBasePtr &memorySnapshotRef, const EntityRefBasePtr &sourceMemorySnapshotRef, const EntityRefBasePtr &predictedMemorySnapshotRef, const EntityRefBaseList &predictedMemorySnapshotRefList, const std::string &predictionMethodName, Ice::Int taskCount, Ice::Float predictionScore)
 
 PredictionEntity (const PredictionEntity &source)
 
void setPredictedProfilerMemorySnapshotRef (const EntityRefBasePtr &predictedMemorySnapshotRef, const Ice::Current &c=Ice::emptyCurrent) override
 
void setPredictedProfilerMemorySnapshotRefList (const EntityRefBaseList &predictedMemorySnapshotRefList, const Ice::Current &c=Ice::emptyCurrent) override
 
void setPredictionMethodName (const std::string &predictionMethodName, const Ice::Current &c=Ice::emptyCurrent) override
 
void setPredictionScore (Ice::Float predictionScore, const Ice::Current &c=Ice::emptyCurrent) override
 
void setProfilerMemorySnapshotRef (const EntityRefBasePtr &memorySnapshotRef, const Ice::Current &c=Ice::emptyCurrent) override
 
void setSourceProfilerMemorySnapshotRef (const EntityRefBasePtr &sourceMemorySnapshotRef, const Ice::Current &c=Ice::emptyCurrent) override
 
void setTaskCount (Ice::Int taskCount, const Ice::Current &c=Ice::emptyCurrent) override
 
 ~PredictionEntity () override
 
- Public Member Functions inherited from Entity
void __decRef () override
 
template<typename T>
IceInternal::Handle< TaddWrapper (T *wrapper)
 Add EntityWrapper to entity.
 
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.
 
bool equals (const EntityBasePtr &otherEntity, const ::Ice::Current &=Ice::emptyCurrent) const override
 equals computes if two Entity instances are equal.
 
bool equalsAttributes (const EntityBasePtr &otherEntity, const ::Ice::Current &=Ice::emptyCurrent) const override
 equalsAttributes computes if two Entity instances are equal.
 
virtual EntityRefBaseList getAllParentRefs (bool includeMetaEntities=true) const
 Retrieve all parents by traversing the whole hierarchy.
 
virtual std::vector< std::string > getAllParentsAsStringList () const
 
EntityAttributeBasePtr getAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve attribute from entity.
 
memoryx::NameList getAttributeNames (const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve list of all attribute names.
 
virtual armarx::VariantPtr getAttributeValue (const ::std::string &attrName) const
 Retrieve value of an attribute from entity.
 
virtual EntityRefBaseList getDirectParentRefs () const
 Retrieve parent entity references.
 
::std::string getId (const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve id of this entity which is an integer in string representation.
 
::std::string getName (const ::Ice::Current &=Ice::emptyCurrent) const override
 Retrieve name of this entity.
 
template<typename T>
IceInternal::Handle< TgetWrapper ()
 Retrieve EntityWrapper that has previously been added with Entity::addWrapper().
 
bool hasAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
 Check whether this entity has an attribute with the given name.
 
Ice::ObjectPtr ice_clone () const override
 
bool isMetaEntity (const ::Ice::Current &=Ice::emptyCurrent) const override
 Indicates whether this entity only contains meta information.
 
void putAttribute (const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override
 Store attribute in entity.
 
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.
 
void removeAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) override
 Remove attribute with given name from entity.
 
void serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
 Subclasses should use serializable attributes and consider these methods final.
 
virtual void setDirectParentRefs (const EntityRefBaseList &entityRefs)
 Replace parent entity references.
 
void setId (const ::std::string &id, const ::Ice::Current &=Ice::emptyCurrent) override
 Set id of this entity.
 
void setMetaEntity (bool isMetaEntity, const ::Ice::Current &=Ice::emptyCurrent) override
 Mark this entity as meta (i.e.
 
void setName (const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) override
 Set name of this entity.
 

Friends

std::ostream & operator<< (std::ostream &stream, const PredictionEntity &rhs)
 
std::ostream & operator<< (std::ostream &stream, const PredictionEntityBasePtr &rhs)
 
std::ostream & operator<< (std::ostream &stream, const PredictionEntityPtr &rhs)
 

Additional Inherited Members

- Static Public Member Functions inherited from Entity
static EntityPtr CreateGenericEntity ()
 Creates an entity without any convenience getter/setter functions.
 
- 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 35 of file PredictionEntity.h.

Constructor & Destructor Documentation

◆ PredictionEntity() [1/3]

Definition at line 39 of file PredictionEntity.cpp.

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

◆ PredictionEntity() [2/3]

PredictionEntity ( const EntityRefBasePtr & memorySnapshotRef,
const EntityRefBasePtr & sourceMemorySnapshotRef,
const EntityRefBasePtr & predictedMemorySnapshotRef,
const EntityRefBaseList & predictedMemorySnapshotRefList,
const std::string & predictionMethodName,
Ice::Int taskCount,
Ice::Float predictionScore )

Definition at line 44 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ PredictionEntity() [3/3]

Definition at line 63 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ ~PredictionEntity()

~PredictionEntity ( )
override

Definition at line 72 of file PredictionEntity.cpp.

Member Function Documentation

◆ clone()

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

Definition at line 101 of file PredictionEntity.cpp.

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

◆ getPredictedProfilerMemorySnapshotRef()

EntityRefBasePtr getPredictedProfilerMemorySnapshotRef ( const Ice::Current & c = Ice::emptyCurrent) const
override

getPredictedProfilerMemorySnapshotRef situation (memory snapshot) which was predicted on the basis of getSourceProfilerMemorySnapshotRef()

Definition at line 139 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ getPredictedProfilerMemorySnapshotRefList()

EntityRefBaseList getPredictedProfilerMemorySnapshotRefList ( const Ice::Current & c = Ice::emptyCurrent) const
override

Definition at line 154 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ getPredictionMethodName()

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

Definition at line 183 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ getPredictionScore()

Ice::Float getPredictionScore ( const Ice::Current & c = Ice::emptyCurrent) const
override

Definition at line 212 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ getProfilerMemorySnapshotRef()

EntityRefBasePtr getProfilerMemorySnapshotRef ( const Ice::Current & c = Ice::emptyCurrent) const
override

getProfilerMemorySnapshotRef situation (memory snapshot) that actually occured (may differ from pediction)

Definition at line 110 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ getSourceProfilerMemorySnapshotRef()

EntityRefBasePtr getSourceProfilerMemorySnapshotRef ( const Ice::Current & c = Ice::emptyCurrent) const
override

getSourceProfilerMemorySnapshotRef situation (memory snapshot) before the prediction

Definition at line 124 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ getTaskCount()

Ice::Int getTaskCount ( const Ice::Current & c = Ice::emptyCurrent) const
override

Definition at line 199 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Definition at line 95 of file PredictionEntity.cpp.

+ Here is the call graph for this function:

◆ initializeAttributes()

void initializeAttributes ( )

Definition at line 77 of file PredictionEntity.cpp.

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

◆ setPredictedProfilerMemorySnapshotRef()

void setPredictedProfilerMemorySnapshotRef ( const EntityRefBasePtr & predictedMemorySnapshotRef,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 145 of file PredictionEntity.cpp.

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

◆ setPredictedProfilerMemorySnapshotRefList()

void setPredictedProfilerMemorySnapshotRefList ( const EntityRefBaseList & predictedMemorySnapshotRefList,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 169 of file PredictionEntity.cpp.

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

◆ setPredictionMethodName()

void setPredictionMethodName ( const std::string & predictionMethodName,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 191 of file PredictionEntity.cpp.

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

◆ setPredictionScore()

void setPredictionScore ( Ice::Float predictionScore,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 218 of file PredictionEntity.cpp.

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

◆ setProfilerMemorySnapshotRef()

void setProfilerMemorySnapshotRef ( const EntityRefBasePtr & memorySnapshotRef,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 116 of file PredictionEntity.cpp.

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

◆ setSourceProfilerMemorySnapshotRef()

void setSourceProfilerMemorySnapshotRef ( const EntityRefBasePtr & sourceMemorySnapshotRef,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 130 of file PredictionEntity.cpp.

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

◆ setTaskCount()

void setTaskCount ( Ice::Int taskCount,
const Ice::Current & c = Ice::emptyCurrent )
override

Definition at line 205 of file PredictionEntity.cpp.

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

Friends And Related Symbol Documentation

◆ operator<< [1/3]

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

Definition at line 103 of file PredictionEntity.h.

◆ operator<< [2/3]

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

Definition at line 117 of file PredictionEntity.h.

◆ operator<< [3/3]

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

Definition at line 110 of file PredictionEntity.h.


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