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
-
Constructor Summary
Constructors Constructor Description BaSyxRegistry(de.iip_ecosphere.platform.support.Endpoint endpoint)Creates a registry recipe. -
Method Summary
Modifier and Type Method Description voidcreateAas(de.iip_ecosphere.platform.support.aas.Aas aas, String endpointURL)voidcreateSubmodel(de.iip_ecosphere.platform.support.aas.Aas aas, de.iip_ecosphere.platform.support.aas.Submodel submodel)private BaSyxConnectedAasobtainAas(org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier aasId)Obtains an AAS for a given identifier.voidregister(de.iip_ecosphere.platform.support.aas.Aas aas, de.iip_ecosphere.platform.support.aas.Submodel submodel, String endpointUrl)de.iip_ecosphere.platform.support.aas.AasretrieveAas(String aasUrn)de.iip_ecosphere.platform.support.aas.SubmodelretrieveSubmodel(String aasUrn, String submodelUrn)
-
Field Details
-
Constructor Details
-
BaSyxRegistry
Creates a registry recipe.- Parameters:
endpoint- the registry endpoint- Throws:
IOException- if connecting the registry fails
-
-
Method Details
-
retrieveAas
- Specified by:
retrieveAasin interfacede.iip_ecosphere.platform.support.aas.Registry- Throws:
IOException
-
obtainAas
private BaSyxConnectedAas obtainAas(org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier aasId) throws IOExceptionObtains 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:
retrieveSubmodelin interfacede.iip_ecosphere.platform.support.aas.Registry- Throws:
IOException
-
createAas
- Specified by:
createAasin interfacede.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:
createSubmodelin interfacede.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:
registerin interfacede.iip_ecosphere.platform.support.aas.Registry
-