14 std::vector<std::string> neighbors;
22 Device(
const std::string& deviceName);
Represents a network device (like a router or switch) in the SDN simulation.
std::string getName() const
Gets the name of the device.
bool isActive() const
Checks if the device is currently active.
void setActive(bool status)
Sets the device's active status.
void addNeighbor(const std::string &neighborName)
Adds a neighbor to this device.
const std::vector< std::string > & getNeighbors() const
Gets a reference to the list of neighbors.