34 initializeAttributes();
44 const std::string& sourceStateName,
45 const std::string& targetStateName,
46 const EntityRefBasePtr& sourceStateMemorySnapshotRef,
47 const EntityRefBasePtr& targetStateMemorySnapshotRef,
50 initializeAttributes();
61 ::
armarx::Serializable(source),
63 ProfilerEntityBase(source),
64 ProfilerTransitionBase(source),
75 ProfilerTransition::output(std::ostream& stream)
const
81 ProfilerTransition::initializeAttributes()
86 putAttribute(
new EntityAttribute(
"sourceMemorySnapshot"));
87 putAttribute(
new EntityAttribute(
"targetMemorySnapshot"));
109 return getAttribute(
"parentState")->getValue()->getString();
114 const Ice::Current& context)
128 const Ice::Current& context)
141 const Ice::Current& context)
154 const Ice::Current& context)
167 const Ice::Current& context)
186 const std::string& targetSnapshotID)
189 if (!sourceStateMemorySnapshotRef->getEntity())
194 if (!targetStateMemorySnapshotRef->getEntity())
198 return ((sourceStateMemorySnapshotRef->entityId == sourceSnapshotID) &&
199 (targetStateMemorySnapshotRef->entityId == targetSnapshotID));
The Variant class is described here: Variants.
The EntityRef class is used to store references to Entities as values in other Entity instances.
Entity is the superclass for all MemoryX memory chunks.
EntityAttributeBasePtr getAttribute(const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve attribute from entity.
void setName(const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) override
Set name of this entity.
virtual armarx::VariantPtr getAttributeValue(const ::std::string &attrName) const
Retrieve value of an attribute from entity.
std::mutex attributesMutex
std::recursive_mutex wrappersMutex
void output(std::ostream &stream) const
void putAttribute(const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override
Store attribute in entity.
std::shared_mutex entityMutex
Ice::Int getCount(const Ice::Current &context=Ice::emptyCurrent) const override
bool memorySnapshotIdsEqual(const std::string &sourceSnapshotID, const std::string &targetSnapshotID)
equalsMemorySnapshotIDs returns true if the ProfilerMemorySnapshot IDs asssocited with this transitio...
std::string getParentStateName(const Ice::Current &context=Ice::emptyCurrent) const override
void setCount(Ice::Int count, const Ice::Current &context=Ice::emptyCurrent) override
EntityRefBasePtr getTargetStateMemorySnapshotRef(const Ice::Current &context=Ice::emptyCurrent) const override
~ProfilerTransition() override
void setSourceStateName(const std::string &statename, const Ice::Current &context=Ice::emptyCurrent) override
EntityRefBasePtr getSourceStateMemorySnapshotRef(const Ice::Current &context=Ice::emptyCurrent) const override
std::string getSourceStateName(const Ice::Current &context=Ice::emptyCurrent) const override
Ice::ObjectPtr ice_clone() const override
void setSourceStateMemorySnapshotRef(const EntityRefBasePtr &memorySnapshotRef, const Ice::Current &context=Ice::emptyCurrent) override
void setParentStateName(const std::string &statename, const Ice::Current &context=Ice::emptyCurrent) override
void setTargetStateMemorySnapshotRef(const EntityRefBasePtr &memorySnapshotRef, const Ice::Current &context=Ice::emptyCurrent) override
std::string getTargetStateName(const Ice::Current &context=Ice::emptyCurrent) const override
ProfilerTransitionPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
void setTargetStateName(const std::string &statename, const Ice::Current &context=Ice::emptyCurrent) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< ProfilerTransition > ProfilerTransitionPtr