X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/43bcc7a70e8f2f69fb3563226b55be8483e793f6..ce9fe8ed764878bee5d61a7720f124245cea072e:/src/instr/instr_paje_types.hpp diff --git a/src/instr/instr_paje_types.hpp b/src/instr/instr_paje_types.hpp index c8c7a4c518..6d9a9bffcb 100644 --- a/src/instr/instr_paje_types.hpp +++ b/src/instr/instr_paje_types.hpp @@ -40,11 +40,13 @@ public: bool isColored() { return not color_.empty(); } Type* byName(std::string name); - ContainerType* getOrCreateContainerType(std::string name); EventType* getOrCreateEventType(std::string name); LinkType* getOrCreateLinkType(std::string name, Type* source, Type* dest); + StateType* getOrCreateStateType(std::string name); + StateType* getState(std::string name); + VariableType* getOrCreateVariableType(std::string name, std::string color); void logDefinition(e_event_type event_type); @@ -85,12 +87,10 @@ public: class LinkType : public ValueType { public: LinkType(std::string name, std::string alias, Type* father); - void startEvent(double timestamp, Container* source_container, Container* sourceContainer, std::string value, - std::string key); - void startEvent(double timestamp, Container* source_container, Container* sourceContainer, std::string value, - std::string key, int size); - void endEvent(double timestamp, Container* source_container, Container* destContainer, std::string value, - std::string key); + void startEvent(Container* source_container, Container* sourceContainer, std::string value, std::string key); + void startEvent(Container* source_container, Container* sourceContainer, std::string value, std::string key, + int size); + void endEvent(Container* source_container, Container* destContainer, std::string value, std::string key); }; class EventType : public ValueType { @@ -100,14 +100,16 @@ public: class StateType : public ValueType { std::vector events_; + Container* issuer_ = nullptr; public: StateType(std::string name, Type* father); ~StateType(); - void setEvent(double timestamp, Container* container, std::string value_name); - void pushEvent(double timestamp, Container* container, std::string value_name); - void pushEvent(double timestamp, Container* container, std::string value_name, void* extra); - void popEvent(double timestamp, Container* container); + void setCallingContainer(Container* container) { issuer_ = container; } + void setEvent(std::string value_name); + void pushEvent(std::string value_name); + void pushEvent(std::string value_name, void* extra); + void popEvent(); }; } }