Template:— representing_view_definition_usage (rep_view_usage) Date: 2008/03/05 16:17:55
Revision: 1.4
Template: representing_view_definition_usage

XML references to the Template

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

representing_view_definition_usage

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_view_definition_usage" capability="representing_assembly_structure">
  <param name="relating_product">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_product">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="class_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_view_definition_usage">
  <param_in name="relating_product" value=""/>
  <param_in name="related_product" value=""/>
  <param_in name="class_name" value=""/>
  <param_in name="class_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_view_definition_usage
/representing_view_definition_usage(relating_product='', related_product='', class_name='', class_ecl_id='urn:plcs:rdl:std')/

Path

-- Create the View_definition_usage entity and its reference param
View_definition_usage
%^view_usage = View_definition_usage%

-- Set the attributes
View_definition_usage.id = '/IGNORE'
View_definition_usage.relation_type = '/IGNORE'
View_definition_usage.description = '/IGNORE'
View_definition_usage.relating_view -> @relating_product
View_definition_usage.related_view -> @related_product

-- Assign the External_class in the reference data library
-- being used to determine type of relationship
/assigning_reference_data(
    items=^view_usage,
    class_name=@class_name,
    ecl_id=@class_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
View_definition_usage.id '/IGNORE' View_definition_relationship.id
View_definition_usage.relation_type '/IGNORE' View_definition_relationship.relation_type
View_definition_usage.description '/IGNORE' View_definition_relationship.description

XML representation of path

<refpath
   template="representing_view_definition_usage">
   <comment>
      Create the View_definition_usage entity and its reference param
   </comment>
   <instantiate
      entity="View_definition_usage"
      context="">
      
   </instantiate>
   <bind
      parameter="view_usage">
      <express_entity
         entity="View_definition_usage"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the attributes
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_usage"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_usage"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_usage"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="View_definition_usage"
            attribute="relating_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating_product">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="View_definition_usage"
            attribute="related_view"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_product">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign the External_class in the reference data library
   </comment>
   <comment>
      being used to determine type of relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^view_usage">
         
      </param_in>
      <param_in
         name="class_name"
         value="@class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@class_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved