Template:— representing_requirement (repr_req)
Capability:representing_requirements
Date: 2011/04/26 14:45:32
Revision: 1.3
Template: representing_requirement

XML references to the Template

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

representing_requirement

Set up a hyperlink to the template definition.
<template_ref name="representing_requirement" capability="representing_requirements"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_requirement" capability="representing_requirements">
  <param name="req_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="req_id_class_name">
    <param_value>Identification_code</param_value>
    <description></description>
  </param>
  <param name="req_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="req_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="req_org_id_class_name">
    <param_value>Organization_identification_code</param_value>
    <description></description>
  </param>
  <param name="req_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="req_ver_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="req_ver_id_class_name">
    <param_value>Identification_code</param_value>
    <description></description>
  </param>
  <param name="req_ver_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="req_ver_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="req_ver_org_id_class_name">
    <param_value>Organization_identification_code</param_value>
    <description></description>
  </param>
  <param name="req_ver_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="domain">
    <param_value>Product_life_cycle_support</param_value>
    <description></description>
  </param>
  <param name="domain_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="life_cycle_stage">
    <param_value>Support_stage</param_value>
    <description></description>
  </param>
  <param name="life_cycle_stage_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_requirement">
  <param_in name="req_id" value=""/>
  <param_in name="req_id_class_name" value="Identification_code"/>
  <param_in name="req_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="req_org_id" value=""/>
  <param_in name="req_org_id_class_name" value="Organization_identification_code"/>
  <param_in name="req_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="req_ver_id" value=""/>
  <param_in name="req_ver_id_class_name" value="Identification_code"/>
  <param_in name="req_ver_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="req_ver_org_id" value=""/>
  <param_in name="req_ver_org_id_class_name" value="Organization_identification_code"/>
  <param_in name="req_ver_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="domain" value="Product_life_cycle_support"/>
  <param_in name="domain_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="life_cycle_stage" value="Support_stage"/>
  <param_in name="life_cycle_stage_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_requirement
/representing_requirement(req_id='', req_id_class_name='Identification_code', req_id_ecl_id='urn:plcs:rdl:std', req_org_id='', req_org_id_class_name='Organization_identification_code', req_org_id_ecl_id='urn:plcs:rdl:std', req_ver_id='', req_ver_id_class_name='Identification_code', req_ver_id_ecl_id='urn:plcs:rdl:std', req_ver_org_id='', req_ver_org_id_class_name='Organization_identification_code', req_ver_org_id_ecl_id='urn:plcs:rdl:std', domain='Product_life_cycle_support', domain_ecl_id='urn:plcs:rdl:std', life_cycle_stage='Support_stage', life_cycle_stage_ecl_id='urn:plcs:rdl:std')/

Path

Requirement
Requirement.id = '/IGNORE'
Requirement.name = '/IGNORE'
Requirement.description = '/IGNORE'

-- Bind the Requirement entity to the parameter ^req.
%^req = Requirement%

-- Identify the Requirement
/assigning_identification(
    id=@req_id,
    id_class_name=@req_id_class_name,
    id_ecl_id=@req_id_ecl_id,
    org_id=@req_org_id,
    org_id_class_name=@req_org_id_class_name,
    org_id_ecl_id=@req_org_id_ecl_id,
    items=^req)/

-- Requirement_version
Requirement_version

-- Mark the Requirement_version entity as referable when this template
-- is used by binding it to the reference parameter ^req_ver
%^req_ver = Requirement_version%
Requirement_version.id = '/IGNORE'
Requirement_version.description = '/IGNORE'

-- Relate the Requirement_version to the Requirement
Requirement_version.of_product -> Requirement

-- Identify the Requirement_version
/assigning_identification(
    id=@req_ver_id,
    id_class_name=@req_ver_id_class_name,
    id_ecl_id=@req_ver_id_ecl_id,
    org_id=@req_ver_org_id,
    org_id_class_name=@req_ver_org_id_class_name,
    org_id_ecl_id=@req_ver_org_id_ecl_id,
    items=^req_ver)/

--
Requirement_view_definition

-- Mark the Requirement_view_definition entity as referable
-- when this template is used by binding it to the reference
-- parameter ^req_view
%^req_view = Requirement_view_definition%
Requirement_view_definition.id = '/IGNORE'
Requirement_view_definition.name = '/IGNORE'
Requirement_view_definition.additional_characterization = '/IGNORE'

-- Relate the Requirement_version to the Requirement
Requirement_view_definition.defined_version -> Requirement_version

--
View_definition_context

-- Mark the View_definition_context entity as referable when this
-- template is used by binding it to the reference parameter ^contxt
%^contxt = View_definition_context%

-- Ignore the attributes
View_definition_context.application_domain = '/IGNORE'
View_definition_context.life_cycle_stage = '/IGNORE'
View_definition_context.description = '/IGNORE'

-- provide the application domain of the view definition by classification
/assigning_reference_data(
    items=^contxt,
    class_name=@domain,
    ecl_id=@domain_ecl_id)/

-- provide the life cycle stage of the view definition by classification
/assigning_reference_data(
    items=^contxt,
    class_name=@life_cycle_stage,
    ecl_id=@life_cycle_stage_ecl_id)/

-- Relate the Requirement_view_definition to the View_definition_context
Requirement_view_definition.initial_context -> View_definition_context
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Requirement.id '/IGNORE' Product.id
Requirement.name '/IGNORE' Product.name
Requirement.description '/IGNORE' Product.description
Requirement_version.id '/IGNORE' Product_version.id
Requirement_version.description '/IGNORE' Product_version.description
Requirement_view_definition.id '/IGNORE' Product_view_definition.id
Requirement_view_definition.name '/IGNORE' Product_view_definition.name
Requirement_view_definition.additional_characterization '/IGNORE' Product_view_definition.additional_characterization
View_definition_context.application_domain '/IGNORE'
View_definition_context.life_cycle_stage '/IGNORE'
View_definition_context.description '/IGNORE'

XML representation of path

<refpath
   template="representing_requirement">
   <instantiate
      entity="Requirement"
      context="">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Requirement entity to the parameter ^req.
   </comment>
   <bind
      parameter="req">
      <express_entity
         entity="Requirement"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Identify the Requirement
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="id"
         value="@req_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@req_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@req_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@req_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@req_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@req_org_id_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^req">
         
      </param_in>
   </call_template>
   <comment>
      Requirement_version
   </comment>
   <instantiate
      entity="Requirement_version"
      context="">
      
   </instantiate>
   <comment>
      Mark the Requirement_version entity as referable when this template
   </comment>
   <comment>
      is used by binding it to the reference parameter ^req_ver
   </comment>
   <bind
      parameter="req_ver">
      <express_entity
         entity="Requirement_version"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement_version"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement_version"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Relate the Requirement_version to the Requirement
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Requirement_version"
            attribute="of_product"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Requirement"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Identify the Requirement_version
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="id"
         value="@req_ver_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@req_ver_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@req_ver_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@req_ver_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@req_ver_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@req_ver_org_id_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^req_ver">
         
      </param_in>
   </call_template>
   <comment>
      
   </comment>
   <instantiate
      entity="Requirement_view_definition"
      context="">
      
   </instantiate>
   <comment>
      Mark the Requirement_view_definition entity as referable
   </comment>
   <comment>
      when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^req_view
   </comment>
   <bind
      parameter="req_view">
      <express_entity
         entity="Requirement_view_definition"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement_view_definition"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement_view_definition"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Requirement_view_definition"
            attribute="additional_characterization"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Relate the Requirement_version to the Requirement
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Requirement_view_definition"
            attribute="defined_version"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Requirement_version"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      
   </comment>
   <instantiate
      entity="View_definition_context"
      context="">
      
   </instantiate>
   <comment>
      Mark the View_definition_context entity as referable when this
   </comment>
   <comment>
      template is used by binding it to the reference parameter ^contxt
   </comment>
   <bind
      parameter="contxt">
      <express_entity
         entity="View_definition_context"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Ignore the attributes
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_context"
            attribute="application_domain"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_context"
            attribute="life_cycle_stage"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_context"
            attribute="description"
            context="">
            
         </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="">
      <param_in
         name="items"
         value="^contxt">
         
      </param_in>
      <param_in
         name="class_name"
         value="@domain">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@domain_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      provide the life cycle stage of the view definition by classification
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^contxt">
         
      </param_in>
      <param_in
         name="class_name"
         value="@life_cycle_stage">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@life_cycle_stage_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Relate the Requirement_view_definition to the View_definition_context
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Requirement_view_definition"
            attribute="initial_context"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="View_definition_context"
            context="">
            
         </express_entity>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved