Template:— representing_state_type (rep_state_type) Date: 2009/04/06 15:58:46
Revision: 1.6
Template: representing_state_type

XML references to the Template

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

representing_state_type

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_state_type" capability="representing_state_type">
  <param name="sd_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sd_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_state_type">
  <param_in name="sd_class_name" value=""/>
  <param_in name="sd_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_state_type
/representing_state_type(sd_class_name='', sd_ecl_id='urn:plcs:rdl:std')/

Path

State_definition

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

-- provide the state type by classifying the State_definition
/assigning_reference_data(
    items=^state_def,
    class_name=@sd_class_name,
    ecl_id=@sd_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
State_definition.name '/IGNORE'
State_definition.description '/IGNORE'

XML representation of path

<refpath
   template="representing_state_type">
   <instantiate
      entity="State_definition"
      context="">
      
   </instantiate>
   <comment>
      Mark the State_definition entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter state_def
   </comment>
   <bind
      parameter="state_def">
      <express_entity
         entity="State_definition"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="State_definition"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="State_definition"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      provide the state type by classifying the State_definition
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^state_def">
         
      </param_in>
      <param_in
         name="class_name"
         value="@sd_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@sd_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved