Template:— resource_property_range (res_prp_range) Date: 2009/03/24 12:40:22
Revision: 1.19
Template: resource_property_range

XML references to the Template

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

resource_property_range

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="resource_property_range" capability="assigning_resource_properties">
  <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="resource_property_range">
  <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>

resource_property_range
/resource_property_range(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 Resource_property_representation entity
Resource_property_representation

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

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

-- Instantiate template representing_value_range
/representing_value_range(
    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_range
-- to ^representation in this template and assign Resource_property_representation.rep to it
%^representation = $representing_value_range.representation%
^prop_repr.rep -> ^representation

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

XML representation of path

<refpath
   template="resource_property_range">
   <comment>
      Instantiate Resource_property_representation entity
   </comment>
   <instantiate
      entity="Resource_property_representation"
      context="">
      
   </instantiate>
   <comment>
      Bind the Resource_property_representation entity to reference parameter ^prop_repr
   </comment>
   <bind
      parameter="prop_repr">
      <express_entity
         entity="Resource_property_representation"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Property_representation attributes role and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prop_repr.role">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prop_repr.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate template representing_value_range
   </comment>
   <call_template
      name="representing_value_range"
      business_context="">
      <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 template representing_value_range
   </comment>
   <comment>
      to ^representation in this template and assign Resource_property_representation.rep to it
   </comment>
   <bind
      parameter="representation">
      <template_instance
         template="representing_value_range"
         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 value range 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