Class BaSyxAas.BaSyxAasBuilder
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.AbstractAas.BaSyxAbstractAasBuilder
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxAas.BaSyxAasBuilder
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Aas.AasBuilder,de.iip_ecosphere.platform.support.aas.RbacReceiver<de.iip_ecosphere.platform.support.aas.Aas.AasBuilder>,de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Aas>
- Enclosing class:
BaSyxAas
Builder for
BaSyxAas.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaSyxAasBuilder(BaSyxAas instance) Creates an instance from an existing BaSyx instance.BaSyxAasBuilder(String idShort, String identifier) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.aas.Aasbuild()(package private) voidCallsBuilder.build()on all deferred builders.de.iip_ecosphere.platform.support.aas.AssetInformation.AssetInformationBuildercreateAssetInformationBuilder(String idShort, String urn, de.iip_ecosphere.platform.support.aas.AssetKind kind) de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuildercreateSubmodelBuilder(String idShort, String identifier) de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuildercreateSubmodelBuilder(String idShort, String identifier, de.iip_ecosphere.platform.support.aas.SetupSpec spec) (package private) voidRegisters a sub-build as deferred.(package private) BaSyxAasReturns the instance under creation.Returns the sub-model parent.de.iip_ecosphere.platform.support.aas.Aas.AasBuilderrbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth) de.iip_ecosphere.platform.support.aas.Aas.AasBuilderrbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.Role role, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacAction... actions) de.iip_ecosphere.platform.support.aas.Submodelregister(BaSyxSubmodel submodel) Registers a sub-model.(package private) voidsetAsset(BaSyxAssetInformation asset) Defines the asset for the AAS being under construction.Methods inherited from class de.iip_ecosphere.platform.support.aas.basyx2.AbstractAas.BaSyxAbstractAasBuilder
createReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.aas.Aas.AasBuilder
rbacMethods inherited from interface de.iip_ecosphere.platform.support.aas.RbacReceiver
rbacAll, rbacAllAuthenticated, rbacDevice, rbacPlatform
-
Field Details
-
instance
-
-
Constructor Details
-
BaSyxAasBuilder
Creates an instance. Prevents external creation.- Parameters:
idShort- the shortId of the AASidentifier- the identifier of the AAS (may be null or empty for an identification based onidShort, interpreted as an URN if this starts withurn)- Throws:
IllegalArgumentException- ifidShortorurnis null or empty
-
BaSyxAasBuilder
BaSyxAasBuilder(BaSyxAas instance) Creates an instance from an existing BaSyx instance. Prevents external creation.- Parameters:
instance- the BaSyx instance
-
-
Method Details
-
build
public de.iip_ecosphere.platform.support.aas.Aas build() -
createSubmodelBuilder
-
createSubmodelBuilder
-
register
public de.iip_ecosphere.platform.support.aas.Submodel register(BaSyxSubmodel submodel) throws IOException Description copied from class:AbstractAas.BaSyxAbstractAasBuilderRegisters a sub-model.- Specified by:
registerin classAbstractAas.BaSyxAbstractAasBuilder- Parameters:
submodel- the sub-model- Returns:
submodel- Throws:
IOException- if the submodel cannot be registered, e.g. due to permission issues
-
getInstance
BaSyxAas getInstance()Returns the instance under creation.- Specified by:
getInstancein classAbstractAas.BaSyxAbstractAasBuilder- Returns:
- the instance
-
getSubmodelParent
Description copied from class:AbstractAas.BaSyxAbstractAasBuilderReturns the sub-model parent.- Specified by:
getSubmodelParentin classAbstractAas.BaSyxAbstractAasBuilder- Returns:
- the sub-model parent
-
createAssetInformationBuilder
-
setAsset
Description copied from class:AbstractAas.BaSyxAbstractAasBuilderDefines the asset for the AAS being under construction.- Specified by:
setAssetin classAbstractAas.BaSyxAbstractAasBuilder- Parameters:
asset- the asset
-
defer
Description copied from class:AbstractAas.BaSyxAbstractAasBuilderRegisters a sub-build as deferred.- Specified by:
deferin classAbstractAas.BaSyxAbstractAasBuilder- Parameters:
shortId- the shortId of the elementbuilder- the sub-builder to be registered- See Also:
-
buildMyDeferred
void buildMyDeferred()Description copied from class:AbstractAas.BaSyxAbstractAasBuilderCallsBuilder.build()on all deferred builders.- Specified by:
buildMyDeferredin classAbstractAas.BaSyxAbstractAasBuilder- See Also:
-
rbac
public de.iip_ecosphere.platform.support.aas.Aas.AasBuilder rbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.Role role, de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor.RbacAction... actions) -
rbac
public de.iip_ecosphere.platform.support.aas.Aas.AasBuilder rbac(de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor auth)
-