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_;
};
}
}