Template:— representing_probability_numeric (rep_prob_num) Date: 2009/06/08 08:46:04
Revision: 1.6
Template: representing_probability_numeric

XML references to the Template

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

representing_probability_numeric

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

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

Setup a template_example:
<template_example name="representing_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"/>
</template_example>

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

Path

-- Instantiate and bind Probability_numeric
Probability_numeric
%^prob_num = Probability_numeric%
^prob_num.id = '/IGNORE'
^prob_num.name = '/IGNORE'
^prob_num.description = '/IGNORE'

-- Invocate template assigning_reference_data and assign the
-- reference data to Probability_numeric
/assigning_reference_data(
    class_name= @class_name,
    ecl_id= @class_ecl_id,
    items= ^prob_num)/

-- Instantiate and bind Representation_context
Representation_context
%^repr_context = Representation_context%
^repr_context.id = '/IGNORE'
^repr_context.kind = '/IGNORE'

-- Invocate template assigning_reference_data and assign the
-- reference data to Representation_context
/assigning_reference_data(
    class_name= @context,
    ecl_id= @context_ecl_id,
    items= ^repr_context)/

-- Instantiate and bind Probability_numeric_value
Probability_numeric_value
%^prob_num_value = Probability_numeric_value%
^prob_num_value.name = '/IGNORE'
^prob_num_value.value_component -> @value

-- Connect Probability_numeric with its context and its value
^prob_num.context_of_items -> ^repr_context
^prob_num.items -> ^prob_num_value
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Probability_numeric.id '/IGNORE' Representation.id
Probability_numeric.name '/IGNORE' Representation.name
Probability_numeric.description '/IGNORE' Representation.description
Representation_context.id '/IGNORE'
Representation_context.kind '/IGNORE'
Probability_numeric_value.name '/IGNORE' Representation_item.name

XML representation of path

<refpath
   template="representing_probability_numeric">
   <comment>
      Instantiate and bind Probability_numeric
   </comment>
   <instantiate
      entity="Probability_numeric"
      context="">
      
   </instantiate>
   <bind
      parameter="prob_num">
      <express_entity
         entity="Probability_numeric"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prob_num.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prob_num.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prob_num.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Invocate template assigning_reference_data and assign the
   </comment>
   <comment>
      reference data to Probability_numeric
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="class_name"
         value=" @class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value=" @class_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value=" ^prob_num">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate and bind Representation_context
   </comment>
   <instantiate
      entity="Representation_context"
      context="">
      
   </instantiate>
   <bind
      parameter="repr_context">
      <express_entity
         entity="Representation_context"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="repr_context.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="repr_context.kind">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Invocate template assigning_reference_data and assign the
   </comment>
   <comment>
      reference data to Representation_context
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="class_name"
         value=" @context">
         
      </param_in>
      <param_in
         name="ecl_id"
         value=" @context_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value=" ^repr_context">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate and bind Probability_numeric_value
   </comment>
   <instantiate
      entity="Probability_numeric_value"
      context="">
      
   </instantiate>
   <bind
      parameter="prob_num_value">
      <express_entity
         entity="Probability_numeric_value"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prob_num_value.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prob_num_value.value_component">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="value">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Connect Probability_numeric with its context and its value
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prob_num.context_of_items">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="repr_context">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prob_num.items">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="prob_num_value">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved