public class UntShapeGenerator extends Object
| Constructor and Description |
|---|
UntShapeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static rst.spatial.ShapeType.Shape |
generateUnitShape(String unitId,
UnitConfigCollectionProvider unitConfigCollectionProvider,
DeviceClassCollectionProvider deviceClassCollectionProvider)
Method returns the unit shape of the given unit referred by the id.
|
static rst.spatial.ShapeType.Shape |
generateUnitShape(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig,
UnitConfigCollectionProvider unitConfigCollectionProvider,
DeviceClassCollectionProvider deviceClassCollectionProvider)
Method returns the unit shape of the given unit referred by the unit config.
|
public static rst.spatial.ShapeType.Shape generateUnitShape(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig,
UnitConfigCollectionProvider unitConfigCollectionProvider,
DeviceClassCollectionProvider deviceClassCollectionProvider)
throws org.openbase.jul.exception.NotAvailableException
If this unit configuration does not provide any shape information the shape of the unit host will be returned. In case the unit host even does not provide any shape information and the unit is a device than the shape of the device class will be used.
unitConfig - the unit config to generate the shape for.unitConfigCollectionProvider - provider to resolve the unit config by id.deviceClassCollectionProvider - provider to resolve the unit class by id.org.openbase.jul.exception.NotAvailableException - is thrown if the unit shape is not available or the resolution has been failed.public static rst.spatial.ShapeType.Shape generateUnitShape(String unitId, UnitConfigCollectionProvider unitConfigCollectionProvider, DeviceClassCollectionProvider deviceClassCollectionProvider) throws org.openbase.jul.exception.NotAvailableException
If this unit configuration does not provide any shape information the shape of the unit host will be returned. In case the unit host even does not provide any shape information and the unit is a device than the shape of the device class will be used.
unitId - the id to resolve the unit shape.unitConfigCollectionProvider - provider to resolve the unit config by id.deviceClassCollectionProvider - provider to resolve the unit class by id.org.openbase.jul.exception.NotAvailableException - is thrown if the unit shape is not available or the resolution has been failed.Copyright © 2014–2018 openbase.org. All rights reserved.