Template:— representing_promissory_usage (rep_prom_usg) Date: 2009/04/06 15:58:34
Revision: 1.20
Template: representing_promissory_usage

XML references to the Template

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

representing_promissory_usage

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_promissory_usage" capability="representing_assembly_structure">
  <param name="top_level_part">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="constituent_part">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="quantity">
    <param_value>1</param_value>
    <description></description>
  </param>
  <param name="location_indicator">
    <param_value></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>.F.</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_promissory_usage">
  <param_in name="top_level_part" value=""/>
  <param_in name="constituent_part" value=""/>
  <param_in name="quantity" value="1"/>
  <param_in name="location_indicator" value=""/>
  <param_in name="unit" value="Count"/>
  <param_in name="unit_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="si_unit" value=".F."/>
</template_example>

representing_promissory_usage
/representing_promissory_usage(top_level_part='', constituent_part='', quantity='1', location_indicator='', unit='Count', unit_ecl_id='urn:plcs:rdl:std', si_unit='.F.')/

Path

-- Create the Promissory_usage entity and its reference param
Promissory_usage
%^promissory_usage = Promissory_usage%

-- Set the attributes
Promissory_usage.id = '/IGNORE'
Promissory_usage.relation_type = '/IGNORE'
Promissory_usage.description = '/IGNORE'
Promissory_usage.location_indicator = @location_indicator
Promissory_usage.relating_view -> @top_level_part
Promissory_usage.related_view -> @constituent_part

-- 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%
Promissory_usage.quantity -> ^quantity
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Promissory_usage.id '/IGNORE' View_definition_relationship.id
Promissory_usage.relation_type '/IGNORE' View_definition_relationship.relation_type
Promissory_usage.description '/IGNORE' View_definition_relationship.description
Promissory_usage.location_indicator @location_indicator Assembly_component_relationship.location_indicator

XML representation of path

<refpath
   template="representing_promissory_usage">
   <comment>
      Create the Promissory_usage entity and its reference param
   </comment>
   <instantiate
      entity="Promissory_usage"
      context="">
      
   </instantiate>
   <bind
      parameter="promissory_usage">
      <express_entity
         entity="Promissory_usage"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the attributes
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="location_indicator"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="location_indicator">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="relating_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="top_level_part">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="related_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="constituent_part">
            
         </param_in_ref>
      </source>
   </assign>
   <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>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Promissory_usage"
            attribute="quantity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="quantity">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved