Template:— representing_condition_relationship (rep_cond_rel) Date: 2008/02/27 21:47:38
Revision: 1.7

This section specifies the template representing_condition_relationship.

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 condition relationships such as logical expressions ('AND', 'OR' etc).

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


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

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

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 representing_condition_relationship template

Figure 2 —  The graphical representation of the representing_condition_relationship template

Input parameters
The following input parameters are defined for this template:
class_name (Type='CLASS')
The name of the External_class used to describe the role of the relationship.
The following classes and their sub-classes can be used:
classifications: "Condition_relationship" (urn:plcs:rdl:std:Condition_relationship)
ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The id of the External_class_library storing the @class_name
relating (Type= 'ENTITY (Condition)' )
The Condition entity which relates to another Condition.
related (Type= 'ENTITY (Condition)' )
The Condition entity which is related to from another Condition.
Reference parameters
The following reference parameters are defined for this template:
cond_rel(Type='ENTITY (Condition_relationship)')
Allow the Condition_relationship entity instantiated in this path to be referenced when this template is used.
Note: The Condition_relationship entity can be referenced in a template path by:
%^target = $representing_condition_relationship.cond_rel%
where target is the parameter to which the Condition_relationship is bound.
Uniqueness constraints

The following parameter combinations specify a uniqueness constraint:
Unique constraint: Unique Condition Relationship
Each instance of the entity (Condition_relationship) within the data set shall be uniquely identified by a combination of the following parameters on this template (representing_condition_relationship) namely: class_name, ecl_id, relating, related.
The instance is referenced by the following template parameter: cond_rel.
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.
Condition_relationship

-- Mark the Condition_relationship entity as
-- referable when this template is used by binding it to the reference
-- parameter cond_rel
%^cond_rel = Condition_relationship%
Condition_relationship.name = '/IGNORE'
Condition_relationship.description = '/IGNORE'
Condition_relationship.relating_condition -> @relating
Condition_relationship.related_condition -> @related

-- provide the role of the condition relationship by classifying the Condition_relationship
/assigning_reference_data(
    items=^cond_rel,
    class_name=@class_name,
    ecl_id=@ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Condition_relationship.name '/IGNORE'
Condition_relationship.description '/IGNORE'
Instance diagrams
The instance diagram in Figure  3 shows an example of the EXPRESS entities and templates that are instantiated by the template:
/representing_condition_relationship(relating='#1', related='#2', class_name='AND', ecl_id='urn:plcs:rdl:sample')/
(an illustration of the consolidated representing_condition_relationship template is shown in Figure 4 below.)


Figure 3 —  Entities instantiated by representing_condition_relationship template

Figure 3 —  Entities instantiated by representing_condition_relationship template

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:
/representing_condition_relationship(relating='#1', related='#2', class_name='AND', ecl_id='urn:plcs:rdl:sample')/


Figure 4 —  Instantiation of representing_condition_relationship template

Figure 4 —  Instantiation of representing_condition_relationship template

Characterizations
No common characterizations of the template representing_condition_relationship have been identified. However, the ISO 10303-239 EXPRESS model may enable other assignments to the entities instantiated by the template.

© OASIS 2010 — All rights reserved