Class PlatformAas
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.PlatformAas
- All Implemented Interfaces:
AasContributor
The platform name/typeplate.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.iip_aas.AasContributor
AasContributor.Kind -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static de.iip_ecosphere.platform.support.resources.ResourceResolverstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSoftwareInfo(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smB, ApplicationSetup appSetup) Add software-related information to the given submodel.de.iip_ecosphere.platform.support.aas.AascontributeTo(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, de.iip_ecosphere.platform.support.aas.InvocablesCreator iCreator) Contribute to the givenaasBuilder.voidcontributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder) Contributes the real implementation functions to thesBuilder.static voidcreateAddress(de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder smBuilder, ApplicationSetup.Address address) Creates (part) of a nameplate address.static de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuildercreateNameplate(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, ApplicationSetup appSetup, String identifier) Creates the "nameplate".private voidcreateSoftwareNameplate(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, ApplicationSetup appSetup, IipVersion versionInfo, String identification) Creates the software nameplate.static de.iip_ecosphere.platform.support.resources.ResourceResolverReturns the image resolver.getKind()Returns the kind of AAS being created.booleanisValid()Allow the AAS contributor to declare itself as invalid.static voidsetImageResolver(de.iip_ecosphere.platform.support.resources.ResourceResolver resolver) Changes the image resolver.(package private) static StringsnapshotAas(String id) Snapshots an AAS, i.e., theAasPartRegistry.getIipAasInstance().Methods 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.iip_aas.AasContributor
exists, getAasAuthentication, getSubmodelAuthentication
-
Field Details
-
NAME_SUBMODEL
- See Also:
-
SUBMODEL_NAMEPLATE
- See Also:
-
NAME_PROPERTY_NAME
- See Also:
-
NAME_PROPERTY_VERSION
- See Also:
-
NAME_PROPERTY_RELEASE
- See Also:
-
NAME_PROPERTY_BUILDID
- See Also:
-
NAME_OPERATION_SNAPSHOTAAS
- See Also:
-
NAME_OPERATION_RESOLVE_SEMANTICID
- See Also:
-
NAME_PROPERTY_ID
- See Also:
-
NAME_PROPERTY_PRODUCTIMAGE
- See Also:
-
NAME_PROPERTY_MANUFACTURER_LOGO
- See Also:
-
NAME_PROPERTY_MANUFACTURER_NAME
- See Also:
-
NAME_PROPERTY_MANUFACTURER_PRODUCT_DESIGNATION
- See Also:
-
NAME_SMC_ADDRESS
- See Also:
-
NAME_PROPERTY_CITYTOWN
- See Also:
-
NAME_PROPERTY_DEPARTMENT
- See Also:
-
NAME_PROPERTY_STREET
- See Also:
-
NAME_PROPERTY_ZIPCODE
- See Also:
-
imageResolver
private static de.iip_ecosphere.platform.support.resources.ResourceResolver imageResolver
-
-
Constructor Details
-
PlatformAas
public PlatformAas()
-
-
Method Details
-
setImageResolver
public static void setImageResolver(de.iip_ecosphere.platform.support.resources.ResourceResolver resolver) Changes the image resolver. [public for testing]- Parameters:
resolver- the resolver
-
getImageResolver
public static de.iip_ecosphere.platform.support.resources.ResourceResolver getImageResolver()Returns the image resolver. [public for testing]- Returns:
- the image resolver
-
contributeTo
public de.iip_ecosphere.platform.support.aas.Aas contributeTo(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, de.iip_ecosphere.platform.support.aas.InvocablesCreator iCreator) Description copied from interface:AasContributorContribute to the givenaasBuilder.- Specified by:
contributeToin interfaceAasContributor- Parameters:
aasBuilder- the AAS to contribute toiCreator- the invocables creator for binding (remote) property and operation implementations. Property and function names shall be qualified by the AAS short id.- Returns:
- the contributor may ignore
aasBuilderand create an own AAS and return that. If this contributor just contributes to theaasBuilderthe result shall be null
-
addSoftwareInfo
public static void addSoftwareInfo(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smB, ApplicationSetup appSetup) Add software-related information to the given submodel.- Parameters:
smB- the submodel builderappSetup- the application setup
-
createNameplate
public static de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder createNameplate(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, ApplicationSetup appSetup, String identifier) Creates the "nameplate". Currently a mix ofTechnicalDataBuilderand (for legacy reasons) the ZVEI Digital Nameplate for industrial equipment V1.0. AppliesRbacReceiver.rbacPlatform(AuthenticationDescriptor).- Parameters:
aasBuilder- the AAS builder, do not callBuilder.build()in here!appSetup- application setupidentifier- the submodel identifier, may be null then the submodel is identified via it's idShort only- Returns:
- submodel builder if something needs to be added
-
createSoftwareNameplate
private void createSoftwareNameplate(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder, ApplicationSetup appSetup, IipVersion versionInfo, String identification) Creates the software nameplate. AppliesRbacReceiver.rbacPlatform(AuthenticationDescriptor).- Parameters:
aasBuilder- the parent AAS builderappSetup- the application setupversionInfo- the version informationidentification- the identification of the submodel, may be null for idShort
-
createAddress
public static void createAddress(de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder smBuilder, ApplicationSetup.Address address) Creates (part) of a nameplate address. A bit of ZVEI Digital Nameplate for industrial equipment V1.0.- Parameters:
smBuilder- the builder, do not callBuilder.build()in here!address- the address to use
-
contributeTo
public void contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder) Description copied from interface:AasContributorContributes the real implementation functions to thesBuilder. Names used for theiCreatorinAasContributor.contributeTo(AasBuilder, InvocablesCreator)must be the same as used here. Property and function names shall be qualified by the AAS short id.- Specified by:
contributeToin interfaceAasContributor- Parameters:
sBuilder- the server builder
-
snapshotAas
Snapshots an AAS, i.e., theAasPartRegistry.getIipAasInstance().- Parameters:
id- an optional id to be placed into the file name, may be null or empty- Returns:
- the name of the file written, may be empty for none
- Throws:
ExecutionException- if there is no IIP AAS instance or writing the instance fails for some reason
-
getKind
Description copied from interface:AasContributorReturns the kind of AAS being created. This is helpful for filtering.- Specified by:
getKindin interfaceAasContributor- Returns:
- the kind of AAS
-
isValid
public boolean isValid()Description copied from interface:AasContributorAllow the AAS contributor to declare itself as invalid.- Specified by:
isValidin interfaceAasContributor- Returns:
trueas prerequisite to executeAasContributor.contributeTo(ProtocolServerBuilder)andAasContributor.contributeTo(AasBuilder, InvocablesCreator),falseelse
-