Template:— risk_mitigation (rsk_mtg)
Context:— UK_Defence
Date: 2010/03/15 15:08:44
Revision: 1.4
Template: risk_mitigation

XML references to the Template

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

risk_mitigation

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="risk_mitigation" 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="Impact_after_mitigation">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Probability_after_mitigation">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Related_mitigation_plan">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Related_risk">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="risk_mitigation">
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value="UK_Defence"/>
  <param_in name="Impact_after_mitigation" value=""/>
  <param_in name="Probability_after_mitigation" value=""/>
  <param_in name="Related_mitigation_plan" value=""/>
  <param_in name="Related_risk" value=""/>
</template_example>

risk_mitigation
/risk_mitigation(ID='', ID_source_organization='UK_Defence', Impact_after_mitigation='', Probability_after_mitigation='', Related_mitigation_plan='', Related_risk='')/

Path

-- Risk_version

[warning:]Error ER1: The entity Risk_version does not exist
Risk_version

[warning:]Error ER1: The entity Risk_version does not exist
Risk_version.id = '/IGNORE'

[warning:]Error ER1: The entity Risk_version does not exist
Risk_version.description = '/IGNORE'

-- Relate the Risk_version to the Risk

[warning:]Error ER1: The entity Risk_version does not exist
Risk_version.of_risk -> @Related_risk

-- Identify the Risk_mitigation
/identifier(
    ID=@ID,
    source_organization=@ID_source_organization,
    type='ID',
    items=Risk_version)/

[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception

[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception.id = '/IGNORE'

[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception.name = '/IGNORE'

[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception.additional_characterization = '/IGNORE'

-- Bind the Risk_perception entity to the parameter ^rsk_pcp.
%^rsk_pcp =
[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception%

-- Relate the Risk_perception to the Risk_version

[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception.defined_version ->
[warning:]Error ER1: The entity Risk_version does not exist
Risk_version

[warning:]Error ER1: The entity Risk_perception_context does not exist
Risk_perception_context

[warning:]Error ER1: The entity Risk_perception_context does not exist
Risk_perception_context.application_domain = '/IGNORE'

[warning:]Error ER1: The entity Risk_perception_context does not exist
Risk_perception_context.life_cycle_stage = '/IGNORE'

[warning:]Error ER1: The entity Risk_perception_context does not exist
Risk_perception_context.description = '/IGNORE'

-- provide the application domain of the view definition by classification
/assigning_reference_data(
    items=View_definition_context,
    class_name='Risk_perception',
    ecl_id='urn:plcs:rdl:uk_defence')/

-- Relate the Risk_perception to the View_definition_context

[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception.initial_context -> View_definition_context

-- provide Impact_after_mitigation by classification
/assigning_reference_data(
    items=Risk_perception,
    class_name=@Impact_after_mitigation,
    ecl_id='urn:plcs:rdl:uk_defence')/

-- Probability_after_mitigation
/assigning_product_property(
    described_element=Risk_perception,
    property_class_name='Risk_probability',
    property_ecl_id='urn:plcs:rdl:uk_defence')/
%^prob_prop = $assigning_product_property.property%

-- Probability_after_mitigation - representation
/representing_probability_numeric(
    value=@Probability_after_mitigation,
    class_name='Probability_numeric',
    class_ecl_id='urn:plcs:rdl:std',
    context= 'Representation_context',
    context_ecl_id='urn:plcs:rdl:std')/
%^prob_rep = $representing_probability_numeric.prob_num%
Property_representation
Property_representation.rep -> ^prob_rep
Property_representation.property -> ^prob_prop

-- Related_mitigation_plan
Applied_activity_method_assignment
Applied_activity_method_assignment.items ->
[warning:]Error ER1: The entity Risk_perception does not exist
Risk_perception
Applied_activity_method_assignment.assigned_activity_method -> @Related_mitigation_plan
Applied_activity_method_assignment.role = '/IGNORE'
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from

[warning:]Error ER1: The entity does not exist
.id
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.description
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.id
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.name
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.additional_characterization
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.application_domain
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.life_cycle_stage
'/IGNORE'

[warning:]Error ER1: The entity does not exist
.description
'/IGNORE'
Applied_activity_method_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="risk_mitigation">
   <comment>
      Risk_version
   </comment>
   <instantiate
      entity="Risk_version"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Risk_version"
            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="Risk_version"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Relate the Risk_version to the Risk
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Risk_version"
            attribute="of_risk"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Related_risk">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Identify the Risk_mitigation
   </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="'ID'">
         
      </param_in>
      <param_in
         name="items"
         value="Risk_version">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Risk_perception"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Risk_perception"
            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="Risk_perception"
            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="Risk_perception"
            attribute="additional_characterization"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Risk_perception entity to the parameter ^rsk_pcp.
   </comment>
   <bind
      parameter="rsk_pcp">
      <express_entity
         entity="Risk_perception"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      Relate the Risk_perception to the Risk_version
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Risk_perception"
            attribute="defined_version"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Risk_version"
            context="UK_Defence">
            
         </express_entity>
      </source>
   </assign>
   <instantiate
      entity="Risk_perception_context"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Risk_perception_context"
            attribute="application_domain"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Risk_perception_context"
            attribute="life_cycle_stage"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Risk_perception_context"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      provide the application domain of the view definition by classification
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="View_definition_context">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Risk_perception'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      Relate the Risk_perception to the View_definition_context
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Risk_perception"
            attribute="initial_context"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="View_definition_context"
            context="UK_Defence">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      provide Impact_after_mitigation by classification
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="Risk_perception">
         
      </param_in>
      <param_in
         name="class_name"
         value="@Impact_after_mitigation">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      Probability_after_mitigation
   </comment>
   <call_template
      name="assigning_product_property"
      business_context="UK_Defence">
      <param_in
         name="described_element"
         value="Risk_perception">
         
      </param_in>
      <param_in
         name="property_class_name"
         value="'Risk_probability'">
         
      </param_in>
      <param_in
         name="property_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <bind
      parameter="prob_prop">
      <template_instance
         template="assigning_product_property"
         parameter="property">
         
      </template_instance>
   </bind>
   <comment>
      Probability_after_mitigation - representation
   </comment>
   <call_template
      name="representing_probability_numeric"
      business_context="UK_Defence">
      <param_in
         name="value"
         value="@Probability_after_mitigation">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Probability_numeric'">
         
      </param_in>
      <param_in
         name="class_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="context"
         value=" 'Representation_context'">
         
      </param_in>
      <param_in
         name="context_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <bind
      parameter="prob_rep">
      <template_instance
         template="representing_probability_numeric"
         parameter="prob_num">
         
      </template_instance>
   </bind>
   <instantiate
      entity="Property_representation"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Property_representation"
            attribute="rep"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prob_rep">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Property_representation"
            attribute="property"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prob_prop">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Related_mitigation_plan
   </comment>
   <instantiate
      entity="Applied_activity_method_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_method_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Risk_perception"
            context="UK_Defence">
            
         </express_entity>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_method_assignment"
            attribute="assigned_activity_method"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="Related_mitigation_plan">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Applied_activity_method_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved