- if (trace_format == simgrid::instr::TraceFormat::Paje) {
- stream_ << std::fixed << std::setprecision(TRACE_precision());
- }
-}
-
-Type::~Type()
-{
- for (auto elm : children_)
- delete elm.second;
-}
-
-ValueType::~ValueType()
-{
- for (auto elm : values_)
- delete elm.second;
-}
-
-ContainerType::ContainerType(std::string name, Type* father) : Type(name, name, "", father)
-{
- XBT_DEBUG("ContainerType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- logDefinition(PAJE_DefineContainerType);
-}
-
-EventType::EventType(std::string name, Type* father) : ValueType(name, father)
-{
- XBT_DEBUG("EventType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- logDefinition(PAJE_DefineEventType);
-}
-
-StateType::StateType(std::string name, Type* father) : ValueType(name, father)
-{
- XBT_DEBUG("StateType %s(%lld), child of %s(%lld)", get_cname(), get_id(), father->get_cname(), father->get_id());
- logDefinition(PAJE_DefineStateType);
-}
-
-StateType::~StateType()
-{
- events_.clear();
-}
-
-void StateType::setEvent(std::string value_name)
-{
- events_.push_back(new StateEvent(issuer_, this, PAJE_SetState, getEntityValue(value_name), nullptr));