public interface ContextDiscovery
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ContextDiscoveryListener listener)
Adds the listener.
|
void |
clear()
Clear the discovered context information.
|
void |
discover(boolean doSearch)
Fill the context information repository.
|
<T extends AbstractContextDescriptor> |
getDeviceReferencesForInstanceIdentifiers(Class<T> descriptorClass,
List<InstanceIdentifier> ids)
Returns a list of device references that have been discovered in the network and that match at
least one element in the id list.
|
List<InstanceIdentifier> |
getDiscoveredContextIds()
Returns a list of instance identifiers that have been discovered in the network and that are
related to a context descriptor.
|
List<InstanceIdentifier> |
getDiscoveredEnsembleIds()
Returns a list of instance identifiers that have been discovered in the network and that are
related to an ensemble context descriptor.
|
<T extends AbstractContextDescriptor> |
getDiscoveredIdsForDescriptorType(Class<T> descriptorClass)
Returns a list of instance identifiers that have been discovered in the network and that are
related to the context descriptor class.
|
List<InstanceIdentifier> |
getDiscoveredLocationIds()
Returns a list of instance identifiers that have been discovered in the network and that are
related to a location context descriptor.
|
List<InstanceIdentifier> |
getDiscoveredPatientIds()
Returns a list of instance identifiers that have been discovered in the network and that are
related to a patient context descriptor.
|
List<ContextHelper.InstanceIdentifierWithType<AbstractContextDescriptor>> |
getInstanceIdentifiersForDeviceReferences(org.ws4d.java.service.reference.DeviceReference deviceReference)
Returns a list of ids with context descriptor type that are in the scope of the device.
|
void |
removeListener(ContextDiscoveryListener listener)
Removes the listener.
|
void |
updateWithEndpointInformation(org.ws4d.java.service.reference.DeviceReference devRef)
Update with endpoint information.
|
List<InstanceIdentifier> getDiscoveredContextIds()
List<InstanceIdentifier> getDiscoveredLocationIds()
List<InstanceIdentifier> getDiscoveredPatientIds()
List<InstanceIdentifier> getDiscoveredEnsembleIds()
<T extends AbstractContextDescriptor> List<InstanceIdentifier> getDiscoveredIdsForDescriptorType(Class<T> descriptorClass)
T - the generic typedescriptorClass - the descriptor class<T extends AbstractContextDescriptor> List<org.ws4d.java.service.reference.DeviceReference> getDeviceReferencesForInstanceIdentifiers(Class<T> descriptorClass, List<InstanceIdentifier> ids)
T - the generic typedescriptorClass - the descriptor classids - the idsList<ContextHelper.InstanceIdentifierWithType<AbstractContextDescriptor>> getInstanceIdentifiersForDeviceReferences(org.ws4d.java.service.reference.DeviceReference deviceReference)
deviceReference - the device referencevoid updateWithEndpointInformation(org.ws4d.java.service.reference.DeviceReference devRef)
devRef - the dev refvoid clear()
void discover(boolean doSearch)
doSearch - if true, a network discovery will be performed.void addListener(ContextDiscoveryListener listener)
listener - the listenervoid removeListener(ContextDiscoveryListener listener)
listener - the listenerCopyright © 2018. All rights reserved.