Template:— representing_geometric_property (rep_geom_prop)
Capability:representing_properties_numerically
Date: 2011/10/24 15:44:06
Revision: 1.4
Template: representing_geometric_property

XML references to the Template

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

representing_geometric_property

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_geometric_property" capability="representing_properties_numerically">
  <param name="geometric_context">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="point">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="coordinates">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_geometric_property">
  <param_in name="geometric_context" value=""/>
  <param_in name="point" value=""/>
  <param_in name="coordinates" value=""/>
</template_example>

representing_geometric_property
/representing_geometric_property(geometric_context='', point='', coordinates='')/

Path

-- Instantiate Cartesian_point
Cartesian_point
%^cartesian_point = Cartesian_point%

-- Set the used Cartesian_point attributes to the corresponding input parameters
Cartesian_point.name = @point
Cartesian_point.coordinates = @coordinates

-- Instantiate Geometric_model
Geometric_model

-- Bind the Geometric_model to the parameter ^model
%^model = Geometric_model%

-- Set the unused Geometric_model attributes to be ignored
Geometric_model.id = '/IGNORE'
Geometric_model.name = '/IGNORE'
Geometric_model.description = '/IGNORE'
Geometric_model.version_id = '/IGNORE'

-- leave Geometric_model.model_extent unset
-- Instantiate the used Geometric_model relationsips
Geometric_model.context_of_items -> @geometric_context
Geometric_model.items -> ^cartesian_point
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Cartesian_point.name @point Representation_item.name
Cartesian_point.coordinates @coordinates
Geometric_model.id '/IGNORE' Representation.id
Geometric_model.name '/IGNORE' Representation.name
Geometric_model.description '/IGNORE' Representation.description
Geometric_model.version_id '/IGNORE'

XML representation of path

<refpath
   template="representing_geometric_property">
   <comment>
      Instantiate Cartesian_point
   </comment>
   <instantiate
      entity="Cartesian_point"
      context="">
      
   </instantiate>
   <bind
      parameter="cartesian_point">
      <express_entity
         entity="Cartesian_point"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the used Cartesian_point attributes to the corresponding input parameters
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Cartesian_point"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="point">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Cartesian_point"
            attribute="coordinates"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="coordinates">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Geometric_model
   </comment>
   <instantiate
      entity="Geometric_model"
      context="">
      
   </instantiate>
   <comment>
      Bind the Geometric_model to the parameter ^model
   </comment>
   <bind
      parameter="model">
      <express_entity
         entity="Geometric_model"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Geometric_model attributes to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_model"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_model"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_model"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Geometric_model"
            attribute="version_id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      leave Geometric_model.model_extent unset
   </comment>
   <comment>
      Instantiate the used Geometric_model relationsips
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Geometric_model"
            attribute="context_of_items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="geometric_context">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Geometric_model"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cartesian_point">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved