Template:— removed_part (rem_pt)
Context:— MoDAvDEX
Date: 2008/01/18 13:28:04
Revision: 1.3

This section specifies the template removed_part.

NOTE  The template has been defined in the context of MoDAvDEX. Refer to the business context for details of related templates.

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 parts removed as part of a maintenance activity.

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


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

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

The EXPRESS-G diagram in Figure 2 shows the templates and EXPRESS entities that are required to represent the template "removed_part". The text highlighted in blue shows the template parameters.
Figure 2 shows the MoDAvDEX.reportable_item_structure shown in Figure 1 expanded. This illustrates where the dated effectivity is applied.


Figure 2 —  An EXPRESS-G representation of the Information model for removed_part

Figure 2 —  An EXPRESS-G representation of the Information model for removed_part

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


Figure 3 —  The graphical representation of the removed_part template

Figure 3 —  The graphical representation of the removed_part template

Input parameters
The following input parameters are defined for this template:
serial_number (Type='STRING')
The serial_number of the reportable item that has been removed.
part_number (Type='STRING')
The part_number of the reportable item that has been removed.
supplier (Default=/NULL,Type='STRING')
The supplier of the reportable item that has been removed.
NSN (Default=/NULL,Type='STRING')
The NSN of the reportable item that has been removed.
parent_serial_number (Default=/NULL,Type='STRING')
The serial_number of the parent on which the reportable item has been removed from
parent_part_number (Default=/NULL,Type='STRING')
The part_number of the parent on which the reportable item has been removed from
parent_supplier (Default=/NULL,Type='STRING')
The supplier of the parent on which the reportable item has been removed from
parent_NSN (Default=/NULL,Type='STRING')
The NSN of the parent on which the reportable item has been removed from
end_serial_number (Type='STRING')
The serial_number of the end item which the reportable item has been removed from
end_part_number (Default=/NULL,Type='STRING')
The part_number of the end item which the reportable item has been removed from
end_supplier (Default=/NULL,Type='STRING')
The supplier of the end item which the reportable item has been removed from
end_NSN (Default=/NULL,Type='STRING')
The NSN of the end item which the reportable item has been removed from
position (Type='STRING')
The position on the end item in which the reportable item has been removed from
fit_year (Type= 'TYPE (year_number)' )
Calendar_date year_component of the date and time that the reportable item was fitted.
fit_month (Type= 'TYPE (month_in_year_number)' )
Calendar_date month_component of the date and time that the reportable item was fitted.
fit_day (Type= 'TYPE (day_in_month_number)' )
Calendar_date day_component of the date and time that the reportable item was fitted.
fit_hour (Type= 'TYPE (hour_in_day)' )
Local_time hour_component of the date and time that the reportable item was fitted.
fit_minute (Type= 'TYPE (minute_in_hour)' )
Local_time minute_component of the date and time that the reportable item was fitted.
fit_second (Type= 'TYPE (second_in_minute)' )
Local_time second_component of the date and time that the reportable item was fitted.
remove_year (Type= 'TYPE (year_number)' )
Calendar_date year_component of the date and time that the reportable item was removed.
remove_month (Type= 'TYPE (month_in_year_number)' )
Calendar_date month_component of the date and time that the reportable item was removed.
remove_day (Type= 'TYPE (day_in_month_number)' )
Calendar_date day_component of the date and time that the reportable item was removed.
remove_hour (Type= 'TYPE (hour_in_day)' )
Local_time hour_component of the date and time that the reportable item was removed.
remove_minute (Type= 'TYPE (minute_in_hour)' )
Local_time minute_component of the date and time that the reportable item was removed.
remove_second (Type= 'TYPE (second_in_minute)' )
Local_time second_component of the date and time that the reportable item was removed.
Reference parameters
The following reference parameters are defined for this template:
pai(Type='ENTITY (Product_as_individual)')
Allow the Product_as_individual entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_individual entity can be referenced in a template path by:
%^target = $removed_part.pai%
where target is the parameter to which the Product_as_individual is bound.
Reportable item
par(Type='ENTITY (Product_as_realized)')
Allow the Product_as_realized entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_realized entity can be referenced in a template path by:
%^target = $removed_part.par%
where target is the parameter to which the Product_as_realized is bound.
Reportable item version
view(Type='ENTITY (Product_as_individual_view)')
Allow the Product_as_individual_view entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_individual_view entity can be referenced in a template path by:
%^target = $removed_part.view%
where target is the parameter to which the Product_as_individual_view is bound.
Reportable item view
end_pai(Type='ENTITY (Product_as_individual)')
Allow the Product_as_individual entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_individual entity can be referenced in a template path by:
%^target = $removed_part.end_pai%
where target is the parameter to which the Product_as_individual is bound.
End item
end_par(Type='ENTITY (Product_as_realized)')
Allow the Product_as_realized entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_realized entity can be referenced in a template path by:
%^target = $removed_part.end_par%
where target is the parameter to which the Product_as_realized is bound.
End item version
end_view(Type='ENTITY (Product_as_individual_view)')
Allow the Product_as_individual_view entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_individual_view entity can be referenced in a template path by:
%^target = $removed_part.end_view%
where target is the parameter to which the Product_as_individual_view is bound.
End item view
parent_pai(Type='ENTITY (Product_as_individual)')
Allow the Product_as_individual entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_individual entity can be referenced in a template path by:
%^target = $removed_part.parent_pai%
where target is the parameter to which the Product_as_individual is bound.
Parent item
parent_par(Type='ENTITY (Product_as_realized)')
Allow the Product_as_realized entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_realized entity can be referenced in a template path by:
%^target = $removed_part.parent_par%
where target is the parameter to which the Product_as_realized is bound.
Parent item version
parent_view(Type='ENTITY (Product_as_individual_view)')
Allow the Product_as_individual_view entity instantiated in this path to be referenced when this template is used.
Note: The Product_as_individual_view entity can be referenced in a template path by:
%^target = $removed_part.parent_view%
where target is the parameter to which the Product_as_individual_view is bound.
Parent item view
nau(Type='ENTITY (Next_assembly_usage)')
Allow the Next_assembly_usage entity instantiated in this path to be referenced when this template is used.
Note: The Next_assembly_usage entity can be referenced in a template path by:
%^target = $removed_part.nau%
where target is the parameter to which the Next_assembly_usage is bound.
promissory(Type='ENTITY (Promissory_usage)')
Allow the Promissory_usage entity instantiated in this path to be referenced when this template is used.
Note: The Promissory_usage entity can be referenced in a template path by:
%^target = $removed_part.promissory%
where target is the parameter to which the Promissory_usage is bound.
realization(Type='ENTITY (Breakdown_element_realization)')
Allow the Breakdown_element_realization entity instantiated in this path to be referenced when this template is used.
Note: The Breakdown_element_realization entity can be referenced in a template path by:
%^target = $removed_part.realization%
where target is the parameter to which the Breakdown_element_realization is bound.
Uniqueness constraints

The following parameter combinations specify a uniqueness constraint:
Unique constraint: Unique end item
Each instance of the entity (Product_as_individual) within the data set shall be uniquely identified by a combination of the following parameters on this template (removed_part) namely: end_serial_number, end_part_number, end_supplier.
The instance is referenced by the following template parameter: end_pai.
The end item should only occur once in a data set.
Unique constraint: Unique parent item
Each instance of the entity (Product_as_individual) within the data set shall be uniquely identified by a combination of the following parameters on this template (removed_part) namely: parent_serial_number, parent_part_number, parent_supplier.
The instance is referenced by the following template parameter: parent_pai.
The parent item should only occur once in a data set.
Unique constraint: Unique reportable item
Each instance of the entity (Product_as_individual) within the data set shall be uniquely identified by a combination of the following parameters on this template (removed_part) namely: serial_number, part_number, supplier.
The instance is referenced by the following template parameter: pai.
The reportable item should only occur once in a data set.
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.
/reportable_item_structure(
    serial_number=@serial_number,
    part_number=@part_number,
    supplier=@supplier,
    NSN=@NSN,
    parent_serial_number=@parent_serial_number,
    parent_part_number=@parent_part_number,
    parent_supplier=@parent_supplier,
    parent_NSN=@parent_NSN,
    end_serial_number=@end_serial_number,
    end_part_number=@end_part_number,
    end_supplier=@end_supplier,
    end_NSN=@end_NSN,
    position=@position)/
%^end_pai = $reportable_item_structure.end_pai%
%^end_par = $reportable_item_structure.end_par%
%^end_view = $reportable_item_structure.end_view%
%^pai = $reportable_item_structure.pai%
%^par = $reportable_item_structure.par%
%^view = $reportable_item_structure.view%
%^parent_pai = $reportable_item_structure.parent_pai%
%^parent_par = $reportable_item_structure.parent_par%
%^parent_view = $reportable_item_structure.parent_view%
%^promissory = $reportable_item_structure.promissory%
%^nau = $reportable_item_structure.nau%
%^realization = $reportable_item_structure.realization%

-- assign the dated effectivity
-- Note - there are three assignments here. A single assignment could
-- be assigned to
/assigning_dated_effectivity(
    start_year=@fit_year,
    start_month=@fit_month,
    start_day=@fit_day,
    start_hour=@fit_hour,
    start_minute=@fit_minute,
    start_second=@fit_second,
    start_sense='exact',
    start_hour_offset='0',
    start_minute_offset='0',
    end_year=@remove_year,
    end_month=@remove_month,
    end_day=@remove_day,
    end_hour=@remove_hour,
    end_minute=@remove_minute,
    end_second=@remove_second,
    end_sense='exact',
    end_hour_offset='exact',
    end_minute_offset='0',
    role_class_name='0',
    role_ecl_id='urn:plcs:rdl:std',
    items=^realization)/
%^eff1 = $assigning_dated_effectivity.dated_effectivity%
/assigning_reference_data(
    class_name='installation_effectivity',
    ecl_id='urn:plcs:rdl:std',
    items=^eff1)/

-- assign the dated effectivity
-- Note - there are three assignments here. A single assignment could
-- be assigned to ^realization ^promissory ^nau
/assigning_dated_effectivity(
    start_year=@fit_year,
    start_month=@fit_month,
    start_day=@fit_day,
    start_hour=@fit_hour,
    start_minute=@fit_minute,
    start_second=@fit_second,
    start_sense='exact',
    start_hour_offset='0',
    start_minute_offset='0',
    end_year=@remove_year,
    end_month=@remove_month,
    end_day=@remove_day,
    end_hour=@remove_hour,
    end_minute=@remove_minute,
    end_second=@remove_second,
    end_sense='exact',
    end_hour_offset='exact',
    end_minute_offset='0',
    role_class_name='0',
    role_ecl_id='urn:plcs:rdl:std',
    items=^promissory)/
%^eff2 = $assigning_dated_effectivity.dated_effectivity%
/assigning_reference_data(
    class_name='installation_effectivity',
    ecl_id='urn:plcs:rdl:std',
    items=^eff2)/

-- assign the dated effectivity
-- Note - there are three assignments here. A single assignment could
-- be assigned to ^realization ^promissory ^nau
/assigning_dated_effectivity(
    start_year=@fit_year,
    start_month=@fit_month,
    start_day=@fit_day,
    start_hour=@fit_hour,
    start_minute=@fit_minute,
    start_second=@fit_second,
    start_sense='exact',
    start_hour_offset='0',
    start_minute_offset='0',
    end_year=@remove_year,
    end_month=@remove_month,
    end_day=@remove_day,
    end_hour=@remove_hour,
    end_minute=@remove_minute,
    end_second=@remove_second,
    end_sense='exact',
    end_hour_offset='exact',
    end_minute_offset='0',
    role_class_name='0',
    role_ecl_id='urn:plcs:rdl:std',
    items=^nau)/
%^eff3 = $assigning_dated_effectivity.dated_effectivity%
/assigning_reference_data(
    class_name='installation_effectivity',
    ecl_id='urn:plcs:rdl:std',
    items=^eff3)/
Characterizations
No common characterizations of the template removed_part have been identified. However, the ISO 10303-239 EXPRESS model may enable other assignments to the entities instantiated by the template.

© UK MOD 2010 — All rights reserved