Template:— assigning_effectivity (asg_eff) Date: 2009/04/03 08:35:25
Revision: 1.10

This section specifies the template assigning_effectivity.

NOTE  An explanation of a template and the associated instantiation path is provided in the Template overview section.

Description

This template describes how to represent the assignment of an Effectivity.

Model diagrams
The EXPRESS-G diagram in Figure 1 shows the templates and EXPRESS entities that are required to represent the template "assigning_effectivity". The text highlighted in blue shows the template parameters.


Figure 1 —  An EXPRESS-G representation of the Information model for assigning_effectivity

Figure 1 —  An EXPRESS-G representation of the Information model for assigning_effectivity

The graphic for the template to be used in other EXPRESS-G diagrams is shown in Figure  2 below.


Figure 2 —  The graphical representation of the assigning_effectivity template

Figure 2 —  The graphical representation of the assigning_effectivity template

Input parameters
The following input parameters are defined for this template:
eff_class_name (Type='CLASS')
The name of the class being used to classify the effectivity (Effectivity) This provides the role for the effectivity.
The following classes and their sub-classes can be used:
classifications: "Effectivity" (urn:plcs:rdl:std:Effectivity)
eff_ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library storing the definition of the class referenced by the parameter @eff_class_name.
role_class_name (Type='CLASS')
The name of the class being used to classify the effectivity assignment (Effectivity_assignment) This provides the role for the assignment.
The following classes and their sub-classes can be used:
classifications: "Effectivity_assignment" (urn:plcs:rdl:std:Effectivity_assignment)
role_ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library storing the definition of the class referenced by the parameter @role_class_name.
items (Type= 'SELECT (effectivity_item)' )
The items to which the effectivity is assigned.
Reference parameters
The following reference parameters are defined for this template:
eff_asg(Type='ENTITY (Effectivity_assignment)')
Allow the Effectivity_assignment entity instantiated in this path to be referenced when this template is used.
Note: The Effectivity_assignment entity can be referenced in a template path by:
%^target = $assigning_effectivity.eff_asg%
where target is the parameter to which the Effectivity_assignment is bound.
effectivity(Type='ENTITY (Effectivity)')
Allow the Effectivity entity instantiated in this path to be referenced when this template is used.
Note: The Effectivity entity can be referenced in a template path by:
%^target = $assigning_effectivity.effectivity%
where target is the parameter to which the Effectivity is bound.
Instantiation path
The instantiation path shown below specifies the entities that are to be instantiated by the template.
A description of templates and the syntax for the instantiation path is provided in the Templates Help/Information section.
-- Instantiate the Effectivity entity
Effectivity

-- Set the Effectivity attributes id, name and description to be ignored
Effectivity.id = '/IGNORE'
Effectivity.name = '/IGNORE'
Effectivity.description = '/IGNORE'

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

-- Assign reference data to Effectivity
/assigning_reference_data(
    items=^effectivity,
    class_name=@eff_class_name,
    ecl_id=@eff_ecl_id)/

-- 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_asg.
-- The parameter is a reference parameter so the Effectivity_assignment
-- entity can be referred to when this template is used.
%^eff_asg = Effectivity_assignment%

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

-- Set the Effectivity_assignment.assigned_effectivity attribute to the Effectivity entity
-- instantiated at the beginning of this path
Effectivity_assignment.assigned_effectivity -> Effectivity

-- Assign the Effectivity_assignment
-- to the instances passed into the template through the @items
-- input parameter
Effectivity_assignment.items -> @items
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Effectivity.id '/IGNORE'
Effectivity.name '/IGNORE'
Effectivity.description '/IGNORE'
Effectivity_assignment.role '/IGNORE'
Instance diagrams
The instance diagram in Figure  3 shows an example of the EXPRESS entities and templates that are instantiated by the template:
/assigning_effectivity(items='#1', eff_class_name='Design_effectivity', eff_ecl_id='urn:plcs:rdl:sample', role_class_name='Effectivity_target', role_ecl_id='urn:plcs:rdl:sample')/
(an illustration of the consolidated assigning_effectivity template is shown in Figure 4 below.)


Figure 3 —  Entities instantiated by assigning_effectivity template

Figure 3 —  Entities instantiated by assigning_effectivity template

The instance model in STEP ASCII exchange file format (ISO 10303 Part 21 syntax) is:
#1 = TASK_METHOD_VERSION_ASSIGNMENT($,(),'/IGNORE'); #2 = EFFECTIVITY('/IGNORE','/IGNORE','/IGNORE'); #3 = EFFECTIVITY_ASSIGNMENT(#2,'/IGNORE',(#1)); #5 = CLASSIFICATION_ASSIGNMENT(#7,(#3),'/IGNORE'); #7 = EXTERNAL_CLASS('/NULL','Effectivity_target','/IGNORE',#8); #8 = EXTERNAL_CLASS_LIBRARY('urn:plcs:rdl:sample',$); #10 = CLASSIFICATION_ASSIGNMENT(#12,(#2),'/IGNORE'); #12 = EXTERNAL_CLASS('/NULL','Design_effectivity','/IGNORE',#8);
The instance diagram in Figure 4 shows the graphic symbol for the template that is to be used in other instance diagrams. The example template is:
/assigning_effectivity(items='#1', eff_class_name='Design_effectivity', eff_ecl_id='urn:plcs:rdl:sample', role_class_name='Effectivity_target', role_ecl_id='urn:plcs:rdl:sample')/


Figure 4 —  Instantiation of assigning_effectivity template

Figure 4 —  Instantiation of assigning_effectivity template

Characterizations
The following section details how the assigning_effectivity template can be optionally characterized by assigning other constructs to it. These are characterizations commonly applied to the template. The ISO 10303-239 EXPRESS model may enable other assignments to the entities instantiated by the template.
The following characterizations may apply:
Characterization Assigning descriptions

NOTE   this characterization is optional.

Descriptions can be assigned to Effectivity using the template assigning_descriptor.

Characterization Assigning identifications

NOTE   this characterization is optional.

Names can be assigned to the Effectivity using the template assigning_identification.

© OASIS 2010 — All rights reserved