Class BaSyxRegistry

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.BaSyxRegistry
All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Registry

public class BaSyxRegistry
extends Object
implements de.iip_ecosphere.platform.support.aas.Registry
Implements a registry recipe for BaSyx.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private de.iip_ecosphere.platform.support.Endpoint endpoint  
    private org.eclipse.basyx.aas.manager.ConnectedAssetAdministrationShellManager manager  
    private org.eclipse.basyx.aas.registration.api.IAASRegistryService registry  
  • Constructor Summary

    Constructors 
    Constructor Description
    BaSyxRegistry​(de.iip_ecosphere.platform.support.Endpoint endpoint)
    Creates a registry recipe.
  • Method Summary

    Modifier and Type Method Description
    void createAas​(de.iip_ecosphere.platform.support.aas.Aas aas, String endpointURL)  
    void createSubmodel​(de.iip_ecosphere.platform.support.aas.Aas aas, de.iip_ecosphere.platform.support.aas.Submodel submodel)  
    private BaSyxConnectedAas obtainAas​(org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier aasId)
    Obtains an AAS for a given identifier.
    void register​(de.iip_ecosphere.platform.support.aas.Aas aas, de.iip_ecosphere.platform.support.aas.Submodel submodel, String endpointUrl)  
    de.iip_ecosphere.platform.support.aas.Aas retrieveAas​(String aasUrn)  
    de.iip_ecosphere.platform.support.aas.Submodel retrieveSubmodel​(String aasUrn, String submodelUrn)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • endpoint

      private de.iip_ecosphere.platform.support.Endpoint endpoint
    • registry

      private org.eclipse.basyx.aas.registration.api.IAASRegistryService registry
    • manager

      private org.eclipse.basyx.aas.manager.ConnectedAssetAdministrationShellManager manager
  • Constructor Details

    • BaSyxRegistry

      BaSyxRegistry​(de.iip_ecosphere.platform.support.Endpoint endpoint) throws IOException
      Creates a registry recipe.
      Parameters:
      endpoint - the registry endpoint
      Throws:
      IOException - if connecting the registry fails
  • Method Details

    • retrieveAas

      public de.iip_ecosphere.platform.support.aas.Aas retrieveAas​(String aasUrn) throws IOException
      Specified by:
      retrieveAas in interface de.iip_ecosphere.platform.support.aas.Registry
      Throws:
      IOException
    • obtainAas

      private BaSyxConnectedAas obtainAas​(org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier aasId) throws IOException
      Obtains an AAS for a given identifier.
      Parameters:
      aasId - the AAS identifier
      Returns:
      the AAS (may be null in case that the AAS cannot be obtained)
      Throws:
      IOException - in case that the access fails
    • retrieveSubmodel

      public de.iip_ecosphere.platform.support.aas.Submodel retrieveSubmodel​(String aasUrn, String submodelUrn) throws IOException
      Specified by:
      retrieveSubmodel in interface de.iip_ecosphere.platform.support.aas.Registry
      Throws:
      IOException
    • createAas

      public void createAas​(de.iip_ecosphere.platform.support.aas.Aas aas, String endpointURL)
      Specified by:
      createAas in interface de.iip_ecosphere.platform.support.aas.Registry
    • createSubmodel

      public void createSubmodel​(de.iip_ecosphere.platform.support.aas.Aas aas, de.iip_ecosphere.platform.support.aas.Submodel submodel)
      Specified by:
      createSubmodel in interface de.iip_ecosphere.platform.support.aas.Registry
    • register

      public void register​(de.iip_ecosphere.platform.support.aas.Aas aas, de.iip_ecosphere.platform.support.aas.Submodel submodel, String endpointUrl)
      Specified by:
      register in interface de.iip_ecosphere.platform.support.aas.Registry