Template:— assigning_condition (asg_cond) Date: 2009/03/24 19:48:10
Revision: 1.18
Template: assigning_condition

XML references to the Template

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

assigning_condition

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_condition" 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_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="cond_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="cond_para_item">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_condition">
  <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_class" value=""/>
  <param_in name="cond_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="cond_para_item" value=""/>
</template_example>

assigning_condition
/assigning_condition(cond_item='', cond_asg_class='', cond_asg_ecl_id='urn:plcs:rdl:std', cond_class='', cond_ecl_id='urn:plcs:rdl:std', cond_para_item='')/

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 computable condition by the assignment of reference data
/assigning_reference_data(
    items=^cond,
    class_name=@cond_class,
    ecl_id=@cond_ecl_id)/

-- 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)/

-- Mark the Condition_parameter entity as
-- referable when this template is used by binding it to the reference
-- parameter cond_asg
%^cond_para = Condition_parameter%
Condition_parameter.description = '/IGNORE'
Condition_parameter.name = '/IGNORE'
Condition_parameter.condition -> ^cond
Condition_parameter.parameter -> @cond_para_item
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Condition.name '/IGNORE'
Condition.description '/IGNORE'
Condition_parameter.description '/IGNORE'
Condition_parameter.name '/IGNORE'

XML representation of path

<refpath
   template="assigning_condition">
   <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 computable 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="@cond_class">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@cond_ecl_id">
         
      </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>
   <comment>
      Mark the Condition_parameter 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_para">
      <express_entity
         entity="Condition_parameter"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Condition_parameter"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Condition_parameter"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Condition_parameter"
            attribute="condition"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cond">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Condition_parameter"
            attribute="parameter"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="cond_para_item">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved