AP scope  |  AP module  |  AP contents  |  AP index
Application module: Single part representation ISO/TS 10303-1133:2004(E)
© ISO

Cover page
Table of contents
Copyright
Foreword
Introduction
1 Scope
2 Normative references
3 Terms, definitions and abbreviations

4 Information requirements
   4.1 Required AM ARMs
   4.2 ARM type definitions
5 Module interpreted model
   5.1 Mapping specification
   5.2 MIM EXPRESS short listing
     5.2.1 MIM type definitions
     5.2.2 MIM function definition

A MIM short names
B Information object registration
C ARM EXPRESS-G   EXPRESS-G
D MIM EXPRESS-G   EXPRESS-G
E Computer interpretable listings
Bibliography
Index

5.2 MIM EXPRESS short listing

This clause specifies the EXPRESS schema derived from the mapping table. It uses elements from the common resources or from other application modules and defines the EXPRESS constructs that are specific to this part of ISO 10303.

This clause constitutes the Module Interpreted Module (MIM) of the application module.

This clause also specifies the modifications that apply to the constructs imported from the common resources.

The following restrictions apply to the use, in this schema, of constructs defined in common resources or in application modules:

EXPRESS specification:

*)
SCHEMA Single_part_representation_mim;

USE FROM Document_assignment_mim;    --  ISO/TS 10303-1122

USE FROM Extended_measure_representation_mim;    --  ISO/TS 10303-1106

USE FROM External_model_mim;    --  ISO/TS 10303-1033

USE FROM Part_and_version_identification_mim;    --  ISO/TS 10303-1022

USE FROM Part_view_definition_mim;    --  ISO/TS 10303-1023

USE FROM Person_organization_assignment_mim;    --  ISO/TS 10303-1013

USE FROM Product_categorization_mim;    --  ISO/TS 10303-1016

USE FROM Property_assignment_mim;    --  ISO/TS 10303-1030

USE FROM Shape_property_assignment_mim;    --  ISO/TS 10303-1032
(*

NOTE 1   The schemas referenced above are specified in the following part of ISO 10303:

Document_assignment_mim ISO/TS 10303-1122
Extended_measure_representation_mim ISO/TS 10303-1106
External_model_mim ISO/TS 10303-1033
Part_and_version_identification_mim ISO/TS 10303-1022
Part_view_definition_mim ISO/TS 10303-1023
Person_organization_assignment_mim ISO/TS 10303-1013
Product_categorization_mim ISO/TS 10303-1016
Property_assignment_mim ISO/TS 10303-1030
Shape_property_assignment_mim ISO/TS 10303-1032

NOTE 2   See Annex D, Figures D.1and D.2 for a graphical representation of this schema.

5.2.1 MIM type definitions

This subclause specifies the MIM types for this application module. The MIM types and definitions are specified below.

5.2.1.1 spr_document_reference_item   EXPRESS-G

The spr_document_reference_item type is an extension of the document_reference_item type. It adds the data types product, product_definition and product_definition_formation to the list of alternate data types.

EXPRESS specification:

*)
TYPE spr_document_reference_item = SELECT BASED_ON document_reference_item WITH
   (product,
    product_definition,
    product_definition_formation);
END_TYPE;
(*

5.2.1.2 spr_organization_item   EXPRESS-G

The spr_organization_item type is an extension of the organization_item type. It adds the data types product, product_definition and product_definition_formation to the list of alternate data types.

NOTE  The list of entity data types may be extended in application modules that use the constructs of this module.

EXPRESS specification:

*)
TYPE spr_organization_item = EXTENSIBLE SELECT BASED_ON organization_item WITH
   (product,
    product_definition,
    product_definition_formation);
END_TYPE;
(*

5.2.1.3 spr_person_and_organization_item   EXPRESS-G

The spr_person_and_organization_item type is an extension of the person_and_organization_item type. It adds the data types product, product_definition and product_definition_formation to the list of alternate data types.

NOTE  The list of entity data types may be extended in application modules that use the constructs of this module.

EXPRESS specification:

*)
TYPE spr_person_and_organization_item = EXTENSIBLE SELECT BASED_ON person_and_organization_item WITH
   (product,
    product_definition,
    product_definition_formation);
END_TYPE;
(*

5.2.2 MIM function definition

This subclause specifies the MIM function for this module. The MIM function and definition is specified below.

5.2.2.1 categories_of_product

The categories_of_product function returns the set of product category names associated with the argument. The function evaluates the bag of instances of product_category that are associated with the input product through an instance of product_related_product_category. The function returns the SET of STRING values stored in the name attribute of the instances of product_category in the bag.

EXPRESS specification:

*)
FUNCTION categories_of_product (obj : product) :SET OF STRING;
LOCAL
category_assignments: BAG OF product_category;
categories: SET OF STRING:=[];
i: INTEGER;
END_LOCAL;
category_assignments := USEDIN(obj, 'PRODUCT_DEFINITION_SCHEMA' + '.PRODUCT_RELATED_PRODUCT_CATEGORY.PRODUCTS');
REPEAT i := LOINDEX(category_assignments) TO HIINDEX(category_assignments) BY 1;
categories := categories + category_assignments[i].name;
END_REPEAT;
RETURN(categories);
      
END_FUNCTION;
(*

Argument definitions:

obj: the product whose categories are searched.



*)
END_SCHEMA;  -- Single_part_representation_mim
(*


© ISO 2004 — All rights reserved