container_id++;
if (father_) {
- XBT_DEBUG("new container %s, child of %s", name.c_str(), father->name_.c_str());
+ XBT_DEBUG("new container %s, child of %s", get_cname(), father->get_cname());
if (not type_name.empty()) {
type_ = father_->type_->by_name_or_create<ContainerType>(type_name);
//register all kinds by name
if (not allContainers.emplace(name_, this).second)
- THROWF(tracing_error, 1, "container %s already present in allContainers data structure", name_.c_str());
+ THROWF(tracing_error, 1, "container %s already present in allContainers data structure", get_cname());
- XBT_DEBUG("Add container name '%s'", name_.c_str());
+ XBT_DEBUG("Add container name '%s'", get_cname());
//register NODE types for triva configuration
if (type_name == "LINK")
Container::~Container()
{
- XBT_DEBUG("destroy container %s", name_.c_str());
+ XBT_DEBUG("destroy container %s", get_cname());
// Begin with destroying my own children
for (auto child : children_)
delete child.second;
if (father != nullptr){
father->children_.insert({std::move(alias), this});
- XBT_DEBUG("new type %s, child of %s", name_.c_str(), father->get_cname());
+ XBT_DEBUG("new type %s, child of %s", get_cname(), father->get_cname());
}
if (trace_format == simgrid::instr::TraceFormat::Paje) {
stream_ << std::fixed << std::setprecision(TRACE_precision());
surf_action_->set_bound(bound);
}
- XBT_DEBUG("Create execute synchro %p: %s", this, name_.c_str());
+ XBT_DEBUG("Create execute synchro %p: %s", this, get_cname());
ExecImpl::on_creation(this);
return this;
}
surf_action_ = storage_->io_start(size, type);
surf_action_->set_data(this);
- XBT_DEBUG("Create IO synchro %p %s", this, name_.c_str());
+ XBT_DEBUG("Create IO synchro %p %s", this, get_cname());
simgrid::kernel::activity::IoImpl::on_start(this);
return this;
NetZoneImpl::NetZoneImpl(NetZoneImpl* father, std::string name, resource::NetworkModel* network_model)
: network_model_(network_model), piface_(this), father_(father), name_(std::move(name))
{
- xbt_assert(nullptr == simgrid::s4u::Engine::get_instance()->netpoint_by_name_or_null(name_.c_str()),
- "Refusing to create a second NetZone called '%s'.", name_.c_str());
+ xbt_assert(nullptr == simgrid::s4u::Engine::get_instance()->netpoint_by_name_or_null(get_name()),
+ "Refusing to create a second NetZone called '%s'.", get_cname());
netpoint_ = new NetPoint(name_, NetPoint::Type::NetZone, father);
- XBT_DEBUG("NetZone '%s' created with the id '%u'", name_.c_str(), netpoint_->id());
+ XBT_DEBUG("NetZone '%s' created with the id '%u'", get_cname(), netpoint_->id());
}
NetZoneImpl::~NetZoneImpl()
kernel::routing::NetPoint* /*gw_src*/, kernel::routing::NetPoint* /*gw_dst*/,
std::vector<kernel::resource::LinkImpl*>& /*link_list*/, bool /*symmetrical*/)
{
- xbt_die("NetZone '%s' does not accept new routes (wrong class).", name_.c_str());
+ xbt_die("NetZone '%s' does not accept new routes (wrong class).", get_cname());
}
void NetZoneImpl::add_bypass_route(NetPoint* src, NetPoint* dst, NetPoint* gw_src, NetPoint* gw_dst,
Host::Host(std::string name) : name_(std::move(name))
{
- xbt_assert(Host::by_name_or_null(name_) == nullptr, "Refusing to create a second host named '%s'.", name_.c_str());
+ xbt_assert(Host::by_name_or_null(name_) == nullptr, "Refusing to create a second host named '%s'.", get_cname());
Engine::get_instance()->host_register(std::string(name_), this);
new simgrid::surf::HostImpl(this);
}
io->cancel();
} else {
simgrid::kernel::activity::ActivityImplPtr activity = waiting_synchro;
- xbt_die("Activity %s is of unknown type %s", activity->name_.c_str(),
+ xbt_die("Activity %s is of unknown type %s", activity->get_cname(),
simgrid::xbt::demangle(typeid(activity).name()).get());
}
XBT_INFO("Process %ld (%s@%s): waiting for %s synchro %p (%s) in state %d to finish", process->pid_,
process->get_cname(), process->host_->get_cname(), synchro_description, process->waiting_synchro.get(),
- process->waiting_synchro->name_.c_str(), (int)process->waiting_synchro->state_);
+ process->waiting_synchro->get_cname(), (int)process->waiting_synchro->state_);
}
else {
XBT_INFO("Process %ld (%s@%s)", process->pid_, process->get_cname(), process->host_->get_cname());