Template:— consumed_resource (cons_res)
Context:— MoDAvDEX
Date: 2008/03/10 11:53:26
Revision: 1.7

This section specifies the template consumed_resource.

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 the human resources used to perform 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 "consumed_resource". The text highlighted in blue shows the template parameters.


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

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

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

Figure 2 —  The graphical representation of the consumed_resource template

Input parameters
The following input parameters are defined for this template:
trade_name (Type='CLASS')
The name of the class representing the trade.
The following classes and their sub-classes can be used:
classifications: [ModAvDEX_trade]
[warning:]Error RDL4: The URI urn:plcs:rdl:LITS is not listed in dexlib/data/refdata/rdl_index.xml
trade_hours (Type= 'TYPE (any_number_value)' )
The hours consumed by a particular trade when doing the activity.
activity (Type= 'ENTITY (Activity_actual)' )
The Activity_actual representing the work that was done that consumed this resource.
Reference parameters
The following reference parameters are defined for this template:
res_as_rlzd(Type='ENTITY (Resource_as_realized_resource_item)')
Allow the Resource_as_realized_resource_item entity instantiated in this path to be referenced when this template is used.
Note: The Resource_as_realized_resource_item entity can be referenced in a template path by:
%^target = $consumed_resource.res_as_rlzd%
where target is the parameter to which the Resource_as_realized_resource_item is bound.
type_of_pers(Type='ENTITY (Type_of_person)')
Allow the Type_of_person entity instantiated in this path to be referenced when this template is used.
Note: The Type_of_person entity can be referenced in a template path by:
%^target = $consumed_resource.type_of_pers%
where target is the parameter to which the Type_of_person is bound.
res_item(Type='ENTITY (Resource_item)')
Allow the Resource_item entity instantiated in this path to be referenced when this template is used.
Note: The Resource_item entity can be referenced in a template path by:
%^target = $consumed_resource.res_item%
where target is the parameter to which the Resource_item is bound.
property(Type='ENTITY (Resource_property)')
Allow the Resource_property entity instantiated in this path to be referenced when this template is used.
Note: The Resource_property entity can be referenced in a template path by:
%^target = $consumed_resource.property%
where target is the parameter to which the Resource_property 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.
/representing_person_typical(
    type_of_pers_class_name=@trade_name,
    type_of_pers_ecl_id='urn:plcs:rdl:std')/
%^type_of_pers = $representing_person_typical.type_of_pers%
/representing_resource_item_realization(
    res_item_id='/NULL',
    res_item_id_class='Resource_item_identification_code',
    res_item_id_ecl_id='urn:plcs:rdl:std',
    res_item_id_org_id='LITS',
    res_item_id_org_id_class='Organization_name',
    res_item_id_org_id_ecl_id='urn:plcs:rdl:std',
    res_item_items=^type_of_pers)/
%^res_item = $representing_resource_item_realization.res_item%
/assigning_realized_resource(
    item=@activity,
    resource_item=^res_item,
    role_class_name='Resource_as_realized_employed_by',
    role_ecl_id='urn:plcs:rdl:std')/
%^res_as_rlzd = $assigning_realized_resource.res_as_rlzd%
/assigning_resource_property(
    property_class_name='Labour_time_consumed',
    property_ecl_id='urn:plcs:rdl:std',
    described_element=^res_as_rlzd)/
%^property = $assigning_resource_property.property%
/resource_property_numeric(
    value=@trade_hours,
    unit='Man_hour',
    unit_ecl_id='urn:plcs:rdl:std',
    si_unit='true',
    context='Numerical_representation_context',
    context_ecl_id='urn:plcs:rdl:std',
    property=^property)/
Characterizations
No common characterizations of the template consumed_resource 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