aas_core3_2.constants

Provide constant values of the meta-model.

aas_core3_2.constants.XS_DOUBLE_OVERFLOW_THRESHOLD: Final[str] = '179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792'

Represent the smallest magnitude of a decimal which overflows an xs:double.

The decimals are rounded to the nearest double-precision floating-point number. Hence, the decimals at or beyond the half-way between the largest double, (2 - 2^-52) * 2^1023, and 2^1024 round to infinity. The half-way is the exact integer 2^1024 - 2^970, given here in decimal digits.

aas_core3_2.constants.XS_FLOAT_OVERFLOW_THRESHOLD: Final[str] = '340282356779733661637539395458142568448'

Represent the smallest magnitude of a decimal which overflows an xs:float.

The decimals are rounded to the nearest single-precision floating-point number. Hence, the decimals at or beyond the half-way between the largest float, (2 - 2^-23) * 2^127, and 2^128 round to infinity. The half-way is the exact integer 2^128 - 2^103, given here in decimal digits.

aas_core3_2.constants.GENERIC_FRAGMENT_KEYS: Final[AbstractSet[KeyTypes]] = {KeyTypes.FRAGMENT_REFERENCE}

Enumeration of all identifiable elements within an asset administration shell.

aas_core3_2.constants.GENERIC_GLOBALLY_IDENTIFIABLES: Final[AbstractSet[KeyTypes]] = {KeyTypes.GLOBAL_REFERENCE}

Enumeration of different key value types within a key.

aas_core3_2.constants.AAS_IDENTIFIABLES: Final[AbstractSet[KeyTypes]] = {<KeyTypes.IDENTIFIABLE: 'Identifiable'>, <KeyTypes.CONCEPT_DESCRIPTION: 'ConceptDescription'>, <KeyTypes.SUBMODEL: 'Submodel'>, <KeyTypes.ASSET_ADMINISTRATION_SHELL: 'AssetAdministrationShell'>}

Enumeration of different key value types within a key.

aas_core3_2.constants.AAS_SUBMODEL_ELEMENTS_AS_KEYS: Final[AbstractSet[KeyTypes]] = {<KeyTypes.SUBMODEL_ELEMENT_COLLECTION: 'SubmodelElementCollection'>, <KeyTypes.ANNOTATED_RELATIONSHIP_ELEMENT: 'AnnotatedRelationshipElement'>, <KeyTypes.CAPABILITY: 'Capability'>, <KeyTypes.BASIC_EVENT_ELEMENT: 'BasicEventElement'>, <KeyTypes.MULTI_LANGUAGE_PROPERTY: 'MultiLanguageProperty'>, <KeyTypes.BLOB: 'Blob'>, <KeyTypes.SUBMODEL_ELEMENT: 'SubmodelElement'>, <KeyTypes.DATA_ELEMENT: 'DataElement'>, <KeyTypes.RANGE: 'Range'>, <KeyTypes.ENTITY: 'Entity'>, <KeyTypes.EVENT_ELEMENT: 'EventElement'>, <KeyTypes.OPERATION: 'Operation'>, <KeyTypes.FILE: 'File'>, <KeyTypes.SUBMODEL_ELEMENT_LIST: 'SubmodelElementList'>, <KeyTypes.REFERENCE_ELEMENT: 'ReferenceElement'>, <KeyTypes.RELATIONSHIP_ELEMENT: 'RelationshipElement'>, <KeyTypes.PROPERTY: 'Property'>}

Enumeration of all submodel elements within an asset administration shell.

aas_core3_2.constants.AAS_REFERABLE_NON_IDENTIFIABLES: Final[AbstractSet[KeyTypes]] = {<KeyTypes.SUBMODEL_ELEMENT_COLLECTION: 'SubmodelElementCollection'>, <KeyTypes.ANNOTATED_RELATIONSHIP_ELEMENT: 'AnnotatedRelationshipElement'>, <KeyTypes.CAPABILITY: 'Capability'>, <KeyTypes.BASIC_EVENT_ELEMENT: 'BasicEventElement'>, <KeyTypes.MULTI_LANGUAGE_PROPERTY: 'MultiLanguageProperty'>, <KeyTypes.BLOB: 'Blob'>, <KeyTypes.SUBMODEL_ELEMENT: 'SubmodelElement'>, <KeyTypes.DATA_ELEMENT: 'DataElement'>, <KeyTypes.RANGE: 'Range'>, <KeyTypes.ENTITY: 'Entity'>, <KeyTypes.EVENT_ELEMENT: 'EventElement'>, <KeyTypes.OPERATION: 'Operation'>, <KeyTypes.FILE: 'File'>, <KeyTypes.SUBMODEL_ELEMENT_LIST: 'SubmodelElementList'>, <KeyTypes.REFERENCE_ELEMENT: 'ReferenceElement'>, <KeyTypes.RELATIONSHIP_ELEMENT: 'RelationshipElement'>, <KeyTypes.PROPERTY: 'Property'>}

Enumeration of different fragment key value types within a key.

aas_core3_2.constants.AAS_REFERABLES: Final[AbstractSet[KeyTypes]] = {<KeyTypes.ASSET_ADMINISTRATION_SHELL: 'AssetAdministrationShell'>, <KeyTypes.FILE: 'File'>, <KeyTypes.PROPERTY: 'Property'>, <KeyTypes.SUBMODEL_ELEMENT_COLLECTION: 'SubmodelElementCollection'>, <KeyTypes.IDENTIFIABLE: 'Identifiable'>, <KeyTypes.DATA_ELEMENT: 'DataElement'>, <KeyTypes.REFERABLE: 'Referable'>, <KeyTypes.ANNOTATED_RELATIONSHIP_ELEMENT: 'AnnotatedRelationshipElement'>, <KeyTypes.BASIC_EVENT_ELEMENT: 'BasicEventElement'>, <KeyTypes.CAPABILITY: 'Capability'>, <KeyTypes.MULTI_LANGUAGE_PROPERTY: 'MultiLanguageProperty'>, <KeyTypes.SUBMODEL_ELEMENT: 'SubmodelElement'>, <KeyTypes.SUBMODEL_ELEMENT_LIST: 'SubmodelElementList'>, <KeyTypes.CONCEPT_DESCRIPTION: 'ConceptDescription'>, <KeyTypes.RELATIONSHIP_ELEMENT: 'RelationshipElement'>, <KeyTypes.BLOB: 'Blob'>, <KeyTypes.RANGE: 'Range'>, <KeyTypes.ENTITY: 'Entity'>, <KeyTypes.EVENT_ELEMENT: 'EventElement'>, <KeyTypes.OPERATION: 'Operation'>, <KeyTypes.SUBMODEL: 'Submodel'>, <KeyTypes.REFERENCE_ELEMENT: 'ReferenceElement'>}

Enumeration of referables. We need this to check that model references refer to a Referable. For example, the observed attribute of the Basic Event Element object must be a model reference to a Referable.

aas_core3_2.constants.GLOBALLY_IDENTIFIABLES: Final[AbstractSet[KeyTypes]] = {<KeyTypes.GLOBAL_REFERENCE: 'GlobalReference'>, <KeyTypes.IDENTIFIABLE: 'Identifiable'>, <KeyTypes.ASSET_ADMINISTRATION_SHELL: 'AssetAdministrationShell'>, <KeyTypes.CONCEPT_DESCRIPTION: 'ConceptDescription'>, <KeyTypes.SUBMODEL: 'Submodel'>}

Enumeration of all referable elements within an asset administration shell

aas_core3_2.constants.FRAGMENT_KEYS: Final[AbstractSet[KeyTypes]] = {<KeyTypes.SUBMODEL_ELEMENT_COLLECTION: 'SubmodelElementCollection'>, <KeyTypes.ANNOTATED_RELATIONSHIP_ELEMENT: 'AnnotatedRelationshipElement'>, <KeyTypes.CAPABILITY: 'Capability'>, <KeyTypes.BASIC_EVENT_ELEMENT: 'BasicEventElement'>, <KeyTypes.FRAGMENT_REFERENCE: 'FragmentReference'>, <KeyTypes.BLOB: 'Blob'>, <KeyTypes.MULTI_LANGUAGE_PROPERTY: 'MultiLanguageProperty'>, <KeyTypes.SUBMODEL_ELEMENT: 'SubmodelElement'>, <KeyTypes.DATA_ELEMENT: 'DataElement'>, <KeyTypes.RANGE: 'Range'>, <KeyTypes.ENTITY: 'Entity'>, <KeyTypes.EVENT_ELEMENT: 'EventElement'>, <KeyTypes.OPERATION: 'Operation'>, <KeyTypes.FILE: 'File'>, <KeyTypes.SUBMODEL_ELEMENT_LIST: 'SubmodelElementList'>, <KeyTypes.REFERENCE_ELEMENT: 'ReferenceElement'>, <KeyTypes.RELATIONSHIP_ELEMENT: 'RelationshipElement'>, <KeyTypes.PROPERTY: 'Property'>}

Enumeration of different key value types within a key.

aas_core3_2.constants.DATA_TYPE_IEC_61360_FOR_PROPERTY_OR_VALUE: Final[AbstractSet[DataTypeIEC61360]] = {<DataTypeIEC61360.INTEGER_CURRENCY: 'INTEGER_CURRENCY'>, <DataTypeIEC61360.TIMESTAMP: 'TIMESTAMP'>, <DataTypeIEC61360.INTEGER_MEASURE: 'INTEGER_MEASURE'>, <DataTypeIEC61360.DATE: 'DATE'>, <DataTypeIEC61360.RATIONAL_MEASURE: 'RATIONAL_MEASURE'>, <DataTypeIEC61360.BOOLEAN: 'BOOLEAN'>, <DataTypeIEC61360.REAL_COUNT: 'REAL_COUNT'>, <DataTypeIEC61360.REAL_CURRENCY: 'REAL_CURRENCY'>, <DataTypeIEC61360.STRING: 'STRING'>, <DataTypeIEC61360.STRING_TRANSLATABLE: 'STRING_TRANSLATABLE'>, <DataTypeIEC61360.RATIONAL: 'RATIONAL'>, <DataTypeIEC61360.REAL_MEASURE: 'REAL_MEASURE'>, <DataTypeIEC61360.TIME: 'TIME'>, <DataTypeIEC61360.INTEGER_COUNT: 'INTEGER_COUNT'>}

IEC 61360 data types for concept descriptions categorized with PROPERTY or VALUE.

aas_core3_2.constants.DATA_TYPE_IEC_61360_FOR_REFERENCE: Final[AbstractSet[DataTypeIEC61360]] = {<DataTypeIEC61360.IRDI: 'IRDI'>, <DataTypeIEC61360.IRI: 'IRI'>, <DataTypeIEC61360.STRING: 'STRING'>}

IEC 61360 data types for concept descriptions categorized with REFERENCE.

aas_core3_2.constants.DATA_TYPE_IEC_61360_FOR_DOCUMENT: Final[AbstractSet[DataTypeIEC61360]] = {<DataTypeIEC61360.BLOB: 'BLOB'>, <DataTypeIEC61360.FILE: 'FILE'>, <DataTypeIEC61360.HTML: 'HTML'>}

IEC 61360 data types for concept descriptions categorized with DOCUMENT.

aas_core3_2.constants.IEC_61360_DATA_TYPES_WITH_UNIT: Final[AbstractSet[DataTypeIEC61360]] = {<DataTypeIEC61360.INTEGER_CURRENCY: 'INTEGER_CURRENCY'>, <DataTypeIEC61360.INTEGER_MEASURE: 'INTEGER_MEASURE'>, <DataTypeIEC61360.RATIONAL_MEASURE: 'RATIONAL_MEASURE'>, <DataTypeIEC61360.REAL_CURRENCY: 'REAL_CURRENCY'>, <DataTypeIEC61360.REAL_MEASURE: 'REAL_MEASURE'>}

These data types imply that the unit is defined in the data specification.