Template:— assigning_reference_data (asg_rd) Date: 2009/06/10 09:22:49
Revision: 1.30
Template: assigning_reference_data

XML references to the Template

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

assigning_reference_data

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_reference_data" capability="assigning_reference_data">
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_reference_data">
  <param_in name="class_name" value=""/>
  <param_in name="ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

assigning_reference_data
/assigning_reference_data(class_name='', ecl_id='urn:plcs:rdl:std', items='')/

Path

Classification_assignment

-- Mark the Classification_assignment entity as referable when this template is used.
-- In other words, bind the Classification_assignment instance to the reference
-- parameter class_asg
%^class_asg = Classification_assignment%
Classification_assignment.role = '/IGNORE'
Classification_assignment.items -> @items
Classification_assignment.assigned_class -> External_class
External_class

-- Mark the External_class entity as referable when this template is used.
-- In other words, bind the External_class instance to the reference
-- parameter ext_class
%^ext_class = External_class%
External_class.id = '/NULL'
External_class.description = '/IGNORE'
External_class.name = @class_name

-- Mark the External_class_library entity as referable when this template is used.
-- In other words, bind the External_class_library instance to the reference
-- parameter ext_class_lib
%^ext_class_lib = External_class_library%
External_class.external_source -> External_class_library
External_class_library.id = @ecl_id
External_class_library.description = '/IGNORE'
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Classification_assignment.role '/IGNORE'
External_class.id '/NULL' Class.id
External_class.description '/IGNORE' Class.description
External_class.name @class_name Class.name
External_class_library.id @ecl_id
External_class_library.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_reference_data">
   <instantiate
      entity="Classification_assignment"
      context="">
      
   </instantiate>
   <comment>
      Mark the Classification_assignment entity as referable when this template is used.
   </comment>
   <comment>
      In other words, bind the Classification_assignment instance to the reference
   </comment>
   <comment>
      parameter class_asg
   </comment>
   <bind
      parameter="class_asg">
      <express_entity
         entity="Classification_assignment"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="assigned_class"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="External_class"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <instantiate
      entity="External_class"
      context="">
      
   </instantiate>
   <comment>
      Mark the External_class entity as referable when this template is used.
   </comment>
   <comment>
      In other words, bind the External_class instance to the reference
   </comment>
   <comment>
      parameter ext_class
   </comment>
   <bind
      parameter="ext_class">
      <express_entity
         entity="External_class"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_class"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/NULL' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_class"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_class"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="class_name">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Mark the External_class_library entity as referable when this template is used.
   </comment>
   <comment>
      In other words, bind the External_class_library instance to the reference
   </comment>
   <comment>
      parameter ext_class_lib
   </comment>
   <bind
      parameter="ext_class_lib">
      <express_entity
         entity="External_class_library"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="External_class"
            attribute="external_source"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="External_class_library"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_class_library"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="ecl_id">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="External_class_library"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved