Class AasSpecSummary
java.lang.Object
de.iip_ecosphere.platform.configuration.aas.AasSpecSummary
Summarizes a specification.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAasSpecSummary(List<AasType> types, List<AasEnum> enums) Creates a specification summary. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidensureUniqueFieldName(Set<String> fieldIdShorts, AasField field) Ensures unique field idShort names.enums()Returns the enumerations in the specification.private static de.iip_ecosphere.platform.support.logging.LoggerReturns the logger instance for this class.Returns the main submodel of the specification.Returns the IVML project name.Returns the specification number.getTitle()Returns the full title of the specification.intReturns the number of types.de.iip_ecosphere.platform.support.VersionReturns the numeric version of the specification.Returns the IDTA version identifier.private voidConditionally emits a warning.voidEmits some model statistics ontoout.private voidregisterType(Map<String, AasType> typeMap, Map<String, AasType> sIdTypeMap, String idShort, AasType type) Registerstype.(package private) voidsetIdentifier(String projectName, String versionIdentifier, de.iip_ecosphere.platform.support.Version version, String title, String specNumber) Sets the identification.types()Returns the types in the specification.private voidvalidate()Validates the model information towards IVML postprocessing.private voidValidates an enumeration specification.
-
Field Details
-
version
private de.iip_ecosphere.platform.support.Version version -
projectName
-
versionIdentifier
-
specNumber
-
title
-
types
-
enums
-
-
Constructor Details
-
AasSpecSummary
Creates a specification summary. Validates the input and potentially modifies it.- Parameters:
types- the types in the specificationenums- the enums in the specification
-
-
Method Details
-
setIdentifier
void setIdentifier(String projectName, String versionIdentifier, de.iip_ecosphere.platform.support.Version version, String title, String specNumber) Sets the identification.- Parameters:
projectName- the IVML project nameversionIdentifier- the IDTA version identifierversion- the numeric versiontitle- the full title of the specificationspecNumber- the specification number
-
registerType
private void registerType(Map<String, AasType> typeMap, Map<String, AasType> sIdTypeMap, String idShort, AasType type) Registerstype.- Parameters:
typeMap- the idShort/type map to modify as a side effectsIdTypeMap- the semanticId/type map to modify as a side effectidShort- the idShort to use (typically the one oftypebut if being renamed, the old idShort before renaming)type- the type to register
-
validate
private void validate()Validates the model information towards IVML postprocessing. -
ensureUniqueFieldName
Ensures unique field idShort names. May modify the idShort offield.- Parameters:
fieldIdShorts- the collected/used idShorts of the fields of the same type so farfield- the field to check
-
info
Conditionally emits a warning.- Parameters:
condition- the condition, must betruefor emitting the warningtext- the text in logger styleargs- the arguments
-
validate
Validates an enumeration specification.- Parameters:
en- the enumeration to validate
-
getProjectName
Returns the IVML project name.- Returns:
- the project name
-
getVersion
public de.iip_ecosphere.platform.support.Version getVersion()Returns the numeric version of the specification.- Returns:
- the version (if present, else null)
-
getVersionIdentifier
Returns the IDTA version identifier.- Returns:
- the version identifier
-
getTitle
Returns the full title of the specification.- Returns:
- the full title of the specification
-
getTypesCount
public int getTypesCount()Returns the number of types.- Returns:
- the number of types
-
getMainSubmodel
Returns the main submodel of the specification.- Returns:
- the main submodel
-
types
Returns the types in the specification.- Returns:
- the types
-
enums
Returns the enumerations in the specification.- Returns:
- the enumerations
-
getSpecNumber
Returns the specification number.- Returns:
- the specification number
-
printStatistics
Emits some model statistics ontoout.- Parameters:
out- the output stream
-
getLogger
private static de.iip_ecosphere.platform.support.logging.Logger getLogger()Returns the logger instance for this class.- Returns:
- the logger instance
-