Class AbstractAas<A extends org.eclipse.basyx.aas.metamodel.api.IAssetAdministrationShell>
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.AbstractAas<A>
- Type Parameters:
A- the BaSyx AAS type to wrap
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Aas,de.iip_ecosphere.platform.support.aas.Element,de.iip_ecosphere.platform.support.aas.HasDataSpecification,de.iip_ecosphere.platform.support.aas.Identifiable,de.iip_ecosphere.platform.support.aas.Referable
- Direct Known Subclasses:
BaSyxAas,BaSyxConnectedAas
public abstract class AbstractAas<A extends org.eclipse.basyx.aas.metamodel.api.IAssetAdministrationShell> extends Object implements de.iip_ecosphere.platform.support.aas.Aas
Abstract implementation of the
Aas interface.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAbstractAas.BaSyxAbstractAasBuilderAn abstract builder for two concrete AAS types in BaSyx.static interfaceAbstractAas.BaSyxSubmodelParentRepresents the parent instance of a sub-model. -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAas(A aas)Creates an instance. -
Method Summary
Modifier and Type Method Description voidaccept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)de.iip_ecosphere.platform.support.aas.ReferencecreateReference()voiddelete(de.iip_ecosphere.platform.support.aas.Submodel submodel)(package private) AgetAas()Returns the AAS instance.static StringgetAasEndpoint(de.iip_ecosphere.platform.support.ServerAddress server, de.iip_ecosphere.platform.support.aas.Aas aas)Returns an AAS endpoint URI according to the BaSyx naming schema.de.iip_ecosphere.platform.support.aas.AssetgetAsset()StringgetIdShort()de.iip_ecosphere.platform.support.aas.SubmodelgetSubmodel(String idShort)intgetSubmodelCount()(package private) <S extends de.iip_ecosphere.platform.support.aas.Submodel>
Sregister(S submodel)Registers a sub-model.protected voidsetAsset(BaSyxAsset asset)Defines the asset.Iterable<de.iip_ecosphere.platform.support.aas.Submodel>submodels()
-
Field Details
-
Constructor Details
-
AbstractAas
Creates an instance. Prevents external creation.- Parameters:
aas- the BaSyx AAS instance
-
-
Method Details
-
getAas
A getAas()Returns the AAS instance.- Returns:
- the AAS instance
-
getIdShort
- Specified by:
getIdShortin interfacede.iip_ecosphere.platform.support.aas.Element
-
submodels
- Specified by:
submodelsin interfacede.iip_ecosphere.platform.support.aas.Aas
-
getSubmodelCount
public int getSubmodelCount()- Specified by:
getSubmodelCountin interfacede.iip_ecosphere.platform.support.aas.Aas
-
getSubmodel
- Specified by:
getSubmodelin interfacede.iip_ecosphere.platform.support.aas.Aas
-
register
<S extends de.iip_ecosphere.platform.support.aas.Submodel> S register(S submodel)Registers a sub-model.- Type Parameters:
S- the actual sub-model type- Parameters:
submodel- the sub-model to register- Returns:
subModel
-
accept
public void accept(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)- Specified by:
acceptin interfacede.iip_ecosphere.platform.support.aas.Element
-
createReference
public de.iip_ecosphere.platform.support.aas.Reference createReference()- Specified by:
createReferencein interfacede.iip_ecosphere.platform.support.aas.Aas
-
getAsset
public de.iip_ecosphere.platform.support.aas.Asset getAsset()- Specified by:
getAssetin interfacede.iip_ecosphere.platform.support.aas.Aas
-
setAsset
Defines the asset.- Parameters:
asset- the asset
-
delete
public void delete(de.iip_ecosphere.platform.support.aas.Submodel submodel)- Specified by:
deletein interfacede.iip_ecosphere.platform.support.aas.Aas
-
getAasEndpoint
public static String getAasEndpoint(de.iip_ecosphere.platform.support.ServerAddress server, de.iip_ecosphere.platform.support.aas.Aas aas)Returns an AAS endpoint URI according to the BaSyx naming schema. [public for testing, debugging]- Parameters:
server- the server addressaas- the AAS- Returns:
- the endpoint URI
-