Class AasxDeviceAasProvider

java.lang.Object
de.iip_ecosphere.platform.ecsRuntime.deviceAas.DeviceAasProvider
de.iip_ecosphere.platform.ecsRuntime.deviceAas.AasxDeviceAasProvider

public class AasxDeviceAasProvider extends DeviceAasProvider
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:
  1. Classpath, device.aasx
  2. src/test/resources/device.aasx (for testing)
  3. Classpath, deviceId.aasx
Based on BaSyx / Generic Frame for Technical Data for Industrial Equipment in Manufacturing (Version 1.1) and for address a bit of ZVEI Digital Nameplate for industrial equipment V1.0.
Author:
Holger Eichelberger, SSE
  • Field Details

    • aasAddress

      private String aasAddress
    • identifier

      private String identifier
    • idShort

      private String idShort
  • Constructor Details

    • AasxDeviceAasProvider

      public AasxDeviceAasProvider()
  • Method Details

    • getURN

      public String getURN()
      Description copied from class: DeviceAasProvider
      Returns the URN of the device AAS.
      Specified by:
      getURN in class DeviceAasProvider
      Returns:
      the (envisioned) URN, may be null, if there is no AAS
    • getIdShort

      public String getIdShort()
      Description copied from class: DeviceAasProvider
      Returns the short ID of the device AAS.
      Specified by:
      getIdShort in class DeviceAasProvider
      Returns:
      the (envisioned) short ID, may be null, if there is no AAS
    • getDeviceAasAddress

      public String getDeviceAasAddress()
      Description copied from class: DeviceAasProvider
      Returns the device AAS address for this device.
      Specified by:
      getDeviceAasAddress in class DeviceAasProvider
      Returns:
      the device AAS address, may be null if there is no AAS
    • obtainAas

      private static List<de.iip_ecosphere.platform.support.aas.Aas> obtainAas() throws IOException
      Preliminary way to find an AASX file for the nameplate.
      Returns:
      the AAS (one or multiple) loaded from
      Throws:
      IOException - if the setup file cannot be read