/**
   * Function to add component(s) to the the components list.
   *
   * @param NewComponents An array of new components.
   */
  @Override
  public void addComponents(Object[] NewComponents) {
    components = ComponentsManagment.addComponents(NewComponents, components, componentCounter);

    // Sets the new count for number of components in the array
    componentCounter = components.length;
  }
  /**
   * Function to add device(s) to the the connceted devices list.
   *
   * @param NewConnectedDevices An array of new devices.
   */
  @Override
  public void addConnectedDevices(Object[] NewConnectedDevices) {
    connectedDevices =
        ComponentsManagment.addComponents(
            NewConnectedDevices, connectedDevices, connectedDevicesCounter);

    // Sets the new count for number of connected devices in the array
    connectedDevicesCounter = connectedDevices.length;
  }