public interface RegionService extends ListenerService<RegionEvent,RegionListener>
| Modifier and Type | Method and Description |
|---|---|
Region |
getRegion(RegionId regionId)
Returns the region with the specified identifier.
|
Set<DeviceId> |
getRegionDevices(RegionId regionId)
Returns the set of devices that belong to the specified region.
|
Region |
getRegionForDevice(DeviceId deviceId)
Returns the region to which the specified device belongs.
|
Set<Region> |
getRegions()
Returns set of all regions.
|
addListener, removeListenerRegion getRegion(RegionId regionId)
regionId - region identifierorg.onlab.util.ItemNotFoundException - if region with given
id does not existRegion getRegionForDevice(DeviceId deviceId)
deviceId - device identifier