Template:— assigning_state_type (asg_state_type) Date: 2009/04/03 08:58:01
Revision: 1.14
Template: assigning_state_type

XML references to the Template

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

assigning_state_type

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_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>
  <param name="sd_role_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sd_role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="assigned_to">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_state_type">
  <param_in name="sd_class_name" value=""/>
  <param_in name="sd_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="sd_role_class_name" value=""/>
  <param_in name="sd_role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="assigned_to" value=""/>
</template_example>

assigning_state_type
/assigning_state_type(sd_class_name='', sd_ecl_id='urn:plcs:rdl:std', sd_role_class_name='', sd_role_ecl_id='urn:plcs:rdl:std', assigned_to='')/

Path

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

-- Provide the described state definition
/representing_state_type(
    sd_class_name=@sd_class_name,
    sd_ecl_id=@sd_ecl_id)/

-- Bind ^state_def
%^state_def = $representing_state_type.state_def%

-- Populate the Applied_state_definition_assignment
Applied_state_definition_assignment.described_state_definition -> ^state_def
Applied_state_definition_assignment.assigned_to -> @assigned_to
Applied_state_definition_assignment.role -> State_definition_role
State_definition_role.name = '/IGNORE'
State_definition_role.description = '/IGNORE'

-- Provide the role of state type by classifying the Applied_state_definition_assignment
/assigning_reference_data(
    items=^appl_state_def_asg,
    class_name=@sd_role_class_name,
    ecl_id=@sd_role_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
State_definition_role.name '/IGNORE'
State_definition_role.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_state_type">
   <comment>
      Mark the Applied_state_definition_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter appl_state_def_asg
   </comment>
   <instantiate
      entity="Applied_state_definition_assignment"
      context="">
      
   </instantiate>
   <bind
      parameter="appl_state_def_asg">
      <express_entity
         entity="Applied_state_definition_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Provide the described state definition
   </comment>
   <call_template
      name="representing_state_type"
      business_context="">
      <param_in
         name="sd_class_name"
         value="@sd_class_name">
         
      </param_in>
      <param_in
         name="sd_ecl_id"
         value="@sd_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Bind ^state_def
   </comment>
   <bind
      parameter="state_def">
      <template_instance
         template="representing_state_type"
         parameter="state_def">
         
      </template_instance>
   </bind>
   <comment>
      Populate the Applied_state_definition_assignment
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_definition_assignment"
            attribute="described_state_definition"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="state_def">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_definition_assignment"
            attribute="assigned_to"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="assigned_to">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_state_definition_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="State_definition_role"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="State_definition_role"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="State_definition_role"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Provide the role of state type by classifying the Applied_state_definition_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^appl_state_def_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@sd_role_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@sd_role_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved