smia.aas_model.extended_base module

class smia.aas_model.extended_base.ExtendedQualifier(type_: str, value_type: Type[relativedelta | datetime | Date | time | GYearMonth | GYear | GMonthDay | GMonth | GDay | bool | Base64Binary | HexBinary | Float | float | Decimal | int | Long | Int | Short | Byte | NonPositiveInteger | NegativeInteger | NonNegativeInteger | PositiveInteger | UnsignedLong | UnsignedInt | UnsignedShort | UnsignedByte | AnyURI | str | NormalizedString], value: relativedelta | datetime | Date | time | GYearMonth | GYear | GMonthDay | GMonth | GDay | bool | Base64Binary | HexBinary | Float | float | Decimal | int | Long | Int | Short | Byte | NonPositiveInteger | NegativeInteger | NonNegativeInteger | PositiveInteger | UnsignedLong | UnsignedInt | UnsignedShort | UnsignedByte | AnyURI | str | NormalizedString | None = None, value_id: Reference | None = None, kind: QualifierKind = QualifierKind.CONCEPT_QUALIFIER, semantic_id: Reference | None = None, supplemental_semantic_id: Iterable[Reference] = ())[source]

Bases: Qualifier

This class contains methods to be added to Qualifier class of Basyx Python SDK model.

class smia.aas_model.extended_base.ExtendedHasSemantics[source]

Bases: HasSemantics

This class contains methods to be added to HasSemantics class of Basyx Python SDK model.

check_semantic_id_exist(semantic_id_reference)[source]

This method checks if a specific semanticID exists in an AAS meta-model element.

Parameters:

semantic_id_reference (str) – semantic identifier.

Returns:

result of the check (only True if the semanticID exists).

Return type:

bool

check_suppl_semantic_id_exist(suppl_semantic_id_ref)[source]

This method checks if a specific supplemental semanticID exists in an AAS meta-model element.

Parameters:

suppl_semantic_id_ref (str) – supplemental semantic identifier.

Returns:

result of the check (only True if the semanticID exists).

Return type:

bool

class smia.aas_model.extended_base.ExtendedNamespace[source]

Bases: Namespace

check_if_element_is_structural()[source]

This method checks whether the AAS element is of type structural (Submodel, SubmodelElementCollection or SubmodelElementList).

Returns:

result of the check

Return type:

bool

class smia.aas_model.extended_base.ExtendedQualifiable[source]

Bases: Qualifiable

get_qualifier_value_by_type(qualifier_type_value)[source]

This method gets the value of the qualifier that has a given type.

Parameters:

qualifier_type_value (str) – type of the qualifier.

Returns:

value of the qualifier with the given type

Return type:

str

get_qualifier_value_by_semantic_id(qualifier_semantic_id)[source]

This method gets the value of the qualifier that has a given semanticID.

Parameters:

qualifier_semantic_id (str) – semanticID of the qualifier.

Returns:

value of the qualifier with the given type

Return type:

str