public class MongoDBAASAPI extends Object implements org.eclipse.basyx.aas.restapi.api.IAASAPI
| Constructor and Description |
|---|
MongoDBAASAPI(BaSyxMongoDBConfiguration config,
String aasId)
Receives the path of the configuration.properties file in it's constructor.
|
MongoDBAASAPI(String aasId)
Constructor using default sql connections
|
MongoDBAASAPI(String resourceConfigPath,
String aasId)
Receives the path of the .properties file in it's constructor from a resource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubmodel(org.eclipse.basyx.submodel.metamodel.api.reference.IReference submodel) |
org.eclipse.basyx.aas.metamodel.api.IAssetAdministrationShell |
getAAS() |
void |
removeSubmodel(String id) |
void |
setAAS(org.eclipse.basyx.aas.metamodel.map.AssetAdministrationShell aas)
Depending on whether the model is already in the db, this method inserts or replaces the existing data.
|
void |
setAASId(String aasId)
Sets the aas id, so that this API points to the aas with aasId.
|
void |
setConfiguration(BaSyxMongoDBConfiguration config) |
public MongoDBAASAPI(BaSyxMongoDBConfiguration config, String aasId)
configFilePath - public MongoDBAASAPI(String resourceConfigPath, String aasId)
public MongoDBAASAPI(String aasId)
public void setConfiguration(BaSyxMongoDBConfiguration config)
public void setAASId(String aasId)
smId - public void setAAS(org.eclipse.basyx.aas.metamodel.map.AssetAdministrationShell aas)
sm - public org.eclipse.basyx.aas.metamodel.api.IAssetAdministrationShell getAAS()
getAAS in interface org.eclipse.basyx.aas.restapi.api.IAASAPIpublic void addSubmodel(org.eclipse.basyx.submodel.metamodel.api.reference.IReference submodel)
addSubmodel in interface org.eclipse.basyx.aas.restapi.api.IAASAPIpublic void removeSubmodel(String id)
removeSubmodel in interface org.eclipse.basyx.aas.restapi.api.IAASAPICopyright © 2021. All rights reserved.