Template:— failure_faults (flr_flts)
Context:— UK_Defence
Date: 2009/04/17 11:27:35
Revision: 1.2
Template: failure_faults

XML references to the Template

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

failure_faults

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="failure_faults" context="UK_Defence" >
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID_source_organization">
    <param_value>UK_Defence</param_value>
    <description></description>
  </param>
  <param name="Description">
    <param_value>/OPTIONAL</param_value>
    <description></description>
  </param>
  <param name="Related_failure">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Relating_fault">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="failure_faults">
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value="UK_Defence"/>
  <param_in name="Description" value="/OPTIONAL"/>
  <param_in name="Related_failure" value=""/>
  <param_in name="Relating_fault" value=""/>
</template_example>

failure_faults
/failure_faults(ID='', ID_source_organization='UK_Defence', Description='/OPTIONAL', Related_failure='', Relating_fault='')/

Path

-- failure_faults
State_relationship
State_relationship.name = '/IGNORE'
State_relationship.description = '/IGNORE'
State_relationship.related -> @Related_failure
State_relationship.relating -> @Relating_fault
%^state_rel = State_relationship%

-- [optional Description]
-- NB SEDS required to add State_relationship to documented_element_select
/assigning_descriptor(
    descr=@Description,
    class_name='Failure_faults_description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^state_rel)/

-- ID (mandatory)
/identifier(
    ID=@ID,
    source_organization=@ID_source_organization,
    type='Failure_faults_identifier',
    items=^state_rel)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
State_relationship.name '/IGNORE'
State_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="failure_faults">
   <comment>
      failure_faults
   </comment>
   <instantiate
      entity="State_relationship"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="State_relationship"
            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="State_relationship"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="State_relationship"
            attribute="related"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Related_failure">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="State_relationship"
            attribute="relating"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Relating_fault">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="state_rel">
      <express_entity
         entity="State_relationship"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      [optional Description]
   </comment>
   <comment>
      NB SEDS required to add State_relationship to documented_element_select
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@Description">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Failure_faults_description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^state_rel">
         
      </param_in>
   </call_template>
   <comment>
      ID (mandatory)
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@ID">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@ID_source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Failure_faults_identifier'">
         
      </param_in>
      <param_in
         name="items"
         value="^state_rel">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved