- container_t container = PJ_container_get(resource);
- type_t type = PJ_type_get ("bandwidth", container->type);
- new SetVariableEvent(date, container, type, bandwidth);
+ container_t container = simgrid::instr::Container::byName(resource);
+ simgrid::instr::Type* type = container->type_->byName("bandwidth");
+ new simgrid::instr::SetVariableEvent(date, container, type, bandwidth);