#include <xbt/base.h>
#include <xbt/signal.hpp>
-#include "src/kernel/routing/AsImpl.hpp"
+#include "src/kernel/routing/NetZoneImpl.hpp"
/*
#include <float.h>
#include <vector>
public:
enum class Type { Host, Router, As };
- NetCard(std::string name, NetCard::Type componentType, AsImpl* containingAS)
+ NetCard(std::string name, NetCard::Type componentType, NetZoneImpl* containingAS)
: name_(name), componentType_(componentType), containingAS_(containingAS)
{
if (containingAS != nullptr)
std::string name() { return name_; }
const char* cname() { return name_.c_str(); }
// This is the AS in which I am
- AsImpl* containingAS() { return containingAS_; }
+ NetZoneImpl* containingAS() { return containingAS_; }
bool isAS() { return componentType_ == Type::As; }
bool isHost() { return componentType_ == Type::Host; }
unsigned int id_;
std::string name_;
NetCard::Type componentType_;
- AsImpl* containingAS_;
+ NetZoneImpl* containingAS_;
};
}
}
}
+XBT_PUBLIC(sg_netcard_t) sg_netcard_by_name_or_null(const char* name);
+
#endif /* KERNEL_ROUTING_NETCARD_HPP_ */