Template:— support_environment (sup_env)
Context:— UK_Defence
Date: 2009/04/17 11:58:03
Revision: 1.3
Template: support_environment

XML references to the Template

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

support_environment

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="support_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="PSE_requiring_support">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_assumptions">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_constraints">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_requirements">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_supply_nodes">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_support_nodes">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_support_organizations">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="support_environment">
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="PSE_requiring_support" value=""/>
  <param_in name="related_assumptions" value=""/>
  <param_in name="related_constraints" value=""/>
  <param_in name="related_requirements" value=""/>
  <param_in name="related_supply_nodes" value=""/>
  <param_in name="related_support_nodes" value=""/>
  <param_in name="related_support_organizations" value=""/>
</template_example>

support_environment
/support_environment(ID='', source_organization='', PSE_requiring_support='', related_assumptions='', related_constraints='', related_requirements='', related_supply_nodes='', related_support_nodes='', related_support_organizations='')/

Path

-- initiate assigning_state_type (mandatory)
/assigning_state_type(
    sd_class_name="Support_environment",
    sd_ecl_id='urn:plcs:rdl:uk_defence',
    sd_role_class_name="Support_state_definition_context",
    sd_role_ecl_id='urn:plcs:rdl:std',
    assigned_to=@PSE_requiring_support)/
%^sup_env = $assigning_state_type.state_def%

-- ID (mandatory)
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='Support_environment_identifier',
    items=^sup_env)/

-- related_support_nodes (mandatory)
Organization_or_person_in_organization_assignment

-- Set the Organization_or_person_in_organization_assignment attribute role to be ignored
Organization_or_person_in_organization_assignment.role = '/IGNORE'

-- Assign the Organization_or_person_in_organization_assignment to the support_environment
Organization_or_person_in_organization_assignment.items -> ^sup_env

-- Assign the assigned_entity parameter
Organization_or_person_in_organization_assignment.assigned_entity -> @related_support_nodes

-- related_supply_node (mandatory)
Organization_or_person_in_organization_assignment

-- Set the Organization_or_person_in_organization_assignment attribute role to be ignored
Organization_or_person_in_organization_assignment.role = '/IGNORE'

-- Assign the Organization_or_person_in_organization_assignment to the support_environment
Organization_or_person_in_organization_assignment.items -> ^sup_env

-- Assign the assigned_entity parameter
Organization_or_person_in_organization_assignment.assigned_entity -> @related_supply_nodes

-- related_support_organizations (mandatory)
Organization_or_person_in_organization_assignment

-- Set the Organization_or_person_in_organization_assignment attribute role to be ignored
Organization_or_person_in_organization_assignment.role = '/IGNORE'

-- Assign the Organization_or_person_in_organization_assignment to the support_environment
Organization_or_person_in_organization_assignment.items -> ^sup_env

-- Assign the assigned_entity parameter
Organization_or_person_in_organization_assignment.assigned_entity -> @related_support_organizations

-- 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'

-- [ 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 -> ^sup_env

-- [ OPTIONAL Requirement_assignment ] entity and link it to state_definition.
Requirement_assignment.assigned_requirement -> @related_constraints
Requirement_assignment.id = '/IGNORE'
Requirement_assignment.description = '/IGNORE'
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Organization_or_person_in_organization_assignment.role '/IGNORE'
Organization_or_person_in_organization_assignment.role '/IGNORE'
Organization_or_person_in_organization_assignment.role '/IGNORE'
Requirement_assignment.id '/IGNORE'
Requirement_assignment.description '/IGNORE'
Document_assignment.role '/IGNORE'
Requirement_assignment.id '/IGNORE'
Requirement_assignment.description '/IGNORE'

XML representation of path

<refpath
   template="support_environment">
   <comment>
      initiate assigning_state_type (mandatory)
   </comment>
   <call_template
      name="assigning_state_type"
      business_context="UK_Defence">
      <param_in
         name="sd_class_name"
         value=""Support_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=""Support_state_definition_context"">
         
      </param_in>
      <param_in
         name="sd_role_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="assigned_to"
         value="@PSE_requiring_support">
         
      </param_in>
   </call_template>
   <bind
      parameter="sup_env">
      <template_instance
         template="assigning_state_type"
         parameter="state_def">
         
      </template_instance>
   </bind>
   <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="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Support_environment_identifier'">
         
      </param_in>
      <param_in
         name="items"
         value="^sup_env">
         
      </param_in>
   </call_template>
   <comment>
      related_support_nodes (mandatory)
   </comment>
   <instantiate
      entity="Organization_or_person_in_organization_assignment"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Set the Organization_or_person_in_organization_assignment attribute role to be ignored
   </comment>
   <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>
      Assign the Organization_or_person_in_organization_assignment to the support_environment
   </comment>
   <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="sup_env">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign the assigned_entity parameter
   </comment>
   <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="related_support_nodes">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      related_supply_node (mandatory)
   </comment>
   <instantiate
      entity="Organization_or_person_in_organization_assignment"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Set the Organization_or_person_in_organization_assignment attribute role to be ignored
   </comment>
   <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>
      Assign the Organization_or_person_in_organization_assignment to the support_environment
   </comment>
   <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="sup_env">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign the assigned_entity parameter
   </comment>
   <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="related_supply_nodes">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      related_support_organizations (mandatory)
   </comment>
   <instantiate
      entity="Organization_or_person_in_organization_assignment"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Set the Organization_or_person_in_organization_assignment attribute role to be ignored
   </comment>
   <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>
      Assign the Organization_or_person_in_organization_assignment to the support_environment
   </comment>
   <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="sup_env">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign the assigned_entity parameter
   </comment>
   <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="related_support_organizations">
            
         </param_in_ref>
      </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>
      [ 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="sup_env">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      [ OPTIONAL 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_constraints">
            
         </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>
</refpath>

© UK MOD 2010 — All rights reserved