Package org.sensorhub.api.comm
Interface ICommNetwork<ConfigType extends ModuleConfig>
- Type Parameters:
ConfigType
- Type of network configuration
- All Superinterfaces:
IEventProducer
,IModule<ConfigType>
,IModuleBase<ConfigType>
Interface used to represent communication networks of different types, such as Ethernet, WiFi, Bluetooth, Bluetooth LE, ZigBee, etc...
- Since:
- Feb 9, 2016
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.sensorhub.api.module.IModule
CANNOT_INIT_MSG, CANNOT_LOAD_MSG, CANNOT_START_MSG, CANNOT_STOP_MSG, CANNOT_UPDATE_MSG
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends INetworkInfo>
boolean
Checks if this network is compatible with given type.Methods inherited from interface org.sensorhub.api.module.IModule
cleanup, getCurrentError, getCurrentState, getDescription, getLocalID, getLogger, getParentHub, getStatusMessage, init, isInitialized, isStarted, loadState, registerListener, saveState, setConfiguration, setParentHub, start, stop, unregisterListener, updateConfig, waitForState
Methods inherited from interface org.sensorhub.api.module.IModuleBase
getConfiguration, getName, init
-
Method Details
-
getInterfaceName
String getInterfaceName()- Returns:
- Name of network interface
-
getNetworkType
ICommNetwork.NetworkType getNetworkType()- Returns:
- Type of network (Ethernet, WiFi, etc.)
-
isOfType
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
-