public class PlatformAas extends Object implements AasContributor
AasContributor.Kind| Modifier and Type | Field and Description |
|---|---|
private static AasUtils.ResourceResolver |
imageResolver |
private static String |
MAVEN_SNAPSHOT_POSTFIX |
static String |
NAME_OPERATION_SNAPSHOTAAS |
static String |
NAME_PROPERTY_BUILDID |
static String |
NAME_PROPERTY_CITYTOWN |
static String |
NAME_PROPERTY_DEPARTMENT |
static String |
NAME_PROPERTY_ID |
static String |
NAME_PROPERTY_MANUFACTURER_LOGO |
static String |
NAME_PROPERTY_MANUFACTURER_NAME |
static String |
NAME_PROPERTY_MANUFACTURER_PRODUCT_DESIGNATION |
static String |
NAME_PROPERTY_NAME |
static String |
NAME_PROPERTY_PRODUCTIMAGE |
static String |
NAME_PROPERTY_RELEASE |
static String |
NAME_PROPERTY_STREET |
static String |
NAME_PROPERTY_VERSION |
static String |
NAME_PROPERTY_ZIPCODE |
static String |
NAME_SMC_ADDRESS |
static String |
NAME_SUBMODEL |
static String |
SUBMODEL_NAMEPLATE |
| Constructor and Description |
|---|
PlatformAas() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSoftwareInfo(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.Aas |
contributeTo(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder,
de.iip_ecosphere.platform.support.aas.InvocablesCreator iCreator)
Contribute to the given
aasBuilder. |
void |
contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder)
Contributes the real implementation functions to the
sBuilder. |
static void |
createAddress(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.SubmodelBuilder |
createNameplate(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder,
ApplicationSetup appSetup)
Creates the "nameplate".
|
static AasUtils.ResourceResolver |
getImageResolver()
Returns the image resolver.
|
AasContributor.Kind |
getKind()
Returns the kind of AAS being created.
|
boolean |
isValid()
Allow the AAS contributor to declare itself as invalid.
|
static void |
setImageResolver(AasUtils.ResourceResolver resolver)
Changes the image resolver.
|
(package private) static String |
snapshotAas(String id)
Snapshots an AAS, i.e., the
AasPartRegistry.getIipAasInstance(). |
public static final String NAME_SUBMODEL
public static final String SUBMODEL_NAMEPLATE
public static final String NAME_PROPERTY_NAME
public static final String NAME_PROPERTY_VERSION
public static final String NAME_PROPERTY_RELEASE
public static final String NAME_PROPERTY_BUILDID
public static final String NAME_OPERATION_SNAPSHOTAAS
public static final String NAME_PROPERTY_ID
public static final String NAME_PROPERTY_PRODUCTIMAGE
public static final String NAME_PROPERTY_MANUFACTURER_LOGO
public static final String NAME_PROPERTY_MANUFACTURER_NAME
public static final String NAME_PROPERTY_MANUFACTURER_PRODUCT_DESIGNATION
public static final String NAME_SMC_ADDRESS
public static final String NAME_PROPERTY_CITYTOWN
public static final String NAME_PROPERTY_DEPARTMENT
public static final String NAME_PROPERTY_STREET
public static final String NAME_PROPERTY_ZIPCODE
private static final String MAVEN_SNAPSHOT_POSTFIX
private static AasUtils.ResourceResolver imageResolver
public static void setImageResolver(AasUtils.ResourceResolver resolver)
resolver - the resolverpublic static AasUtils.ResourceResolver getImageResolver()
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)
AasContributoraasBuilder.contributeTo in interface AasContributoraasBuilder - the AAS to contribute toiCreator - the invocables creator for binding (remote) property and operation implementations. Property and
function namesshall be qualified by the AAS short id.aasBuilder and create an own AAS and return that. If this contributor
just contributes to the aasBuilder the result shall be nullpublic static void addSoftwareInfo(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smB,
ApplicationSetup appSetup)
smB - the submodel builderappSetup - the application setuppublic static de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder createNameplate(de.iip_ecosphere.platform.support.aas.Aas.AasBuilder aasBuilder,
ApplicationSetup appSetup)
aasBuilder - the AAS builder, do not call Builder.build() in here!appSetup - application setuppublic static void createAddress(de.iip_ecosphere.platform.support.aas.SubmodelElementContainerBuilder smBuilder,
ApplicationSetup.Address address)
smBuilder - the builder, do not call Builder.build() in here!address - the address to usepublic void contributeTo(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder sBuilder)
AasContributorsBuilder. Names used for the iCreator in
#contributeTo(AasBuilder, InvocablesCreator) must be the same as used here. Property and function names
shall be qualified by the AAS short id.contributeTo in interface AasContributorsBuilder - the server builderstatic String snapshotAas(String id) throws ExecutionException
AasPartRegistry.getIipAasInstance().id - an optional id to be placed into the file name, may be null or emptyExecutionException - if there is no IIP AAS instance or writing the instance fails for some reasonpublic AasContributor.Kind getKind()
AasContributorgetKind in interface AasContributorpublic boolean isValid()
AasContributorisValid in interface AasContributortrue as prerequisite to execute AasContributor.contributeTo(ProtocolServerBuilder) and
#contributeTo(AasBuilder, InvocablesCreator), false elseCopyright © 2022. All rights reserved.