- container_t container = simgrid::instr::Container::byName(host);
- simgrid::instr::Type* type = container->type_->byName(state);
- simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(
- value_str, "", type); /* if user didn't declare a value with a color, use no color */
- new simgrid::instr::PushStateEvent(MSG_get_clock(), container, type, val);
+ container_t container = simgrid::instr::Container::byName(host);
+ simgrid::instr::StateType* state = container->getState(state_name);
+ state->addEntityValue(value_name);
+ state->pushEvent(value_name);