Template:— assigning_dated_effectivity (ass_date_eff) Date: 2009/04/03 08:44:10
Revision: 1.21
Template: assigning_dated_effectivity

XML references to the Template

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

assigning_dated_effectivity

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_dated_effectivity" capability="assigning_effectivity">
  <param name="start_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_hour">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_minute">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_second">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_sense">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_hour_offset">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_minute_offset">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_hour">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_minute">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_second">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_sense">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_hour_offset">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_minute_offset">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_dated_effectivity">
  <param_in name="start_year" value=""/>
  <param_in name="start_month" value=""/>
  <param_in name="start_day" value=""/>
  <param_in name="start_hour" value=""/>
  <param_in name="start_minute" value=""/>
  <param_in name="start_second" value=""/>
  <param_in name="start_sense" value=""/>
  <param_in name="start_hour_offset" value=""/>
  <param_in name="start_minute_offset" value=""/>
  <param_in name="end_year" value=""/>
  <param_in name="end_month" value=""/>
  <param_in name="end_day" value=""/>
  <param_in name="end_hour" value=""/>
  <param_in name="end_minute" value=""/>
  <param_in name="end_second" value=""/>
  <param_in name="end_sense" value=""/>
  <param_in name="end_hour_offset" value=""/>
  <param_in name="end_minute_offset" value=""/>
  <param_in name="role_class_name" value=""/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

assigning_dated_effectivity
/assigning_dated_effectivity(start_year='', start_month='', start_day='', start_hour='', start_minute='', start_second='', start_sense='', start_hour_offset='', start_minute_offset='', end_year='', end_month='', end_day='', end_hour='', end_minute='', end_second='', end_sense='', end_hour_offset='', end_minute_offset='', role_class_name='', role_ecl_id='urn:plcs:rdl:std', items='')/

Path

-- Instantiate Effectivity_assignment entity
Effectivity_assignment

-- Set the Effectivity_assignment attribute role to be ignored
Effectivity_assignment.role = '/IGNORE'

-- Bind the Effectivity_assignment to the parameter ^eff_asgn.
-- The parameter is a reference parameter so the Effectivity_assignment
-- entity can be referred to when this template is used.
%^eff_asgn = Effectivity_assignment%

-- Assign reference data to Effectivity_assignment
/assigning_reference_data(
    items=Effectivity_assignment,
    class_name=@role_class_name,
    ecl_id=@role_ecl_id)/

-- Instantiate representing_dated_effectivity
/representing_dated_effectivity(
    start_year=@start_year,
    start_month=@start_month,
    start_day=@start_day,
    start_hour=@start_hour,
    start_minute=@start_minute,
    start_second=@start_second,
    start_sense=@start_sense,
    start_hour_offset=@start_hour_offset,
    start_minute_offset=@start_minute_offset,
    end_year=@end_year,
    end_month=@end_month,
    end_day=@end_day,
    end_hour=@end_hour,
    end_minute=@end_minute,
    end_second=@end_second,
    end_sense=@end_sense,
    end_hour_offset=@end_hour_offset,
    end_minute_offset=@end_minute_offset)/

-- Bind the Dated_effectivity instantiated by the
-- template representing_dated_effectivity
-- to the parameter ^dated_effectivity.
-- The parameter is a reference parameter so the
-- Dated_effectivity can be referred to when this template is used.
-- %^dated_effectivity = $representing_dated_effectivity.^dated_effectivity%
%^dated_effectivity = $representing_dated_effectivity.dated_effectivity%

-- Set the Effectivity_assignment.assigned_effectivity to
-- the Dated_effectivity entity instantiated by
-- representing_dated_effectivity
-- Effectivity_assignment.assigned_effectivity -> $representing_dated_effectivity.^dated_effectivity
-- Effectivity_assignment.assigned_effectivity -> $representing_dated_effectivity.dated_effectivity
Effectivity_assignment.assigned_effectivity -> ^dated_effectivity

-- Assign the Effectivity_assignment
-- to the instances passed into the template through the @items
-- input parameter (e.g. an Next_assembly_usage)
Effectivity_assignment.items -> @items
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Effectivity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="assigning_dated_effectivity">
   <comment>
      Instantiate Effectivity_assignment entity
   </comment>
   <instantiate
      entity="Effectivity_assignment"
      context="">
      
   </instantiate>
   <comment>
      Set the Effectivity_assignment attribute role to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Effectivity_assignment to the parameter ^eff_asgn.
   </comment>
   <comment>
      The parameter is a reference parameter so the Effectivity_assignment
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="eff_asgn">
      <express_entity
         entity="Effectivity_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign reference data to Effectivity_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Effectivity_assignment">
         
      </param_in>
      <param_in
         name="class_name"
         value="@role_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate representing_dated_effectivity
   </comment>
   <call_template
      name="representing_dated_effectivity"
      business_context="">
      <param_in
         name="start_year"
         value="@start_year">
         
      </param_in>
      <param_in
         name="start_month"
         value="@start_month">
         
      </param_in>
      <param_in
         name="start_day"
         value="@start_day">
         
      </param_in>
      <param_in
         name="start_hour"
         value="@start_hour">
         
      </param_in>
      <param_in
         name="start_minute"
         value="@start_minute">
         
      </param_in>
      <param_in
         name="start_second"
         value="@start_second">
         
      </param_in>
      <param_in
         name="start_sense"
         value="@start_sense">
         
      </param_in>
      <param_in
         name="start_hour_offset"
         value="@start_hour_offset">
         
      </param_in>
      <param_in
         name="start_minute_offset"
         value="@start_minute_offset">
         
      </param_in>
      <param_in
         name="end_year"
         value="@end_year">
         
      </param_in>
      <param_in
         name="end_month"
         value="@end_month">
         
      </param_in>
      <param_in
         name="end_day"
         value="@end_day">
         
      </param_in>
      <param_in
         name="end_hour"
         value="@end_hour">
         
      </param_in>
      <param_in
         name="end_minute"
         value="@end_minute">
         
      </param_in>
      <param_in
         name="end_second"
         value="@end_second">
         
      </param_in>
      <param_in
         name="end_sense"
         value="@end_sense">
         
      </param_in>
      <param_in
         name="end_hour_offset"
         value="@end_hour_offset">
         
      </param_in>
      <param_in
         name="end_minute_offset"
         value="@end_minute_offset">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Dated_effectivity instantiated by the
   </comment>
   <comment>
      template representing_dated_effectivity
   </comment>
   <comment>
      to the parameter ^dated_effectivity.
   </comment>
   <comment>
      The parameter is a reference parameter so the
   </comment>
   <comment>
      Dated_effectivity can be referred to when this template is used.
   </comment>
   <comment>
      %^dated_effectivity = $representing_dated_effectivity.^dated_effectivity%
   </comment>
   <bind
      parameter="dated_effectivity">
      <template_instance
         template="representing_dated_effectivity"
         parameter="dated_effectivity">
         
      </template_instance>
   </bind>
   <comment>
      Set the Effectivity_assignment.assigned_effectivity to
   </comment>
   <comment>
      the Dated_effectivity entity instantiated by
   </comment>
   <comment>
      representing_dated_effectivity
   </comment>
   <comment>
      Effectivity_assignment.assigned_effectivity -> $representing_dated_effectivity.^dated_effectivity
   </comment>
   <comment>
      Effectivity_assignment.assigned_effectivity -> $representing_dated_effectivity.dated_effectivity
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="assigned_effectivity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="dated_effectivity">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign the Effectivity_assignment
   </comment>
   <comment>
      to the instances passed into the template through the @items
   </comment>
   <comment>
      input parameter (e.g. an Next_assembly_usage)
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved