Application module: Physical unit 2D design view ISO/TS 10303-1724:2018-11(E)
© ISO

Cover page
Table of contents
Copyright
Foreword
Introduction
1 Scope
2 Normative references
3 Terms, definitions and abbreviated terms
    3.1 Terms and definitions
    3.2 Abbreviated terms

4 Information requirements
   4.1 Required AM ARMs
   4.2 ARM entity definitions
   4.3 ARM function definitions
   4.4 ARM rule definitions
5 Module interpreted model
   5.1 Mapping specification
   5.2 MIM EXPRESS short listing
     5.2.1 MIM entity definition
     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
F Change history
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:

Short names of entities defined in this schema are described in Annex A. Unambiguous identification of this schema is defined in Annex B.

EXPRESS specification:

*)
SCHEMA Physical_unit_2d_design_view_mim;

USE FROM Part_template_shape_with_parameters_mim;    --  ISO/TS 10303-1720

USE FROM Physical_unit_2d_shape_mim;    --  ISO/TS 10303-1726

USE FROM Physical_unit_design_view_mim;    --  ISO/TS 10303-1728

REFERENCE FROM support_resource_schema    --  ISO 10303-41
  (bag_to_set);
(*

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

Part_template_shape_with_parameters_mim ISO/TS 10303-1720
Physical_unit_2d_shape_mim ISO/TS 10303-1726
Physical_unit_design_view_mim ISO/TS 10303-1728
support_resource_schema ISO 10303-41

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

5.2.1 MIM entity definition

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

5.2.1.1 component_2d_location   EXPRESS-G

A component_2d_location is a type of context_dependent_shape_representation, shape_representation_relationship, representation_relationship_with_transformation and definitional_representation_relationship.

EXPRESS specification:

*)
ENTITY component_2d_location
  SUBTYPE OF (context_dependent_shape_representation, shape_representation_relationship, representation_relationship_with_transformation, definitional_representation_relationship);
DERIVE
  SELF\context_dependent_shape_representation.representation_relation : component_2d_location := SELF;
WHERE
  WR1: SELF\representation_relationship.name = 'component 2d location';
END_ENTITY;
(*

Attribute definitions:

representation_relation: an attribute inherited from the context_dependent_shape_representation shall be redeclared as the component_2d_location for the component_2d_location.

Formal propositions:

WR1: The name shall be 'component 2d location'.

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 cto2d_determinant_test

The cto2d_determinant_test function returns true if the expected_value is within the bounds defined by the delta value.

EXPRESS specification:

*)
FUNCTION cto2d_determinant_test (cto2d : cartesian_transformation_operator_2d; expected_value : REAL; delta : REAL) : BOOLEAN;
LOCAL
  det : REAL := 0.0;
  DRs : LIST [4:4] OF REAL := [];
END_LOCAL;
     DRs[1] := cto2d.u[1].direction_ratios[1];
     DRs[2] := cto2d.u[1].direction_ratios[2];
     DRs[3] := cto2d.u[2].direction_ratios[1];
     DRs[4] := cto2d.u[2].direction_ratios[2];
     det  :=  (DRs[1] * DRs[4]) - (DRs[2] * DRs[3]);
IF (Abs(expected_value - det) < Abs(delta) ) THEN
    RETURN (TRUE);
ELSE
    RETURN (FALSE);
END_IF;
END_FUNCTION;
(*

Argument definitions:

cto2d: the specified cartesian_transformation_operator_2d.

expected_value: the specified real value.

delta: the specified real value.



*)
END_SCHEMA;  -- Physical_unit_2d_design_view_mim
(*


© ISO 2018 — All rights reserved