+ events_.clear();
+}
+
+void StateType::setEvent(std::string value_name)
+{
+ events_.push_back(new StateEvent(SIMIX_get_clock(), issuer_, this, PAJE_SetState, getEntityValue(value_name)));
+}
+
+void StateType::pushEvent(std::string value_name, void* extra)
+{
+ events_.push_back(
+ new StateEvent(SIMIX_get_clock(), issuer_, this, PAJE_PushState, getEntityValue(value_name), extra));
+}
+
+void StateType::pushEvent(std::string value_name)
+{
+ events_.push_back(new StateEvent(SIMIX_get_clock(), issuer_, this, PAJE_PushState, getEntityValue(value_name)));
+}
+
+void StateType::popEvent()
+{
+ events_.push_back(new StateEvent(SIMIX_get_clock(), issuer_, this, PAJE_PopState, nullptr));
+}
+
+VariableType::VariableType(std::string name, std::string color, Type* father) : Type(name, name, color, father)
+{
+ XBT_DEBUG("VariableType %s(%lld), child of %s(%lld)", getCname(), getId(), father->getCname(), father->getId());
+ logDefinition(PAJE_DefineVariableType);
+}
+
+VariableType::~VariableType()
+{
+ events_.clear();
+}
+
+void VariableType::setEvent(double timestamp, double value)
+{
+ events_.push_back(new VariableEvent(timestamp, issuer_, this, PAJE_SetVariable, value));
+}
+
+void VariableType::addEvent(double timestamp, double value)
+{
+ events_.push_back(new VariableEvent(timestamp, issuer_, this, PAJE_AddVariable, value));
+}
+
+void VariableType::subEvent(double timestamp, double value)
+{
+ events_.push_back(new VariableEvent(timestamp, issuer_, this, PAJE_SubVariable, value));