Class DeviceRegistryAas

java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryAas
All Implemented Interfaces:
de.iip_ecosphere.platform.support.iip_aas.AasContributor

public class DeviceRegistryAas extends Object implements de.iip_ecosphere.platform.support.iip_aas.AasContributor
A Asset Administration Shell for device registry functionalities. Mostly called by DeviceManagement and devices itself.
Author:
Dennis Pidun, University of Hildesheim
  • Field Details

  • Constructor Details

    • DeviceRegistryAas

      public DeviceRegistryAas()
  • Method Details

    • contributeTo

      public de.iip_ecosphere.platform.support.aas.Aas contributeTo(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, de.iip_ecosphere.platform.support.aas.InvocablesCreator iCreator)
      Basically registers the aas for the device registry.
      Specified by:
      contributeTo in interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
      Parameters:
      aasBuilder - the aasBuilder to contributeTo
      iCreator - an InvocablesCreator
      Returns:
      null
    • contributeTo

      public void contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder)
      Defines the operations details.
      Specified by:
      contributeTo in interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
      Parameters:
      sBuilder - the ProtocolServerBuilder
    • getQName

      private static String getQName(String name)
      Returns a qualified name within this submodel.
      Parameters:
      name - the name to be turned into a qualified name
      Returns:
      the qualified name
    • getKind

      public de.iip_ecosphere.platform.support.iip_aas.AasContributor.Kind getKind()
      This aas is a Kind.ACTIVE.
      Specified by:
      getKind in interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
      Returns:
      Kind.ACTIVE.
    • isValid

      public boolean isValid()
      In case this code is used as library one doesn't want that the aas is setup.
      Specified by:
      isValid in interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
      Returns:
      true if code based is not used as a library and the aas should be deployed.
    • notifyDeviceAdded

      public static void notifyDeviceAdded(String managedId, String resourceId, String resourceIp)
      Notify the DeviceRegistryAas if a device was added, so it can manage and build dynamic parts for this device.
      Parameters:
      managedId - the internal/managed id, could be the same as resourceId
      resourceId - the resource id
      resourceIp - the ip address of the resource
    • notifyDeviceRemoved

      public static void notifyDeviceRemoved(String resourceId)
      Notify the DeviceRegistryAas if a device was removed, so it can remove entries of the managed device.
      Parameters:
      resourceId - the id of the resource