Template:— assigning_cad_model (ass_cad_mod)
Capability:assigning_product_properties
Date: 2011/10/07 08:40:46
Revision: 1.1
Template: assigning_cad_model

XML references to the Template

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

assigning_cad_model

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_cad_model" capability="assigning_product_properties">
  <param name="shape_for">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_doc_for">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cad_rep">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ass_cad_doc">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="doc_ass_role">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="doc_ar_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_cad_model">
  <param_in name="shape_for" value=""/>
  <param_in name="cad_doc_for" value=""/>
  <param_in name="cad_rep" value=""/>
  <param_in name="ass_cad_doc" value=""/>
  <param_in name="doc_ass_role" value=""/>
  <param_in name="doc_ar_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

assigning_cad_model
/assigning_cad_model(shape_for='', cad_doc_for='', cad_rep='', ass_cad_doc='', doc_ass_role='', doc_ar_ecl_id='urn:plcs:rdl:std')/

Path

-- Instantiate Item_shape
Item_shape

-- Bind the Item_shape to the parameter ^item_shape
%^item_shape = Item_shape%

-- Set the unused Item_shape attributes to be ignored
Item_shape.id = '/IGNORE'
Item_shape.description = '/IGNORE'

-- Set the used Item_shape relationship to the corresponding input parameter
Item_shape.described_element -> @shape_for

-- Instantiate Shape_description_association
Shape_description_association

-- Set the unused Shape_description_association attributes to be ignored
Shape_description_association.role = '/IGNORE'
Shape_description_association.description = '/IGNORE'

-- Set the used Shape_description_association relationship to the corresponding input parameter
Shape_description_association.representation -> @cad_rep

-- Instantiate the used Shape_description_association relationship within the template
Shape_description_association.represented_characteristic -> ^item_shape

-- Assign CAD document
/assigning_document(
    doc_ass_role=@doc_ass_role,
    doc_ar_ecl_id=@doc_ar_ecl_id,
    is_assigned_to=@cad_doc_for,
    assigned_document=@ass_cad_doc)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Item_shape.id '/IGNORE'
Item_shape.description '/IGNORE'
Shape_description_association.role '/IGNORE'
Shape_description_association.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_cad_model">
   <comment>
      Instantiate Item_shape
   </comment>
   <instantiate
      entity="Item_shape"
      context="">
      
   </instantiate>
   <comment>
      Bind the Item_shape to the parameter ^item_shape
   </comment>
   <bind
      parameter="item_shape">
      <express_entity
         entity="Item_shape"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the unused Item_shape attributes to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Item_shape"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Item_shape"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Item_shape relationship to the corresponding input parameter
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Item_shape"
            attribute="described_element"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="shape_for">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Shape_description_association
   </comment>
   <instantiate
      entity="Shape_description_association"
      context="">
      
   </instantiate>
   <comment>
      Set the unused Shape_description_association attributes to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Shape_description_association"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Shape_description_association"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Set the used Shape_description_association relationship to the corresponding input parameter
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Shape_description_association"
            attribute="representation"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="cad_rep">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate the used Shape_description_association relationship within the template
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Shape_description_association"
            attribute="represented_characteristic"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="item_shape">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign CAD document
   </comment>
   <call_template
      name="assigning_document"
      business_context="">
      <param_in
         name="doc_ass_role"
         value="@doc_ass_role">
         
      </param_in>
      <param_in
         name="doc_ar_ecl_id"
         value="@doc_ar_ecl_id">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="@cad_doc_for">
         
      </param_in>
      <param_in
         name="assigned_document"
         value="@ass_cad_doc">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved