Template:— anomaly_symptom (anom_rel)
Context:— UK_Defence
Date: 2009/04/17 10:11:53
Revision: 1.2
Template: anomaly_symptom

XML references to the Template

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

anomaly_symptom

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="anomaly_symptom" context="UK_Defence" >
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID_source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Related_anomaly">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Related_symptom">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="anomaly_symptom">
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value=""/>
  <param_in name="Description" value=""/>
  <param_in name="Related_anomaly" value=""/>
  <param_in name="Related_symptom" value=""/>
</template_example>

anomaly_symptom
/anomaly_symptom(ID='', ID_source_organization='', Description='', Related_anomaly='', Related_symptom='')/

Path

-- Create anomaly_symptom
Applied_state_assignment
Applied_state_assignment.described_state -> @Related_anomaly
Applied_state_assignment.assigned_to -> @Related_symptom
%^anomaly_symptom = Applied_state_assignment%

-- Description
/assigning_descriptor(
    descr=@Description,
    class_name='Anomaly_symptom_description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=@Related_symptom)/

-- ID
/identifier(
    ID=@ID,
    source_organization=@ID_source_organization,
    type='Anomaly_symptom_identifier',
    items=^anomaly_symptom)/

XML representation of path

<refpath
   template="anomaly_symptom">
   <comment>
      Create anomaly_symptom
   </comment>
   <instantiate
      entity="Applied_state_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_assignment"
            attribute="described_state"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Related_anomaly">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_assignment"
            attribute="assigned_to"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Related_symptom">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="anomaly_symptom">
      <express_entity
         entity="Applied_state_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      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="'Anomaly_symptom_description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="@Related_symptom">
         
      </param_in>
   </call_template>
   <comment>
      ID
   </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="'Anomaly_symptom_identifier'">
         
      </param_in>
      <param_in
         name="items"
         value="^anomaly_symptom">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved