Template:— product_usage_parameter (prod_usg_param)
Context:— UK_Defence
Date: 2009/10/07 14:44:00
Revision: 1.4
Template: product_usage_parameter

XML references to the Template

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

product_usage_parameter

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="product_usage_parameter" context="UK_Defence" >
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="property_ecl_id">
    <param_value>urn:plcs:rdl:uk_defence</param_value>
    <description></description>
  </param>
  <param name="value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="unit_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="si_unit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="category">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="disposition">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="a_property_of">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="valid_from">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="valid_to">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="usage_phase">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="product_usage_parameter">
  <param_in name="ID" value=""/>
  <param_in name="property_ecl_id" value="urn:plcs:rdl:uk_defence"/>
  <param_in name="value" value=""/>
  <param_in name="unit" value=""/>
  <param_in name="unit_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="si_unit" value=""/>
  <param_in name="category" value=""/>
  <param_in name="disposition" value=""/>
  <param_in name="a_property_of" value=""/>
  <param_in name="valid_from" value=""/>
  <param_in name="valid_to" value=""/>
  <param_in name="usage_phase" value=""/>
</template_example>

product_usage_parameter
/product_usage_parameter(ID='', property_ecl_id='urn:plcs:rdl:uk_defence', value='', unit='', unit_ecl_id='urn:plcs:rdl:std', si_unit='', category='', disposition='', a_property_of='', valid_from='', valid_to='', usage_phase='')/

Path

-- Property
/property(
    ID=@ID,
    property_ecl_id=@property_ecl_id,
    value=@value,
    unit=@unit,
    unit_ecl_id=@unit_ecl_id,
    si_unit=@si_unit,
    category=@category,
    disposition=@disposition,
    a_property_of=@a_property_of,
    valid_from=@valid_from,
    valid_to=@valid_to)/
%^prod_usage_para = $property.property%

-- [ optional Task_method]
Task_method
Task_method.name = '/IGNORE'
Task_method.description = '/IGNORE'
Task_method.consequence = '/IGNORE'
Task_method.purpose = '/IGNORE'
%^task_method = Task_method%

-- [ optional Task_method_assignment]
Task_method_assignment
Task_method_assignment.role = '/IGNORE'
Task_method_assignment.assigned_activity_method -> ^task_method
Task_method_assignment.items -> ^prod_usage_para

-- [ optional Task_element_assignment]
Task_element_assignment
Task_element_assignment.role = '/IGNORE'
Task_element_assignment.assigned_activity_method -> @usage_phase
Task_element_assignment.items -> ^task_method
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Task_method.name '/IGNORE' Activity_method.name
Task_method.description '/IGNORE' Activity_method.description
Task_method.consequence '/IGNORE' Activity_method.consequence
Task_method.purpose '/IGNORE' Activity_method.purpose
Task_method_assignment.role '/IGNORE' Applied_activity_method_assignment.role
Task_element_assignment.role '/IGNORE' Applied_activity_method_assignment.role

XML representation of path

<refpath
   template="product_usage_parameter">
   <comment>
      Property
   </comment>
   <call_template
      name="property"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@ID">
         
      </param_in>
      <param_in
         name="property_ecl_id"
         value="@property_ecl_id">
         
      </param_in>
      <param_in
         name="value"
         value="@value">
         
      </param_in>
      <param_in
         name="unit"
         value="@unit">
         
      </param_in>
      <param_in
         name="unit_ecl_id"
         value="@unit_ecl_id">
         
      </param_in>
      <param_in
         name="si_unit"
         value="@si_unit">
         
      </param_in>
      <param_in
         name="category"
         value="@category">
         
      </param_in>
      <param_in
         name="disposition"
         value="@disposition">
         
      </param_in>
      <param_in
         name="a_property_of"
         value="@a_property_of">
         
      </param_in>
      <param_in
         name="valid_from"
         value="@valid_from">
         
      </param_in>
      <param_in
         name="valid_to"
         value="@valid_to">
         
      </param_in>
   </call_template>
   <bind
      parameter="prod_usage_para">
      <template_instance
         template="property"
         parameter="property">
         
      </template_instance>
   </bind>
   <comment>
      [ optional Task_method]
   </comment>
   <instantiate
      entity="Task_method"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="consequence"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="purpose"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <bind
      parameter="task_method">
      <express_entity
         entity="Task_method"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      [ optional Task_method_assignment]
   </comment>
   <instantiate
      entity="Task_method_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_method_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_method_assignment"
            attribute="assigned_activity_method"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="task_method">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_method_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prod_usage_para">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      [ optional Task_element_assignment]
   </comment>
   <instantiate
      entity="Task_element_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_element_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_element_assignment"
            attribute="assigned_activity_method"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="usage_phase">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_element_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="task_method">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved