Template:— representing_task_element_constraint (rep_task_elem_const)
Capability:representing_task
Date: 2011/05/20 08:57:07
Revision: 1.4
Template: representing_task_element_constraint

XML references to the Template

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

representing_task_element_constraint

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_task_element_constraint" capability="representing_task">
  <param name="relating_method">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_method">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="applies_in">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="constraint_category">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="constraint_cat_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_task_element_constraint">
  <param_in name="relating_method" value=""/>
  <param_in name="related_method" value=""/>
  <param_in name="applies_in" value=""/>
  <param_in name="constraint_category" value=""/>
  <param_in name="constraint_cat_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_task_element_constraint
/representing_task_element_constraint(relating_method='', related_method='', applies_in='', constraint_category='', constraint_cat_ecl_id='urn:plcs:rdl:std')/

Path

Element_constraint
%^elem_const = Element_constraint%
Element_constraint.name = '/IGNORE'
Element_constraint.description = '/IGNORE'
Element_constraint.relating_method -> @relating_method
Element_constraint.related_method -> @related_method
Element_constraint.applies_in -> @applies_in

-- provide the role of the realization by classifying the Task_method_version_relationship
/assigning_reference_data(
    items=^elem_const,
    class_name=@constraint_category,
    ecl_id=@constraint_cat_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Element_constraint.name '/IGNORE' Activity_method_relationship.name
Element_constraint.description '/IGNORE' Activity_method_relationship.description

XML representation of path

<refpath
   template="representing_task_element_constraint">
   <instantiate
      entity="Element_constraint"
      context="">
      
   </instantiate>
   <bind
      parameter="elem_const">
      <express_entity
         entity="Element_constraint"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Element_constraint"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Element_constraint"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Element_constraint"
            attribute="relating_method"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating_method">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Element_constraint"
            attribute="related_method"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_method">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Element_constraint"
            attribute="applies_in"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="applies_in">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the realization by classifying the Task_method_version_relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^elem_const">
         
      </param_in>
      <param_in
         name="class_name"
         value="@constraint_category">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@constraint_cat_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved