Template:— representing_physical_structure (rep_phys_structr) Date: 2007/12/19 12:13:02
Revision: 1.20
Template: representing_physical_structure

XML references to the Template

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

representing_physical_structure

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_physical_structure" capability="representing_breakdown_structure">
  <param name="rel_type_name">
    <param_value>Physical_element_usage</param_value>
    <description></description>
  </param>
  <param name="rel_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="parent">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="child">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_physical_structure">
  <param_in name="rel_type_name" value="Physical_element_usage"/>
  <param_in name="rel_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="parent" value=""/>
  <param_in name="child" value=""/>
</template_example>

representing_physical_structure
/representing_physical_structure(rel_type_name='Physical_element_usage', rel_ecl_id='urn:plcs:rdl:std', parent='', child='')/

Path

-- Create Physical_element_usage instance
Physical_element_usage

-- Mark the Identification_assignment entity as
-- referable when this template is used by binding it to the reference
-- parameter ^usage
Physical_element_usage.id = '/IGNORE'
Physical_element_usage.relation_type = '/IGNORE'
Physical_element_usage.description = '/IGNORE'
Physical_element_usage.name = '/IGNORE'
%^usage = Physical_element_usage%

-- instantiate relations to Physical_element_usage
Physical_element_usage.relating_view -> @parent
Physical_element_usage.related_view -> @child

-- Classify the relationship
/assigning_reference_data(
    class_name=@rel_type_name,
    ecl_id=@rel_ecl_id,
    items=^usage)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Physical_element_usage.id '/IGNORE' View_definition_relationship.id
Physical_element_usage.relation_type '/IGNORE' View_definition_relationship.relation_type
Physical_element_usage.description '/IGNORE' View_definition_relationship.description
Physical_element_usage.name '/IGNORE' Breakdown_element_usage.name

XML representation of path

<refpath
   template="representing_physical_structure">
   <comment>
      Create Physical_element_usage instance
   </comment>
   <instantiate
      entity="Physical_element_usage"
      context="">
      
   </instantiate>
   <comment>
      Mark the Identification_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^usage
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Physical_element_usage"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Physical_element_usage"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Physical_element_usage"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Physical_element_usage"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <bind
      parameter="usage">
      <express_entity
         entity="Physical_element_usage"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      instantiate relations to Physical_element_usage
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Physical_element_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="Physical_element_usage"
            attribute="related_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="child">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Classify the relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="class_name"
         value="@rel_type_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@rel_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^usage">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved