Class Switch


public class Switch extends Network
Represents a network switch in the system | Représente un switch réseau dans le système.
Author:
FIGUEIRAS Jossua
  • Constructor Details

    • Switch

      public Switch(int id, String hostname, String ip_address, String mac_adress, String os, String status)
      Creates a Switch instance with explicit values | Crée une instance Switch avec des valeurs explicites.
      Parameters:
      id - the unique identifier of the switch | l'identifiant unique du switch
      hostname - the hostname of the switch | le nom d'hôte du switch
      ip_address - the IP address of the switch | l'adresse IP du switch
      mac_adress - the MAC address of the switch | l'adresse MAC du switch
      os - the operating system installed on the switch | le système d'exploitation installé sur le switch
      status - the current status of the switch | le statut actuel du switch
    • Switch

      public Switch(ResultSet sqlResult)
      Creates a Switch instance from a SQL result set | Crée une instance Switch à partir d'un résultat SQL.
      Parameters:
      sqlResult - the SQL result set containing switch data | le résultat SQL contenant les données du switch