Template:— representing_resource_item_group (rep_res_item_grp)
Context:— NDLO
Date: 2007/09/28 12:44:03
Revision: 1.2
Template: representing_resource_item_group

XML references to the Template

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

representing_resource_item_group

Set up a hyperlink to the template definition.
<template_ref name="representing_resource_item_group" context="NDLO" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="representing_resource_item_group" context="NDLO" >
  <param name="value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="si_unit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_code">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_code_type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_code_type_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="unit_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_descr">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_descr_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="asg_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="asg_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="res_itm_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="res_itm_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="grp_rel_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="grp_rel_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="item">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="res_items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_resource_item_group">
  <param_in name="value" value=""/>
  <param_in name="unit_type" value=""/>
  <param_in name="si_unit" value=""/>
  <param_in name="unit_code" value=""/>
  <param_in name="unit_code_type" value=""/>
  <param_in name="unit_code_type_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="unit_name" value=""/>
  <param_in name="unit_descr" value=""/>
  <param_in name="unit_descr_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="asg_class_name" value=""/>
  <param_in name="asg_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="res_itm_class_name" value=""/>
  <param_in name="res_itm_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="grp_rel_class_name" value=""/>
  <param_in name="grp_rel_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="item" value=""/>
  <param_in name="res_items" value=""/>
</template_example>

representing_resource_item_group
/representing_resource_item_group(value='', unit_type='', si_unit='', unit_code='', unit_code_type='', unit_code_type_ecl_id='urn:plcs:rdl:std', unit_name='', unit_descr='', unit_descr_ecl_id='urn:plcs:rdl:std', asg_class_name='', asg_ecl_id='urn:plcs:rdl:std', res_itm_class_name='', res_itm_ecl_id='urn:plcs:rdl:std', grp_rel_class_name='', grp_rel_ecl_id='urn:plcs:rdl:std', item='', res_items='')/

Path

Resource_item

-- Mark the file entity as
-- referable when this template is used
%^res_itm = Resource_item%
^res_itm.name = '/IGNORE'
^res_itm.description = '/IGNORE'
^res_itm.resource_items -> @res_items
/assigning_reference_data(
    items=^res_itm,
    class_name=@res_itm_class_name,
    ecl_id=@res_itm_ecl_id)/
%^res_itm_asg = Resource_item_assignment%
^res_itm_asg.assigned_resource -> ^res_itm
^res_itm_asg.item -> @item

-- provide the type of the resource assignment by classifying assignment
/assigning_reference_data(
    items=^res_itm_asg,
    class_name=@asg_class_name,
    ecl_id=@asg_ecl_id)/
Resource_group_relationship

-- Mark the file entity as
-- referable when this template is used
%^res_grp_rel = Resource_group_relationship%
^res_grp_rel.name = '/IGNORE'
^res_grp_rel.description = '/IGNORE'
^res_grp_rel.resource_item -> ^res_itm

-- provide the type of the resource group assignment by classifying assignment
/assigning_reference_data(
    items=^res_grp_rel,
    class_name=@grp_rel_class_name,
    ecl_id=@grp_rel_ecl_id)/

-- defining a value of measure
/representing_value_with_unit_explicit(
    value=@value,
    unit_type=@unit_type,
    si_unit=@si_unit,
    unit_code=@unit_code,
    unit_code_type=@unit_code_type,
    unit_code_type_ecl_id=@unit_code_type_ecl_id,
    unit_name=@unit_name,
    unit_descr=@unit_descr,
    unit_descr_ecl_id=@unit_descr_ecl_id )/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Resource_item.name '/IGNORE'
Resource_item.description '/IGNORE'
Resource_group_relationship.name '/IGNORE' Resource_item_relationship.name
Resource_group_relationship.description '/IGNORE' Resource_item_relationship.description

XML representation of path

<refpath
   template="representing_resource_item_group">
   <instantiate
      entity="Resource_item"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the file entity as
   </comment>
   <comment>
      referable when this template is used
   </comment>
   <bind
      parameter="res_itm">
      <express_entity
         entity="Resource_item"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="res_itm.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="res_itm.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="res_itm.resource_items">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="res_items">
            
         </param_in_ref>
      </source>
   </assign>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^res_itm">
         
      </param_in>
      <param_in
         name="class_name"
         value="@res_itm_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@res_itm_ecl_id">
         
      </param_in>
   </call_template>
   <bind
      parameter="res_itm_asg">
      <express_entity
         entity="Resource_item_assignment"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="res_itm_asg.assigned_resource">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="res_itm">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="res_itm_asg.item">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="item">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the type of the resource assignment by classifying assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^res_itm_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@asg_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@asg_ecl_id">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Resource_group_relationship"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the file entity as
   </comment>
   <comment>
      referable when this template is used
   </comment>
   <bind
      parameter="res_grp_rel">
      <express_entity
         entity="Resource_group_relationship"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="res_grp_rel.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="res_grp_rel.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="res_grp_rel.resource_item">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="res_itm">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      provide the type of the resource group assignment by classifying assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^res_grp_rel">
         
      </param_in>
      <param_in
         name="class_name"
         value="@grp_rel_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@grp_rel_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      defining a value of measure
   </comment>
   <call_template
      name="representing_value_with_unit_explicit"
      business_context="NDLO">
      <param_in
         name="value"
         value="@value">
         
      </param_in>
      <param_in
         name="unit_type"
         value="@unit_type">
         
      </param_in>
      <param_in
         name="si_unit"
         value="@si_unit">
         
      </param_in>
      <param_in
         name="unit_code"
         value="@unit_code">
         
      </param_in>
      <param_in
         name="unit_code_type"
         value="@unit_code_type">
         
      </param_in>
      <param_in
         name="unit_code_type_ecl_id"
         value="@unit_code_type_ecl_id">
         
      </param_in>
      <param_in
         name="unit_name"
         value="@unit_name">
         
      </param_in>
      <param_in
         name="unit_descr"
         value="@unit_descr">
         
      </param_in>
      <param_in
         name="unit_descr_ecl_id"
         value="@unit_descr_ecl_id ">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved