Template:— required_pse_constituent_usage_pattern (rpse_ctpt)
Context:— UK_Defence
Date: 2009/04/17 11:32:31
Revision: 1.7
Template: required_pse_constituent_usage_pattern

XML references to the Template

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

required_pse_constituent_usage_pattern

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="required_pse_constituent_usage_pattern" context="UK_Defence" >
  <param name="related_operational_theatre">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="usage_role">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="payload_capability_value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="payload_capability_unit">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="payload_capability_si_unit">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="required_pse_constituent_usage_pattern">
  <param_in name="related_operational_theatre" value=""/>
  <param_in name="usage_role" value=""/>
  <param_in name="id" value=""/>
  <param_in name="name" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="payload_capability_value" value=""/>
  <param_in name="payload_capability_unit" value=""/>
  <param_in name="payload_capability_si_unit" value=""/>
</template_example>

required_pse_constituent_usage_pattern
/required_pse_constituent_usage_pattern(related_operational_theatre='', usage_role='', id='', name='', source_organization='', payload_capability_value='', payload_capability_unit='', payload_capability_si_unit='')/

Path

-- create the task method to represent the required_pse_usage_profile
Task_step
Task_step.name = '/IGNORE'
Task_step.description = '/IGNORE'
Task_step.purpose = '/IGNORE'
Task_step.consequence = '/IGNORE'

-- assign to required_pse_usage_profile
%^required_pse_constituent_usage_pattern = Task_step%

-- create the assignment to link the pse
Task_element_assignment
Task_element_assignment.role = '/IGNORE'
Task_element_assignment.assigned_activity_method -> ^required_pse_constituent_usage_pattern
Task_element_assignment.items -> @usage_role

-- identifier
/identifier(
    ID=@id,
    source_organization=@source_organization,
    type='required_pse_usage_pattern_id',
    items=^required_pse_constituent_usage_pattern)/

-- identifier
/identifier(
    ID=@name,
    source_organization=@source_organization,
    type='name',
    items=^required_pse_constituent_usage_pattern)/

-- Payload capability
/assigning_process_property(
    property_class_name='Payload_capability',
    property_ecl_id='urn:plcs:rdl:uk_defence',
    described_element=^required_pse_constituent_usage_pattern)/

-- Assign reference parameter
-- not sure if needed - can we not substitute this string inside the call to process property?
%^payload_capability = $assigning_process_property.property%

-- Value and Unit
/process_property_numeric(
    value=@payload_capability_value,
    unit=@payload_capability_unit,
    unit_ecl_id='urn:plcs:rdl:std',
    si_unit=@payload_capability_si_unit,
    context='Required',
    context_ecl_id='urn:plcs:rdl:std',
    property=^payload_capability)/

-- create the assignment to link the pse
Task_element_state_relationship
Task_element_state_relationship.task_element -> ^required_pse_constituent_usage_pattern
Task_element_state_relationship.state -> @related_operational_theatre
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Task_step.name '/IGNORE' Activity_method.name
Task_step.description '/IGNORE' Activity_method.description
Task_step.purpose '/IGNORE' Activity_method.purpose
Task_step.consequence '/IGNORE' Activity_method.consequence
Task_element_assignment.role '/IGNORE' Applied_activity_method_assignment.role

XML representation of path

<refpath
   template="required_pse_constituent_usage_pattern">
   <comment>
      create the task method to represent the required_pse_usage_profile
   </comment>
   <instantiate
      entity="Task_step"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_step"
            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_step"
            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_step"
            attribute="purpose"
            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_step"
            attribute="consequence"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      assign to required_pse_usage_profile
   </comment>
   <bind
      parameter="required_pse_constituent_usage_pattern">
      <express_entity
         entity="Task_step"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      create the assignment to link the pse
   </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>
         <bound_parameter
            name="required_pse_constituent_usage_pattern">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_element_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="usage_role">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      identifier
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@id">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'required_pse_usage_pattern_id'">
         
      </param_in>
      <param_in
         name="items"
         value="^required_pse_constituent_usage_pattern">
         
      </param_in>
   </call_template>
   <comment>
      identifier
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'name'">
         
      </param_in>
      <param_in
         name="items"
         value="^required_pse_constituent_usage_pattern">
         
      </param_in>
   </call_template>
   <comment>
      Payload capability
   </comment>
   <call_template
      name="assigning_process_property"
      business_context="UK_Defence">
      <param_in
         name="property_class_name"
         value="'Payload_capability'">
         
      </param_in>
      <param_in
         name="property_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="described_element"
         value="^required_pse_constituent_usage_pattern">
         
      </param_in>
   </call_template>
   <comment>
      Assign reference parameter
   </comment>
   <comment>
      not sure if needed - can we not substitute this string inside the call to process property?
   </comment>
   <bind
      parameter="payload_capability">
      <template_instance
         template="assigning_process_property"
         parameter="property">
         
      </template_instance>
   </bind>
   <comment>
      Value and Unit
   </comment>
   <call_template
      name="process_property_numeric"
      business_context="UK_Defence">
      <param_in
         name="value"
         value="@payload_capability_value">
         
      </param_in>
      <param_in
         name="unit"
         value="@payload_capability_unit">
         
      </param_in>
      <param_in
         name="unit_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="si_unit"
         value="@payload_capability_si_unit">
         
      </param_in>
      <param_in
         name="context"
         value="'Required'">
         
      </param_in>
      <param_in
         name="context_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="property"
         value="^payload_capability">
         
      </param_in>
   </call_template>
   <comment>
      create the assignment to link the pse
   </comment>
   <instantiate
      entity="Task_element_state_relationship"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_element_state_relationship"
            attribute="task_element"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="required_pse_constituent_usage_pattern">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_element_state_relationship"
            attribute="state"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_operational_theatre">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved