- snprintf (link_typename, INSTR_DEFAULT_STR_SIZE, "%s-%s%s-%s%s",
- father->type->name,
- src->type->name, src->type->id,
- dst->type->name, dst->type->id);
- simgrid::instr::Type* link_type = simgrid::instr::Type::getOrNull(link_typename, father->type);
- if (link_type == nullptr){
- link_type = simgrid::instr::Type::linkNew(link_typename, father->type, src->type, dst->type);
- }
+ snprintf(link_typename, INSTR_DEFAULT_STR_SIZE, "%s-%s%s-%s%s", father->type_->name_, src->type_->name_,
+ src->type_->id_, dst->type_->name_, dst->type_->id_);
+ simgrid::instr::Type* link_type = father->type_->getChildOrNull(link_typename);
+ if (link_type == nullptr)
+ link_type = simgrid::instr::Type::linkNew(link_typename, father->type_, src->type_, dst->type_);