Template:— assigning_calendar_date (asg_cdate) Date: 2009/04/06 15:56:38
Revision: 1.16

This section specifies the template assigning_calendar_date.

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 dates to something. The purpose of the assignment is provided by classification. For example, the date is assigned as the start date.

NOTE    While this template continues to be maintained, its use is deprecated. The template assigning_time should be used with any unused time parameters set to "/NULL".

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


Figure 1 —  Information model overview - Assigning calendar date

Figure 1 —  Information model overview - Assigning calendar date

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

Figure 2 —  The graphical representation of the assigning_calendar_date template

Input parameters
The following input parameters are defined for this template:
date_class_name (Type='CLASS')
The name of the class being used to classify the role date assignment, e.g. the start date.
The following classes and their sub-classes can be used:
classifications: "Date_or_date_time_assignment" (urn:plcs:rdl:std:Date_or_date_time_assignment)
date_ecl_id (Type='URN')
The id of the External_class_library in which the @date_class_name is defined.
year (Type= 'TYPE (year_number)' )
Calendar_date year_component
month (Type= 'TYPE (month_in_year_number)' )
Calendar_date month_component
day (Type= 'TYPE (day_in_month_number)' )
Calendar_date day_component
items (Type= 'SELECT (date_or_date_time_item)' )
The items to which the date is assigned.
Reference parameters
The following reference parameters are defined for this template:
date_assgn(Type='ENTITY (Date_or_date_time_assignment)')
Allow the Date_or_date_time_assignment entity instantiated in this path to be referenced when this template is used.
Note: The Date_or_date_time_assignment entity can be referenced in a template path by:
%^target = $assigning_calendar_date.date_assgn%
where target is the parameter to which the Date_or_date_time_assignment 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.
Date_or_date_time_assignment
%^date_assgn = Date_or_date_time_assignment%

-- the template assigning_reference_data is being called with parameters set.
-- The reference data is being assigned to the subject of the template,
-- in this case Date_or_date_time_assignment.
/assigning_reference_data(
    items=^date_assgn,
    class_name=@date_class_name,
    ecl_id=@date_ecl_id)/
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.items -> @items
Date_or_date_time_assignment.assigned_date -> Calendar_date
Calendar_date.year_component = @year
Calendar_date.month_component = @month
Calendar_date.day_component = @day
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Date_or_date_time_assignment.role '/IGNORE'
Calendar_date.year_component @year
Calendar_date.month_component @month
Calendar_date.day_component @day
Instance diagrams
The instance diagram in Figure  3 shows an example of the EXPRESS entities and templates that are instantiated by the template:
@9 /assigning_calendar_date(items='#3', date_class_name='Date_actual_start', date_ecl_id='urn:plcs:rdl:std', year='2005', month='05', day='12')/
(an illustration of the consolidated assigning_calendar_date template is shown in Figure 4 below.)
Note that the assigning_reference_data template is used in the diagram. Namely:
@4 /assigning_reference_data(items='#2', class_name='Date_actual_start', ecl_id='urn:plcs:rdl:std')/


Figure 3 —  Entities instantiated by assigning_calendar_date template

Figure 3 —  Entities instantiated by assigning_calendar_date 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:
@9 /assigning_calendar_date(items='#3', date_class_name='Date_actual_start', date_ecl_id='urn:plcs:rdl:std', year='2005', month='05', day='12')/


Figure 4 —  Instantiation of assigning_calendar_date template

Figure 4 —  Instantiation of assigning_calendar_date template

Characterizations
No common characterizations of the template assigning_calendar_date 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