Template:— ad_representing_special_training_requirement (ad_rep_spec_train_req)
Context:— Aerospace_and_Defense
Date: 2011/04/20 13:25:53
Revision: 1.3
Template: ad_representing_special_training_requirement

XML references to the Template

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

ad_representing_special_training_requirement

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="ad_representing_special_training_requirement" context="Aerospace_and_Defense" >
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_class_name">
    <param_value>Activity_method_identification_code</param_value>
    <description></description>
  </param>
  <param name="id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="req_descr">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="item">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="ad_representing_special_training_requirement">
  <param_in name="id" value=""/>
  <param_in name="id_class_name" value="Activity_method_identification_code"/>
  <param_in name="id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="org_id" value=""/>
  <param_in name="org_id_class_name" value="Organization_name"/>
  <param_in name="org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="req_descr" value=""/>
  <param_in name="item" value=""/>
</template_example>

ad_representing_special_training_requirement
/ad_representing_special_training_requirement(id='', id_class_name='Activity_method_identification_code', id_ecl_id='urn:plcs:rdl:std', org_id='', org_id_class_name='Organization_name', org_id_ecl_id='urn:plcs:rdl:std', req_descr='', item='')/

Path

-- instantiate Activity_method
Activity_method
%^req_training = Activity_method%
Activity_method.name = '/IGNORE'
Activity_method.description = '/IGNORE'
Activity_method.consequence = '/IGNORE'
Activity_method.purpose = '/IGNORE'

-- instantiate Applied_activity_method_assignment
Applied_activity_method_assignment
%^req_training_asg = Applied_activity_method_assignment%
Applied_activity_method_assignment.role = '/IGNORE'
Applied_activity_method_assignment.items -> @item

-- Provide an identification of the special training requirement
/assigning_identification(
    id=@id,
    id_class_name=@id_class_name,
    id_ecl_id=@id_ecl_id,
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id,
    items= ^req_training)/

-- Provide the description of the special training requirement
/assigning_descriptor(
    is_assigned_to=^req_training,
    descr=@req_descr,
    class_name='Description',
    ecl_id='urn:plcs:rdl:std')/

-- Provide the role of the Applied_activity_method_assignment by the assignment of reference data
/assigning_reference_data(
    items=^req_training_asg,
    class_name='Special_training_assignment',
    ecl_id='urn:plcs:rdl:ad')/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity_method.name '/IGNORE'
Activity_method.description '/IGNORE'
Activity_method.consequence '/IGNORE'
Activity_method.purpose '/IGNORE'
Applied_activity_method_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="ad_representing_special_training_requirement">
   <comment>
      instantiate Activity_method
   </comment>
   <instantiate
      entity="Activity_method"
      context="Aerospace_and_Defense">
      
   </instantiate>
   <bind
      parameter="req_training">
      <express_entity
         entity="Activity_method"
         context="Aerospace_and_Defense">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Activity_method"
            attribute="name"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Activity_method"
            attribute="description"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Activity_method"
            attribute="consequence"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Activity_method"
            attribute="purpose"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      instantiate Applied_activity_method_assignment
   </comment>
   <instantiate
      entity="Applied_activity_method_assignment"
      context="Aerospace_and_Defense">
      
   </instantiate>
   <bind
      parameter="req_training_asg">
      <express_entity
         entity="Applied_activity_method_assignment"
         context="Aerospace_and_Defense">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Applied_activity_method_assignment"
            attribute="role"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_method_assignment"
            attribute="items"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="item">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Provide an identification of the special training requirement
   </comment>
   <call_template
      name="assigning_identification"
      business_context="Aerospace_and_Defense">
      <param_in
         name="id"
         value="@id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value=" ^req_training">
         
      </param_in>
   </call_template>
   <comment>
      Provide the description of the special training requirement
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="Aerospace_and_Defense">
      <param_in
         name="is_assigned_to"
         value="^req_training">
         
      </param_in>
      <param_in
         name="descr"
         value="@req_descr">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Provide the role of the Applied_activity_method_assignment by the assignment of reference data
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="Aerospace_and_Defense">
      <param_in
         name="items"
         value="^req_training_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Special_training_assignment'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:ad'">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved