ГОСТ Р ИСО 10303-14—2015
F.5 Квадратные скобки
Символыквадратныхскобок*[“и"]*используютсядлязаключениявнихветвейссылочногопути,всеиз
которыхдолжнысуществовать.ВязыкеEXPRESS-Xэтозадаетсяспомощьюдобавлениякобразуспецификаций
всехтакихподветвей:
Таблицаотображений:
Г mapped_item
mapped_item.:napping_target ->
representation item ]
[ mapped_item
mapped_item.mapping_source ->
representation_map
representation_map.mappir.g_origin ->
representation^item 1
ФрагментнаязыкеEXPRESS-X:
VIEW ...;
FROM ... mi:mapped_item; source:representation_item;
target:representation^tem; ...
WHERE ... mi.mapping_targettarget;
mi.mapping_source.mapping_originsource; ...
F.6 Пример
Таблицаотображенийобъекта
circular_closed_prof:le
на
numeric_parameter.
представляющий
атрибут
diameter:
circular_closed_profile <-
shape_aspect
shape_defmitior. - shape_aspect
shape_defin ition
characterizeddefir.ition - shape defir.ition
characterized_defir.ition <-
property_definition.definition
property_definitior. <-
property definitior._represer.tatior..definition
i property_definition_representation ->
shape_defir.ition_representation f
property_definitior._represer.tatior.
property_def:nition_represer.tatior..used_representation ->
i representation ->
shape_representation ->
shape_representation_with_parameters i
representation
representation.items[i] ->
( representation_item
representation_item.name - ’diameter’ )
representation_item ->
measure_representation_item
t measure_represer.tatior._item <-
measure_with_unit ->
length_measure_with_ur.it }
ФрагментнаязыкеEXPRESS-X:
VIEW find_diameter;
FROM ccp:circular_closed_profile;
sdr:shape_definitior._represer.tation;
srwp: shape_represer.tatior._with_parameters;
mri:теазиге_гергезепtation_itern;
lmwu:length_measure_with_unit;
ll)ENTIFIED_BY ccp;
WHERE sdr.definition.definitionccp;
sdr.used_representation :*■: srwp;
mri IN srwp.items;
mri.name - ’diameter’;
lmwumri;
RETURN
lmwu.value_component;
ENL>_V1£W;
66