Template:— cost_analysis (cst_anly)
Context:— UK_Defence
Date: 2010/03/15 14:22:41
Revision: 1.5
Template: cost_analysis

XML references to the Template

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

cost_analysis

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="cost_analysis" context="UK_Defence" >
  <param name="Description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Name_source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID_source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Version">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Conducted_by">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Related_PSE_constituent">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Date_of_analysis">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Results_valid_period_end">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Results_valid_period_start">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Results">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="cost_analysis">
  <param_in name="Description" value=""/>
  <param_in name="Name" value=""/>
  <param_in name="Name_source_organization" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value=""/>
  <param_in name="Version" value=""/>
  <param_in name="Conducted_by" value=""/>
  <param_in name="Related_PSE_constituent" value=""/>
  <param_in name="Date_of_analysis" value=""/>
  <param_in name="Results_valid_period_end" value=""/>
  <param_in name="Results_valid_period_start" value=""/>
  <param_in name="Results" value=""/>
</template_example>

cost_analysis
/cost_analysis(Description='', Name='', Name_source_organization='', ID='', ID_source_organization='', Version='', Conducted_by='', Related_PSE_constituent='', Date_of_analysis='', Results_valid_period_end='', Results_valid_period_start='', Results='')/

Path

-- Support analysis represented using Representing document (why not just use Document?)
/representing_document(
    doc_id=@ID,
    doc_id_class_name='Cost_analysis_identifier',
    doc_id_ecl_id='urn:plcs:rdl:uk_defence',
    doc_org_id=@ID_source_organization,
    doc_org_id_class_name='Organization_name',
    doc_org_id_ecl_id='urn:plcs:rdl:std',
    doc_vn_id=@Version,
    doc_vn_id_class_name='Version_identification_code',
    doc_vn_id_ecl_id='urn:plcs:rdl:std',
    doc_vn_org_id='/NULL',
    doc_vn_org_id_class_name='Organization_identification_code',
    doc_vn_org_id_ecl_id='urn:plcs:rdl:std',
    domain='Through_life_support_standard',
    domain_ecl_id='urn:plcs:rdl:uk_defence',
    life_cycle_stage='Support_stage',
    life_cycle_stage_ecl_id='urn:plcs:rdl:std')/
%^cost_analysis = $representing_document.document%
%^cost_analysis_version = $representing_document.document_version%
%^cost_analysis_definition = $representing_document.document_definition%

-- Create relationship to conducting organization
Organization_or_person_in_organization_assignment
Organization_or_person_in_organization_assignment.items -> ^cost_analysis
Organization_or_person_in_organization_assignment.assigned_entity -> @Conducted_by
Organization_or_person_in_organization_assignment.role = '/IGNORE'

-- Date of analysis
Date_or_date_time_assignment
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.items -> ^cost_analysis_version
Date_or_date_time_assignment.assigned_date -> @Date_of_analysis

-- [optional Description]
/assigning_descriptor(
    descr=@Description,
    class_name='Cost_analysis_description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^cost_analysis)/

-- Name
/identifier(
    ID=@Name,
    source_organization=@Name_source_organization,
    type='Cost_analysis_name',
    items=^cost_analysis)/

-- Related PSE constituent
Document_assignment
Document_assignment.role = '/IGNORE'
Document_assignment.assigned_document -> ^cost_analysis_version
Document_assignment.is_assigned_to -> @Related_PSE_constituent

-- Results Valid Period
Dated_effectivity
Dated_effectivity.id = '/IGNORE'
Dated_effectivity.name = '/IGNORE'
Dated_effectivity.description = '/IGNORE'
Dated_effectivity.start_bound -> @Results_valid_period_start
Dated_effectivity.end_bound -> @Results_valid_period_end
%^dated_effectivity = Dated_effectivity%
Effectivity_assignment
Effectivity_assignment.role = '/IGNORE'
Effectivity_assignment.items -> ^cost_analysis_version
Effectivity_assignment.assigned_effectivity -> ^dated_effectivity
%^effectivity_assignment = Effectivity_assignment%
/assigning_reference_data(
    class_name='Results_valid_period',
    ecl_id='urn:plcs:rdl:std',
    items=^effectivity_assignment)/

-- [Optional relationship to the Results (Document)]
/assigning_document(
    assigned_document=^cost_analysis,
    doc_ass_role='Cost_analysis_results',
    doc_ar_ecl_id='urn:plcs:rdl:UK_Defence',
    is_assigned_to=@Results)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Organization_or_person_in_organization_assignment.role '/IGNORE'
Date_or_date_time_assignment.role '/IGNORE'
Document_assignment.role '/IGNORE'
Dated_effectivity.id '/IGNORE' Effectivity.id
Dated_effectivity.name '/IGNORE' Effectivity.name
Dated_effectivity.description '/IGNORE' Effectivity.description
Effectivity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="cost_analysis">
   <comment>
      Support analysis represented using Representing document (why not just use Document?)
   </comment>
   <call_template
      name="representing_document"
      business_context="UK_Defence">
      <param_in
         name="doc_id"
         value="@ID">
         
      </param_in>
      <param_in
         name="doc_id_class_name"
         value="'Cost_analysis_identifier'">
         
      </param_in>
      <param_in
         name="doc_id_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="doc_org_id"
         value="@ID_source_organization">
         
      </param_in>
      <param_in
         name="doc_org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="doc_org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="doc_vn_id"
         value="@Version">
         
      </param_in>
      <param_in
         name="doc_vn_id_class_name"
         value="'Version_identification_code'">
         
      </param_in>
      <param_in
         name="doc_vn_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="doc_vn_org_id"
         value="'/NULL'">
         
      </param_in>
      <param_in
         name="doc_vn_org_id_class_name"
         value="'Organization_identification_code'">
         
      </param_in>
      <param_in
         name="doc_vn_org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="domain"
         value="'Through_life_support_standard'">
         
      </param_in>
      <param_in
         name="domain_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="life_cycle_stage"
         value="'Support_stage'">
         
      </param_in>
      <param_in
         name="life_cycle_stage_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <bind
      parameter="cost_analysis">
      <template_instance
         template="representing_document"
         parameter="document">
         
      </template_instance>
   </bind>
   <bind
      parameter="cost_analysis_version">
      <template_instance
         template="representing_document"
         parameter="document_version">
         
      </template_instance>
   </bind>
   <bind
      parameter="cost_analysis_definition">
      <template_instance
         template="representing_document"
         parameter="document_definition">
         
      </template_instance>
   </bind>
   <comment>
      Create relationship to conducting organization
   </comment>
   <instantiate
      entity="Organization_or_person_in_organization_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_or_person_in_organization_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cost_analysis">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_or_person_in_organization_assignment"
            attribute="assigned_entity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Conducted_by">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Organization_or_person_in_organization_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Date of analysis
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Date_or_date_time_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="Date_or_date_time_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cost_analysis_version">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="assigned_date"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Date_of_analysis">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      [optional Description]
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@Description">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Cost_analysis_description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^cost_analysis">
         
      </param_in>
   </call_template>
   <comment>
      Name
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@Name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@Name_source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Cost_analysis_name'">
         
      </param_in>
      <param_in
         name="items"
         value="^cost_analysis">
         
      </param_in>
   </call_template>
   <comment>
      Related PSE constituent
   </comment>
   <instantiate
      entity="Document_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Document_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="Document_assignment"
            attribute="assigned_document"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cost_analysis_version">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="is_assigned_to"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Related_PSE_constituent">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Results Valid Period
   </comment>
   <instantiate
      entity="Dated_effectivity"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Dated_effectivity"
            attribute="id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Dated_effectivity"
            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="Dated_effectivity"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Dated_effectivity"
            attribute="start_bound"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Results_valid_period_start">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Dated_effectivity"
            attribute="end_bound"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Results_valid_period_end">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="dated_effectivity">
      <express_entity
         entity="Dated_effectivity"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <instantiate
      entity="Effectivity_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity_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="Effectivity_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="cost_analysis_version">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="assigned_effectivity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="dated_effectivity">
            
         </bound_parameter>
      </source>
   </assign>
   <bind
      parameter="effectivity_assignment">
      <express_entity
         entity="Effectivity_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="class_name"
         value="'Results_valid_period'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="items"
         value="^effectivity_assignment">
         
      </param_in>
   </call_template>
   <comment>
      [Optional relationship to the Results (Document)]
   </comment>
   <call_template
      name="assigning_document"
      business_context="UK_Defence">
      <param_in
         name="assigned_document"
         value="^cost_analysis">
         
      </param_in>
      <param_in
         name="doc_ass_role"
         value="'Cost_analysis_results'">
         
      </param_in>
      <param_in
         name="doc_ar_ecl_id"
         value="'urn:plcs:rdl:UK_Defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="@Results">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved