- enum class Type { Host, Router, As };
-
- NetCard(std::string name, NetCard::Type componentType, AsImpl* containingAS)
- : name_(name), componentType_(componentType), containingAS_(containingAS)
- {
- if (containingAS != nullptr)
- id_ = containingAS->addComponent(this);
- simgrid::kernel::routing::netcardCreatedCallbacks(this);
- }
+ enum class Type { Host, Router, NetZone };
+
+ NetCard(std::string name, NetCard::Type componentType, NetZoneImpl* netzone_p);