Template:— representing_zone_breakdown (rep_zone_bkdn) Date: 2009/04/23 00:30:34
Revision: 1.13
Template: representing_zone_breakdown

XML references to the Template

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

representing_zone_breakdown

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_zone_breakdown" capability="representing_breakdown_structure">
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_class_name">
    <param_value>Breakdown_name</param_value>
    <description></description>
  </param>
  <param name="id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="id_owner">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_owner_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="id_owner_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="bkdn_type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="bkdn_type_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="vn_id">
    <param_value>Unknown</param_value>
    <description></description>
  </param>
  <param name="vn_id_class_name">
    <param_value>Version_identification_code</param_value>
    <description></description>
  </param>
  <param name="vn_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="vn_id_owner">
    <param_value>Unknown</param_value>
    <description></description>
  </param>
  <param name="vn_id_owner_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="vn_id_owner_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="of_product">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_zone_breakdown">
  <param_in name="id" value=""/>
  <param_in name="id_class_name" value="Breakdown_name"/>
  <param_in name="id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="id_owner" value=""/>
  <param_in name="id_owner_class_name" value="Organization_name"/>
  <param_in name="id_owner_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="bkdn_type" value=""/>
  <param_in name="bkdn_type_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="vn_id" value="Unknown"/>
  <param_in name="vn_id_class_name" value="Version_identification_code"/>
  <param_in name="vn_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="vn_id_owner" value="Unknown"/>
  <param_in name="vn_id_owner_class_name" value="Organization_name"/>
  <param_in name="vn_id_owner_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="of_product" value=""/>
</template_example>

representing_zone_breakdown
/representing_zone_breakdown(id='', id_class_name='Breakdown_name', id_ecl_id='urn:plcs:rdl:std', id_owner='', id_owner_class_name='Organization_name', id_owner_ecl_id='urn:plcs:rdl:std', bkdn_type='', bkdn_type_ecl_id='urn:plcs:rdl:std', vn_id='Unknown', vn_id_class_name='Version_identification_code', vn_id_ecl_id='urn:plcs:rdl:std', vn_id_owner='Unknown', vn_id_owner_class_name='Organization_name', vn_id_owner_ecl_id='urn:plcs:rdl:std', of_product='')/

Path

-- instantiate Zone_breakdown
Zone_breakdown
%^zone_bkdn = Zone_breakdown%
Zone_breakdown.id = '/IGNORE'
Zone_breakdown.name = '/IGNORE'
Zone_breakdown.description = '/IGNORE'

-- assign ID to Zone_breakdown
/assigning_identification(
    id=@id,
    id_class_name=@id_class_name,
    id_ecl_id=@id_ecl_id,
    org_id=@id_owner,
    org_id_class_name=@id_owner_class_name,
    org_id_ecl_id=@id_owner_ecl_id,
    items=^zone_bkdn)/

-- instantiate Zone_breakdown_version
Zone_breakdown_version
%^zone_bkdn_vn = Zone_breakdown_version%
Zone_breakdown_version.id = '/IGNORE'
Zone_breakdown_version.description = '/IGNORE'
Zone_breakdown_version.of_product -> Zone_breakdown

-- assign ID to Zone_breakdown_version
/assigning_identification(
    id=@vn_id,
    id_class_name=@vn_id_class_name,
    id_ecl_id=@vn_id_ecl_id,
    org_id=@vn_id_owner,
    org_id_class_name=@vn_id_owner_class_name,
    org_id_ecl_id=@vn_id_owner_ecl_id,
    items=^zone_bkdn_vn)/

-- instantiate Breakdown_of
Breakdown_of
%^bkdn_of = Breakdown_of%
Breakdown_of.id = '/IGNORE'
Breakdown_of.name = '/IGNORE'
Breakdown_of.description = '/IGNORE'
Breakdown_of.breakdown -> Zone_breakdown_version
Breakdown_of.of_view -> @of_product

-- assign type of breakdown to the Zone_breakdown
/assigning_reference_data(
    items=Zone_breakdown,
    class_name=@bkdn_type,
    ecl_id=@bkdn_type_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Zone_breakdown.id '/IGNORE' Product.id
Zone_breakdown.name '/IGNORE' Product.name
Zone_breakdown.description '/IGNORE' Product.description
Zone_breakdown_version.id '/IGNORE' Product_version.id
Zone_breakdown_version.description '/IGNORE' Product_version.description
Breakdown_of.id '/IGNORE'
Breakdown_of.name '/IGNORE'
Breakdown_of.description '/IGNORE'

XML representation of path

<refpath
   template="representing_zone_breakdown">
   <comment>
      instantiate Zone_breakdown
   </comment>
   <instantiate
      entity="Zone_breakdown"
      context="">
      
   </instantiate>
   <bind
      parameter="zone_bkdn">
      <express_entity
         entity="Zone_breakdown"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Zone_breakdown"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Zone_breakdown"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Zone_breakdown"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      assign ID to Zone_breakdown
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <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="@id_owner">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@id_owner_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@id_owner_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^zone_bkdn">
         
      </param_in>
   </call_template>
   <comment>
      instantiate Zone_breakdown_version
   </comment>
   <instantiate
      entity="Zone_breakdown_version"
      context="">
      
   </instantiate>
   <bind
      parameter="zone_bkdn_vn">
      <express_entity
         entity="Zone_breakdown_version"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Zone_breakdown_version"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Zone_breakdown_version"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Zone_breakdown_version"
            attribute="of_product"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Zone_breakdown"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      assign ID to Zone_breakdown_version
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="id"
         value="@vn_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@vn_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@vn_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@vn_id_owner">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@vn_id_owner_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@vn_id_owner_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^zone_bkdn_vn">
         
      </param_in>
   </call_template>
   <comment>
      instantiate Breakdown_of
   </comment>
   <instantiate
      entity="Breakdown_of"
      context="">
      
   </instantiate>
   <bind
      parameter="bkdn_of">
      <express_entity
         entity="Breakdown_of"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Breakdown_of"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Breakdown_of"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Breakdown_of"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Breakdown_of"
            attribute="breakdown"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Zone_breakdown_version"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Breakdown_of"
            attribute="of_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="of_product">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      assign type of breakdown to the Zone_breakdown
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Zone_breakdown">
         
      </param_in>
      <param_in
         name="class_name"
         value="@bkdn_type">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@bkdn_type_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved