Template:— assigning_condition_text_based (asg_cond_txt) Date: 2008/01/21 20:21:02
Revision: 1.10
Template: assigning_condition_text_based

XML references to the Template

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

assigning_condition_text_based

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_condition_text_based" capability="representing_condition">
  <param name="cond_item">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cond_asg_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cond_asg_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="cond_descr">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_condition_text_based">
  <param_in name="cond_item" value=""/>
  <param_in name="cond_asg_class" value=""/>
  <param_in name="cond_asg_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="cond_descr" value=""/>
</template_example>

assigning_condition_text_based
/assigning_condition_text_based(cond_item='', cond_asg_class='', cond_asg_ecl_id='urn:plcs:rdl:std', cond_descr='')/

Path

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

-- Provide type of condition by the assignment of reference data
/assigning_reference_data(
    items=^cond,
    class_name='Text_based_condition',
    ecl_id='urn:plcs:rdl:std')/

-- Provide the description of the text based condition
/assigning_descriptor(
    is_assigned_to=^cond,
    descr=@cond_descr,
    class_name='Description',
    ecl_id='urn:plcs:rdl:std')/

-- Mark the Condition_assignment entity as
-- referable when this template is used by binding it to the reference
-- parameter cond_asg
%^cond_asg = Condition_assignment%
Condition_assignment.item -> @cond_item
Condition_assignment.assigned_condition -> ^cond

-- Provide the role of the condition by the assignment of reference data
/assigning_reference_data(
    items=^cond_asg,
    class_name=@cond_asg_class,
    ecl_id=@cond_asg_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Condition.name '/IGNORE'
Condition.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_condition_text_based">
   <comment>
      Mark the Condition entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^cond
   </comment>
   <bind
      parameter="cond">
      <express_entity
         entity="Condition"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Condition"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Condition"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Provide type of condition by the assignment of reference data
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^cond">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Text_based_condition'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Provide the description of the text based condition
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="">
      <param_in
         name="is_assigned_to"
         value="^cond">
         
      </param_in>
      <param_in
         name="descr"
         value="@cond_descr">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Mark the Condition_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter cond_asg
   </comment>
   <bind
      parameter="cond_asg">
      <express_entity
         entity="Condition_assignment"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Condition_assignment"
            attribute="item"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="cond_item">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Condition_assignment"
            attribute="assigned_condition"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cond">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Provide the role of the condition by the assignment of reference data
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^cond_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@cond_asg_class">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@cond_asg_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved