Go to the documentation of this file.
27 #include "../../../../core/entity/EntityRef.h"
35 initializeAttributes();
44 ProfilerTransition::ProfilerTransition(
const std::string& parentStateName,
const std::string& sourceStateName,
const std::string& targetStateName,
const EntityRefBasePtr& sourceStateMemorySnapshotRef,
const EntityRefBasePtr& targetStateMemorySnapshotRef,
Ice::Int count)
46 initializeAttributes();
59 ProfilerEntityBase(
source),
60 ProfilerTransitionBase(
source),
71 void ProfilerTransition::output(std::ostream& stream)
const
76 void ProfilerTransition::initializeAttributes()
81 putAttribute(
new EntityAttribute(
"sourceMemorySnapshot"));
82 putAttribute(
new EntityAttribute(
"targetMemorySnapshot"));
102 return getAttribute(
"parentState")->getValue()->getString();
166 auto sourceStateMemorySnapshotRef = this->getSourceStateMemorySnapshotRef();
167 if (!sourceStateMemorySnapshotRef->getEntity())
171 auto targetStateMemorySnapshotRef = this->getTargetStateMemorySnapshotRef();
172 if (!targetStateMemorySnapshotRef->getEntity())
176 return ((sourceStateMemorySnapshotRef->entityId == sourceSnapshotID)
177 && (targetStateMemorySnapshotRef->entityId == targetSnapshotID));
void setSourceStateName(const std::string &statename, const Ice::Current &context=Ice::emptyCurrent) override
The Variant class is described here: Variants.
std::string getParentStateName(const Ice::Current &context=Ice::emptyCurrent) const override
const armarx::VariantTypeId EntityRef
void putAttribute(const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override
Store attribute in entity.
Ice::Int getCount(const Ice::Current &context=Ice::emptyCurrent) const override
EntityAttributeBasePtr getAttribute(const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve attribute from entity.
void setTargetStateMemorySnapshotRef(const EntityRefBasePtr &memorySnapshotRef, const Ice::Current &context=Ice::emptyCurrent) override
void setSourceStateMemorySnapshotRef(const EntityRefBasePtr &memorySnapshotRef, const Ice::Current &context=Ice::emptyCurrent) override
EntityRefBasePtr getSourceStateMemorySnapshotRef(const Ice::Current &context=Ice::emptyCurrent) const override
void output(std::ostream &stream) const
The EntityRef class is used to store references to Entities as values in other Entity instances.
virtual armarx::VariantPtr getAttributeValue(const ::std::string &attrName) const
Retrieve value of an attribute from entity.
void setTargetStateName(const std::string &statename, const Ice::Current &context=Ice::emptyCurrent) override
void setParentStateName(const std::string &statename, const Ice::Current &context=Ice::emptyCurrent) override
std::mutex attributesMutex
~ProfilerTransition() override
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
std::shared_mutex entityMutex
std::string getSourceStateName(const Ice::Current &context=Ice::emptyCurrent) const override
std::string getTargetStateName(const Ice::Current &context=Ice::emptyCurrent) const override
ProfilerTransitionPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
bool memorySnapshotIdsEqual(const std::string &sourceSnapshotID, const std::string &targetSnapshotID)
equalsMemorySnapshotIDs returns true if the ProfilerMemorySnapshot IDs asssocited with this transitio...
std::shared_ptr< Object > ObjectPtr
Ice::ObjectPtr ice_clone() const override
void setName(const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) override
Set name of this entity.
EntityRefBasePtr getTargetStateMemorySnapshotRef(const Ice::Current &context=Ice::emptyCurrent) const override
std::recursive_mutex wrappersMutex
This file offers overloads of toIce() and fromIce() functions for STL container types.
void setCount(Ice::Int count, const Ice::Current &context=Ice::emptyCurrent) override