Template:— representing_assembly_structure (rep_assy) Date: 2008/03/03 06:04:43
Revision: 1.15
Template: representing_assembly_structure

XML references to the Template

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

representing_assembly_structure

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_assembly_structure" capability="representing_assembly_structure">
  <param name="parent">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="child">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="location_indicator">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="quantity">
    <param_value>1</param_value>
    <description></description>
  </param>
  <param name="unit">
    <param_value>Count</param_value>
    <description></description>
  </param>
  <param name="unit_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="si_unit">
    <param_value>false</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_assembly_structure">
  <param_in name="parent" value=""/>
  <param_in name="child" value=""/>
  <param_in name="location_indicator" value=""/>
  <param_in name="quantity" value="1"/>
  <param_in name="unit" value="Count"/>
  <param_in name="unit_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="si_unit" value="false"/>
</template_example>

representing_assembly_structure
/representing_assembly_structure(parent='', child='', location_indicator='', quantity='1', unit='Count', unit_ecl_id='urn:plcs:rdl:std', si_unit='false')/

Path

-- Create Next_assembly_usage instance
Next_assembly_usage
Next_assembly_usage.id = '/IGNORE'
Next_assembly_usage.relation_type = '/IGNORE'
Next_assembly_usage.description = '/IGNORE'
Next_assembly_usage.location_indicator = @location_indicator
%^nau = Next_assembly_usage%

-- Provide the quantity through template representing_quantity
-- and assign reference parameter ^quantity to its
-- reference param ^quantity
/representing_quantity(
    value= @quantity,
    unit_class_name=@unit,
    si_unit=@si_unit,
    unit_ecl_id=@unit_ecl_id)/
%^quantity = $representing_quantity.quantity%

-- instantiate relations to Next_assembly_usage
Next_assembly_usage.quantity -> ^quantity
Next_assembly_usage.relating_view -> @parent
Next_assembly_usage.related_view -> @child
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Next_assembly_usage.id '/IGNORE' View_definition_relationship.id
Next_assembly_usage.relation_type '/IGNORE' View_definition_relationship.relation_type
Next_assembly_usage.description '/IGNORE' View_definition_relationship.description
Next_assembly_usage.location_indicator @location_indicator Assembly_component_relationship.location_indicator

XML representation of path

<refpath
   template="representing_assembly_structure">
   <comment>
      Create Next_assembly_usage instance
   </comment>
   <instantiate
      entity="Next_assembly_usage"
      context="">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="location_indicator"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="location_indicator">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="nau">
      <express_entity
         entity="Next_assembly_usage"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Provide the quantity through template representing_quantity
   </comment>
   <comment>
      and assign reference parameter ^quantity to its
   </comment>
   <comment>
      reference param ^quantity
   </comment>
   <call_template
      name="representing_quantity"
      business_context="">
      <param_in
         name="value"
         value=" @quantity">
         
      </param_in>
      <param_in
         name="unit_class_name"
         value="@unit">
         
      </param_in>
      <param_in
         name="si_unit"
         value="@si_unit">
         
      </param_in>
      <param_in
         name="unit_ecl_id"
         value="@unit_ecl_id">
         
      </param_in>
   </call_template>
   <bind
      parameter="quantity">
      <template_instance
         template="representing_quantity"
         parameter="quantity">
         
      </template_instance>
   </bind>
   <comment>
      instantiate relations to Next_assembly_usage
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="quantity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="quantity">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="relating_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="parent">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Next_assembly_usage"
            attribute="related_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="child">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved