Template:— resource_property_probability_numeric (res_prp_prob_num) Date: 2008/03/07 09:36:31
Revision: 1.4
Template: resource_property_probability_numeric

XML references to the Template

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

resource_property_probability_numeric

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="resource_property_probability_numeric" capability="representing_probability">
  <param name="value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="class_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="context">
    <param_value></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_probability_numeric">
  <param_in name="value" value=""/>
  <param_in name="class_name" value=""/>
  <param_in name="class_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="context" value=""/>
  <param_in name="context_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="property" value=""/>
</template_example>

resource_property_probability_numeric
/resource_property_probability_numeric(value='', class_name='', class_ecl_id='urn:plcs:rdl:std', context='', context_ecl_id='urn:plcs:rdl:std', property='')/

Path

Resource_property_representation

-- Mark the Resource_property_representation entity as
-- referable when this template is used by binding it to the reference
-- parameter ^prop_rep
%^prop_rep = Resource_property_representation%
Resource_property_representation.role = '/IGNORE'
Resource_property_representation.description = '/IGNORE'

-- Invocate the template representing_probability_numeric
/representing_probability_numeric(
    value= @value,
    class_name= @class_name,
    class_ecl_id= @class_ecl_id,
    context= @context,
    context_ecl_id= @context_ecl_id)/

-- Bind the Probability_numeric to the ^prob_num reference
%^prob_num = $representing_probability_numeric.prob_num%

-- Connect the Resource_property_representation to the input property and
-- to the numeric probability
^prop_rep.property -> @property
^prop_rep.rep -> ^prob_num
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_probability_numeric">
   <instantiate
      entity="Resource_property_representation"
      context="">
      
   </instantiate>
   <comment>
      Mark the Resource_property_representation entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^prop_rep
   </comment>
   <bind
      parameter="prop_rep">
      <express_entity
         entity="Resource_property_representation"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Resource_property_representation"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Resource_property_representation"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Invocate the template representing_probability_numeric
   </comment>
   <call_template
      name="representing_probability_numeric"
      business_context="">
      <param_in
         name="value"
         value=" @value">
         
      </param_in>
      <param_in
         name="class_name"
         value=" @class_name">
         
      </param_in>
      <param_in
         name="class_ecl_id"
         value=" @class_ecl_id">
         
      </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 Probability_numeric to the ^prob_num reference
   </comment>
   <bind
      parameter="prob_num">
      <template_instance
         template="representing_probability_numeric"
         parameter="prob_num">
         
      </template_instance>
   </bind>
   <comment>
      Connect the Resource_property_representation to the input property and
   </comment>
   <comment>
      to the numeric probability
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prop_rep.property">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="property">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prop_rep.rep">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="prob_num">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved