Template:— representing_required_resource_relationship (rep_req_res_rel) Date: 2008/03/05 16:17:55
Revision: 1.5
Template: representing_required_resource_relationship

XML references to the Template

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

representing_required_resource_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_required_resource_relationship" capability="representing_resource">
  <param name="req_res_rel_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="req_res_rel_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="relating_req_res">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_req_res">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_required_resource_relationship">
  <param_in name="req_res_rel_class_name" value=""/>
  <param_in name="req_res_rel_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="relating_req_res" value=""/>
  <param_in name="related_req_res" value=""/>
</template_example>

representing_required_resource_relationship
/representing_required_resource_relationship(req_res_rel_class_name='', req_res_rel_ecl_id='urn:plcs:rdl:std', relating_req_res='', related_req_res='')/

Path

-- Instantiate and bind Required_resource_relationship
Required_resource_relationship
%^relationship = Required_resource_relationship%
^relationship.name = '/IGNORE'
^relationship.description = '/IGNORE'
^relationship.relating -> @relating_req_res
^relationship.related -> @related_req_res

-- Invocate template assigning_reference_data and
-- assign it to Required_resource_relationship
/assigning_reference_data(
    class_name= @req_res_rel_class_name,
    ecl_id= @req_res_rel_ecl_id,
    items= ^relationship)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Required_resource_relationship.name '/IGNORE'
Required_resource_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="representing_required_resource_relationship">
   <comment>
      Instantiate and bind Required_resource_relationship
   </comment>
   <instantiate
      entity="Required_resource_relationship"
      context="">
      
   </instantiate>
   <bind
      parameter="relationship">
      <express_entity
         entity="Required_resource_relationship"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="relationship.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="relationship.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="relationship.relating">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="relating_req_res">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="relationship.related">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="related_req_res">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Invocate template assigning_reference_data and
   </comment>
   <comment>
      assign it to Required_resource_relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="class_name"
         value=" @req_res_rel_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value=" @req_res_rel_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value=" ^relationship">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved