namespace kernel {
namespace routing {
- AsImpl::AsImpl(const char *name) : As(name) { }
- AsImpl::~AsImpl() = default;
-
- xbt_dynar_t AsImpl::getOneLinkRoutes() {
- return nullptr;
+ AsImpl::AsImpl(As* father, const char* name) : As(father, name)
+ {
+ netcard_ = new simgrid::kernel::routing::NetCardImpl(name, simgrid::kernel::routing::NetCard::Type::As,
+ static_cast<AsImpl*>(father));
+ xbt_lib_set(as_router_lib, name, ROUTING_ASR_LEVEL, (void*)netcard_);
+ XBT_DEBUG("Having set name '%s' id '%d'", name, netcard_->id());
+ }
+ AsImpl::~AsImpl() = default;
+
+ xbt_dynar_t AsImpl::getOneLinkRoutes()
+ {
+ return nullptr;
}
/** @brief Get the common ancestor and its first childs in each line leading to src and dst */