Represents a Network Switch.
Author: Manoel Campos da Silva Filho
Gets the level (layer) of the Switch in the network topology, depending if it is a root switch (layer 0), aggregate switch (layer 1) or edge switch (layer 2)
Returns: the switch network level
Gets the latency time the switch spends to process a received packet. This time is considered constant no matter how many packets the switch have to process (in seconds).
Returns: the switching delay
Sets the number of ports the switch has.
- ports – the number of ports to set