Template:— representing_geometric_context (rep_geom_cntx)
Capability:representing_properties_numerically
Date: 2011/10/21 08:39:53
Revision: 1.2
Template: representing_geometric_context

XML references to the Template

These can be cut and pasted into the XML as required.

representing_geometric_context

Set up a hyperlink to the template definition.
<template_ref name="representing_geometric_context" capability="representing_properties_numerically"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_geometric_context" capability="representing_properties_numerically">
  <param name="length_unit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="length_unit_ecl">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="plane_angle_unit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="plane_angle_unit_ecl">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="si_length_unit">
    <param_value>false</param_value>
    <description></description>
  </param>
  <param name="dimension_count">
    <param_value>3</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_geometric_context">
  <param_in name="length_unit" value=""/>
  <param_in name="length_unit_ecl" value="urn:plcs:rdl:std"/>
  <param_in name="plane_angle_unit" value=""/>
  <param_in name="plane_angle_unit_ecl" value="urn:plcs:rdl:std"/>
  <param_in name="si_length_unit" value="false"/>
  <param_in name="dimension_count" value="3"/>
</template_example>

representing_geometric_context
/representing_geometric_context(length_unit='', length_unit_ecl='urn:plcs:rdl:std', plane_angle_unit='', plane_angle_unit_ecl='urn:plcs:rdl:std', si_length_unit='false', dimension_count='3')/

Path

-- Instantiate Length_unit
Length_unit

-- Set the unused Length_unit name attribute to be ignored
Length_unit.name = '/IGNORE'

-- Set the used Length_unit si_unit attribute to the corresponding input parameter
Length_unit.si_unit = @si_length_unit

-- Assign reference data for Length_unit
/assigning_reference_data(
    items=Length_unit,
    class_name=@length_unit,
    ecl_id=@length_unit_ecl)/

-- Instantiate Plane_angle_unit
Plane_angle_unit

-- Set the unused Plane_angle_unit name attribute to be ignored
Plane_angle_unit.name = '/IGNORE'

-- Set the Plane_angle_unit si_unit attribute to "false"
Plane_angle_unit.si_unit = '.F.'

-- Assign reference data for Plane_angle_unit
/assigning_reference_data(
    items=Plane_angle_unit,
    class_name=@plane_angle_unit,
    ecl_id=@plane_angle_unit_ecl)/

-- Instantiate Geometric_coordinate_space
Geometric_coordinate_space

-- Bind the Geometric_coordinate_space to the parameter ^coordinate_space
%^coordinate_space = Geometric_coordinate_space%

-- Set the unused Geometric_coordinate_space.id attribute to be ignored
Geometric_coordinate_space.id = '/IGNORE'

-- Set the Geometric_coordinate_space.kind attribute to the default value for PLCS 'external'
-- since all geometry representations are external to PLCS
Geometric_coordinate_space.kind = 'external'

-- Set the used Geometric_coordinate_space attributes to the corresponding input parameters
Geometric_coordinate_space.dimension_count = @dimension_count

-- Instantiate the used Geometric_coordinate_space relationship
Geometric_coordinate_space.units -> Length_unit
Geometric_coordinate_space.units -> Plane_angle_unit
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Length_unit.name '/IGNORE' Unit.name
Length_unit.si_unit @si_length_unit Unit.si_unit
Plane_angle_unit.name '/IGNORE' Unit.name
Plane_angle_unit.si_unit '.F.' Unit.si_unit
Geometric_coordinate_space.id '/IGNORE' Representation_context.id
Geometric_coordinate_space.kind 'external' Representation_context.kind
Geometric_coordinate_space.dimension_count @dimension_count

XML representation of path

<refpath
   template="representing_geometric_context">
   <comment>
      Instantiate Length_unit
   </comment>
   <instantiate
      entity="Length_unit"
      context="">
      
   </instantiate>
   <comment>
      Set the unused Length_unit name attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Length_unit"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Length_unit si_unit attribute to the corresponding input parameter
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Length_unit"
            attribute="si_unit"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="si_length_unit">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign reference data for Length_unit
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Length_unit">
         
      </param_in>
      <param_in
         name="class_name"
         value="@length_unit">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@length_unit_ecl">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate Plane_angle_unit
   </comment>
   <instantiate
      entity="Plane_angle_unit"
      context="">
      
   </instantiate>
   <comment>
      Set the unused Plane_angle_unit name attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Plane_angle_unit"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the Plane_angle_unit si_unit attribute to "false"
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Plane_angle_unit"
            attribute="si_unit"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '.F.' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign reference data for Plane_angle_unit
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Plane_angle_unit">
         
      </param_in>
      <param_in
         name="class_name"
         value="@plane_angle_unit">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@plane_angle_unit_ecl">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate Geometric_coordinate_space
   </comment>
   <instantiate
      entity="Geometric_coordinate_space"
      context="">
      
   </instantiate>
   <comment>
      Bind the Geometric_coordinate_space to the parameter ^coordinate_space
   </comment>
   <bind
      parameter="coordinate_space">
      <express_entity
         entity="Geometric_coordinate_space"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Geometric_coordinate_space.id attribute to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_coordinate_space"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the Geometric_coordinate_space.kind attribute to the default value for PLCS 'external'
   </comment>
   <comment>
      since all geometry representations are external to PLCS
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_coordinate_space"
            attribute="kind"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" 'external' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Geometric_coordinate_space attributes to the corresponding input parameters
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_coordinate_space"
            attribute="dimension_count"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="dimension_count">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate the used Geometric_coordinate_space relationship
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Geometric_coordinate_space"
            attribute="units"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Length_unit"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Geometric_coordinate_space"
            attribute="units"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Plane_angle_unit"
            context="">
            
         </express_entity>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved