Interface SddpDiscoveryParticipant
@NonNullByDefault
public interface SddpDiscoveryParticipant
A
SddpDiscoveryParticipant that is registered as a service is picked up by the SddpDiscoveryService
and can thus contribute DiscoveryResults from SDDP scans.- Author:
- Andrew Fiddian-Green - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable DiscoveryResultcreateResult(SddpDevice device) Creates a discovery result for a SDDP deviceDefines the list of thing types that this participant can identify@Nullable ThingUIDgetThingUID(SddpDevice device) Returns the thing UID for a SDDP device
-
Method Details
-
getSupportedThingTypeUIDs
Set<ThingTypeUID> getSupportedThingTypeUIDs()Defines the list of thing types that this participant can identify- Returns:
- a set of thing type UIDs for which results can be created
-
createResult
Creates a discovery result for a SDDP device- Parameters:
device- the SDDP device found on the network- Returns:
- the according discovery result or
null, if device is not supported by this participant
-
getThingUID
Returns the thing UID for a SDDP device- Parameters:
device- the SDDP device on the network- Returns:
- a thing UID or
null, if device is not supported by this participant
-