Class YamlDeviceAasProvider
java.lang.Object
de.iip_ecosphere.platform.ecsRuntime.deviceAas.DeviceAasProvider
de.iip_ecosphere.platform.ecsRuntime.deviceAas.YamlDeviceAasProvider
Creates an AAS for this device, deploys it to the platform AAS server and returns the address of the AAS. This may
be useful for devices that do not provide an AAS by themselves.
Resolution sequence:
- Classpath,
nameplate.yml src/test/resources/nameplate.yml(for testing)- Classpath,
deviceId.yml
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplements the JSL descriptor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the device AAS address for this device.Returns the short ID of the device AAS.getURN()Returns the URN of the device AAS.static de.iip_ecosphere.platform.support.iip_aas.NameplateSetupPreliminary way to find the nameplate YML.Methods inherited from class de.iip_ecosphere.platform.ecsRuntime.deviceAas.DeviceAasProvider
getInstance
-
Field Details
-
SUBMODEL_NAMEPLATE
- See Also:
-
NAME_PROPERTY_PRODUCTIMAGE
- See Also:
-
aasAddress
-
-
Constructor Details
-
YamlDeviceAasProvider
public YamlDeviceAasProvider()
-
-
Method Details
-
getURN
Description copied from class:DeviceAasProviderReturns the URN of the device AAS.- Specified by:
getURNin classDeviceAasProvider- Returns:
- the (envisioned) URN, may be null, if there is no AAS
-
getIdShort
Description copied from class:DeviceAasProviderReturns the short ID of the device AAS.- Specified by:
getIdShortin classDeviceAasProvider- Returns:
- the (envisioned) short ID, may be null, if there is no AAS
-
getDeviceAasAddress
Description copied from class:DeviceAasProviderReturns the device AAS address for this device.- Specified by:
getDeviceAasAddressin classDeviceAasProvider- Returns:
- the device AAS address, may be null if there is no AAS
-
obtainNameplateSetup
public static de.iip_ecosphere.platform.support.iip_aas.NameplateSetup obtainNameplateSetup() throws IOExceptionPreliminary way to find the nameplate YML.- Returns:
- the setup representing the nameplate YML
- Throws:
IOException- if the setup file cannot be read
-