Template:— operating_environment (op_env)
Context:— UK_Defence
Date: 2010/03/18 12:06:29
Revision: 1.5
Template: operating_environment

XML references to the Template

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

operating_environment

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="operating_environment" context="UK_Defence" >
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_assumptions">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_item">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_locations">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_requirements">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="operating_environment">
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="related_assumptions" value=""/>
  <param_in name="related_item" value=""/>
  <param_in name="related_locations" value=""/>
  <param_in name="related_requirements" value=""/>
</template_example>

operating_environment
/operating_environment(ID='', source_organization='', related_assumptions='', related_item='', related_locations='', related_requirements='')/

Path

-- Operating_environment
/assigning_state_type(
    sd_class_name='Operating_environment',
    sd_ecl_id='urn:plcs:rdl:uk_defence',
    sd_role_class_name='Operating_environment_definition_assignment',
    sd_role_ecl_id='urn:plcs:rdl:uk_defence',
    assigned_to=@related_item)/
%^op_env = $assigning_state_type.state_def%

-- Operating_environment identifier
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='Operating_environment_identifier',
    items=^op_env)/

-- [ OPTIONAL Document_assignment ] to indicate the assumption
Document_assignment

-- Set the OPTIONAL Document_assignment attribute role to be ignored
Document_assignment.role = '/IGNORE'
Document_assignment.assigned_document -> @related_assumptions
Document_assignment.is_assigned_to -> ^op_env

-- Instantiate the Requirement_assignment entity and link it to state_definition.
Requirement_assignment.assigned_requirement -> @related_requirements
Requirement_assignment.id = '/IGNORE'
Requirement_assignment.description = '/IGNORE'

-- Populate the Applied_state_definition_assignment
Applied_state_definition_assignment.described_state_definition -> ^op_env
Applied_state_definition_assignment.assigned_to -> @related_locations
Applied_state_definition_assignment.role -> ^op_env
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Document_assignment.role '/IGNORE'
Requirement_assignment.id '/IGNORE'
Requirement_assignment.description '/IGNORE'

XML representation of path

<refpath
   template="operating_environment">
   <comment>
      Operating_environment
   </comment>
   <call_template
      name="assigning_state_type"
      business_context="UK_Defence">
      <param_in
         name="sd_class_name"
         value="'Operating_environment'">
         
      </param_in>
      <param_in
         name="sd_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="sd_role_class_name"
         value="'Operating_environment_definition_assignment'">
         
      </param_in>
      <param_in
         name="sd_role_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="assigned_to"
         value="@related_item">
         
      </param_in>
   </call_template>
   <bind
      parameter="op_env">
      <template_instance
         template="assigning_state_type"
         parameter="state_def">
         
      </template_instance>
   </bind>
   <comment>
      Operating_environment 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="'Operating_environment_identifier'">
         
      </param_in>
      <param_in
         name="items"
         value="^op_env">
         
      </param_in>
   </call_template>
   <comment>
      [ OPTIONAL Document_assignment ] to indicate the assumption
   </comment>
   <instantiate
      entity="Document_assignment"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Set the OPTIONAL Document_assignment attribute role to be ignored
   </comment>
   <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>
         <param_in_ref
            name="related_assumptions">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="is_assigned_to"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="op_env">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Instantiate the Requirement_assignment entity and link it to state_definition.
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Requirement_assignment"
            attribute="assigned_requirement"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_requirements">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Requirement_assignment"
            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="Requirement_assignment"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Populate the Applied_state_definition_assignment
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_definition_assignment"
            attribute="described_state_definition"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="op_env">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_definition_assignment"
            attribute="assigned_to"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_locations">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_definition_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="op_env">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved