- container_t container = PJ_container_get(host);
- type_t type = PJ_type_get (state, container->type);
- value* val =
- value::get_or_new(value_str, nullptr, type); /* if user didn't declare a value with a color, use nullptr color */
- new 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);