public interface DeviceDescriptionDiscovery extends HandlerBehaviour
Modifier and Type | Method and Description |
---|---|
DeviceDescription |
discoverDeviceDetails()
Returns a device description appropriately annotated to support
downstream model extension via projections of the resulting device,
as in the following example.
|
java.util.List<PortDescription> |
discoverPortDetails()
Returns a list of port descriptions appropriately annotated to support
downstream model extension via projections of their parent device,
as in the following example.
|
handler, setHandler
DeviceDescription discoverDeviceDetails()
MicrowaveDevice device = deviceService.get(id).as(MicrowaveDevice.class);
java.util.List<PortDescription> discoverPortDetails()
MicrowaveDevice device = deviceService.get(id).as(MicrowaveDevice.class); List<MicrowavePort> ports = device.microwavePorts(deviceService.getPorts(id));