Template:— activity_composition (act_comp)
Context:— UK_Defence
Date: 2009/04/16 21:09:13
Revision: 1.2
Template: activity_composition

XML references to the Template

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

activity_composition

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="activity_composition" context="UK_Defence" >
  <param name="child">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="parent">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="activity_composition">
  <param_in name="child" value=""/>
  <param_in name="parent" value=""/>
</template_example>

activity_composition
/activity_composition(child='', parent='')/

Path

-- instantiate Activity_relationship
Activity_relationship
%^act_rel = Activity_relationship%
^act_rel.name = '/IGNORE'
^act_rel.description = '/IGNORE'
^act_rel.relating_activity -> @parent
^act_rel.related_activity -> @child
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity_relationship.name '/IGNORE'
Activity_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="activity_composition">
   <comment>
      instantiate Activity_relationship
   </comment>
   <instantiate
      entity="Activity_relationship"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="act_rel">
      <express_entity
         entity="Activity_relationship"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="act_rel.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="act_rel.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="act_rel.relating_activity">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="parent">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="act_rel.related_activity">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="child">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved