Interface ICommNetwork<ConfigType extends ModuleConfig>

Type Parameters:
ConfigType - Type of network configuration
All Superinterfaces:
IEventProducer, IModule<ConfigType>, IModuleBase<ConfigType>

public interface ICommNetwork<ConfigType extends ModuleConfig> extends IModule<ConfigType>

Interface used to represent communication networks of different types, such as Ethernet, WiFi, Bluetooth, Bluetooth LE, ZigBee, etc...

Since:
Feb 9, 2016
  • Method Details

    • getInterfaceName

      String getInterfaceName()
      Returns:
      Name of network interface
    • getNetworkType

      ICommNetwork.NetworkType getNetworkType()
      Returns:
      Type of network (Ethernet, WiFi, etc.)
    • isOfType

      boolean isOfType(ICommNetwork.NetworkType type)
      Checks if this network is compatible with given type.
      Parameters:
      type -
      Returns:
      true if this network supports the given type
    • getDeviceScanner

      IDeviceScanner getDeviceScanner()
      Returns:
      Device scanner for this network or null if device discovery is not supported
    • getAvailableNetworks

      Collection<? extends INetworkInfo> getAvailableNetworks()
      Returns:
      the list of networks available with this module TODO: move to INetworkManager