Template:— product_property_w_tolerances (prod_prp_tol) Date: 2010/03/25 12:02:57
Revision: 1.23
Template: product_property_w_tolerances

XML references to the Template

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

product_property_w_tolerances

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="product_property_w_tolerances" capability="assigning_product_properties">
  <param name="value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="upper_limit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="lower_limit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit">
    <param_value></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></param_value>
    <description></description>
  </param>
  <param name="context">
    <param_value>Numerical_representation_context</param_value>
    <description></description>
  </param>
  <param name="context_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="property">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="product_property_w_tolerances">
  <param_in name="value" value=""/>
  <param_in name="upper_limit" value=""/>
  <param_in name="lower_limit" value=""/>
  <param_in name="unit" value=""/>
  <param_in name="unit_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="si_unit" value=""/>
  <param_in name="context" value="Numerical_representation_context"/>
  <param_in name="context_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="property" value=""/>
</template_example>

product_property_w_tolerances
/product_property_w_tolerances(value='', upper_limit='', lower_limit='', unit='', unit_ecl_id='urn:plcs:rdl:std', si_unit='', context='Numerical_representation_context', context_ecl_id='urn:plcs:rdl:std', property='')/

Path

-- Instantiate Property_representation entity
Property_representation

-- Set the Property_representation attributes role and description to be ignored
Property_representation.role = '/IGNORE'
Property_representation.description = '/IGNORE'

-- Bind the Property_representation entity to reference parameter ^prop_repr
%^prop_repr = Property_representation%

-- Instantiate template representing_value_w_tolerances
/representing_value_w_tolerances(
    value=@value,
    upper_limit=@upper_limit,
    lower_limit=@lower_limit,
    unit=@unit,
    unit_ecl_id=@unit_ecl_id,
    si_unit=@si_unit,
    context=@context,
    context_ecl_id=@context_ecl_id)/

-- Bind the Property_value_representation entity instantiated in the
-- template representing_value_w_tolerances to ^representation in
-- this template and assign Property_representation.rep to it
%^representation = $representing_value_w_tolerances.representation%
Property_representation.rep -> ^representation

-- Assign value with tolerances to property
Property_representation.property -> @property
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Property_representation.role '/IGNORE'
Property_representation.description '/IGNORE'

XML representation of path

<refpath
   template="product_property_w_tolerances">
   <comment>
      Instantiate Property_representation entity
   </comment>
   <instantiate
      entity="Property_representation"
      context="">
      
   </instantiate>
   <comment>
      Set the Property_representation attributes role and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Property_representation"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Property_representation"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Property_representation entity to reference parameter ^prop_repr
   </comment>
   <bind
      parameter="prop_repr">
      <express_entity
         entity="Property_representation"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Instantiate template representing_value_w_tolerances
   </comment>
   <call_template
      name="representing_value_w_tolerances"
      business_context="">
      <param_in
         name="value"
         value="@value">
         
      </param_in>
      <param_in
         name="upper_limit"
         value="@upper_limit">
         
      </param_in>
      <param_in
         name="lower_limit"
         value="@lower_limit">
         
      </param_in>
      <param_in
         name="unit"
         value="@unit">
         
      </param_in>
      <param_in
         name="unit_ecl_id"
         value="@unit_ecl_id">
         
      </param_in>
      <param_in
         name="si_unit"
         value="@si_unit">
         
      </param_in>
      <param_in
         name="context"
         value="@context">
         
      </param_in>
      <param_in
         name="context_ecl_id"
         value="@context_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Property_value_representation entity instantiated in the
   </comment>
   <comment>
      template representing_value_w_tolerances to ^representation in
   </comment>
   <comment>
      this template and assign Property_representation.rep to it
   </comment>
   <bind
      parameter="representation">
      <template_instance
         template="representing_value_w_tolerances"
         parameter="representation">
         
      </template_instance>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Property_representation"
            attribute="rep"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="representation">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign value with tolerances to property
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Property_representation"
            attribute="property"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="property">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved