Template:— independent_property_numeric (indpt_prp_num) Date: 2009/06/08 08:39:21
Revision: 1.18
Template: independent_property_numeric

XML references to the Template

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

independent_property_numeric

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="independent_property_numeric" capability="representing_independent_property">
  <param name="value">
    <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="independent_property_numeric">
  <param_in name="value" 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>

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

Path

-- Instantiate Independent_property_representation entity
Independent_property_representation

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

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

-- Instantiate template representing_numeric_property
/representing_numeric_property(
    value=@value,
    unit=@unit,
    unit_ecl_id=@unit_ecl_id,
    si_unit=@si_unit,
    context=@context,
    context_ecl_id=@context_ecl_id)/

-- Bind the Independent_property_representation.rep to the Representation
-- entity instantiated in the template representing_numeric_property via its reference parameter
-- ^representation
%^representation = $representing_numeric_property.representation%
^prop_repr.rep -> ^representation

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

XML representation of path

<refpath
   template="independent_property_numeric">
   <comment>
      Instantiate Independent_property_representation entity
   </comment>
   <instantiate
      entity="Independent_property_representation"
      context="">
      
   </instantiate>
   <comment>
      Bind the Independent_property_representation entity to reference parameter ^prop_repr
   </comment>
   <bind
      parameter="prop_repr">
      <express_entity
         entity="Independent_property_representation"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Independent_property_representation attributes role and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Independent_property_representation"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Independent_property_representation"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate template representing_numeric_property
   </comment>
   <call_template
      name="representing_numeric_property"
      business_context="">
      <param_in
         name="value"
         value="@value">
         
      </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 Independent_property_representation.rep to the Representation
   </comment>
   <comment>
      entity instantiated in the template representing_numeric_property via its reference parameter
   </comment>
   <comment>
      ^representation
   </comment>
   <bind
      parameter="representation">
      <template_instance
         template="representing_numeric_property"
         parameter="representation">
         
      </template_instance>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prop_repr.rep">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="representation">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign numerical value to property
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prop_repr.property">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="property">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved