Template:— activity_property (act_prop)
Context:— MoDAvDEX
Date: 2008/02/03 07:53:25
Revision: 1.10

This section specifies the template activity_property.

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 a property of an activity, such as its duration.

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


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

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

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

Figure 2 —  The graphical representation of the activity_property template

Input parameters
The following input parameters are defined for this template:
property_name (Type='CLASS')
The name of a property - a class.
The following classes and their sub-classes can be used:
classifications: [ModAvDEX_Activity_property]
[warning:]Error RDL4: The URI urn:plcs:rdl:LITS is not listed in dexlib/data/refdata/rdl_index.xml
property_value (Type= 'TYPE (any_number_value)' )
The value of the property.
property_unit (Type='CLASS')
The class name of the corresponding quantity unit.
The following classes and their sub-classes can be used:
classifications: [ModAvDEX_Unit]
[warning:]Error RDL4: The URI urn:plcs:rdl:LITS is not listed in dexlib/data/refdata/rdl_index.xml
property_unit_ecl_id (Default=urn:plcs:rdl:LITS,Type='URN', Optional)
The identifier of the External_class_library storing the definition of the class referenced by the parameter @unit_class_name.
si_unit (Default=false,Type='BOOLEAN')
Value should be set to true if the unit is a SI base unit defined by ISO, i.e. kilogram (kg) for Mass, second (s) for Time, metre (m) for Displacement, ampere (A) for Electrical current, kelvin (K) for Temperature, mole (mol) for Amount of substance, and candela (cd) for Luminous intensity. If this is not the case it should be set to false.
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:
property(Type='ENTITY (Activity_property)')
Allow the Activity_property entity instantiated in this path to be referenced when this template is used.
Note: The Activity_property entity can be referenced in a template path by:
%^target = $activity_property.property%
where target is the parameter to which the Activity_property is bound.
prop_val_rep(Type='ENTITY (Property_value_representation)')
Allow the Property_value_representation entity instantiated in this path to be referenced when this template is used.
Note: The Property_value_representation entity can be referenced in a template path by:
%^target = $activity_property.prop_val_rep%
where target is the parameter to which the Property_value_representation 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.
/assigning_process_property(
    property_class_name=@property_name,
    property_ecl_id='urn:plcs:rdl:LITS',
    described_element=@activity)/

-- Bind the Activity_property entity to the property reference parameter
%^property = $assigning_process_property.property%
/process_property_numeric(
    value=@property_value,
    unit=@property_unit,
    unit_ecl_id=@property_unit_ecl_id,
    si_unit=@si_unit,
    context='Numerical_representation_context',
    context_ecl_id='urn:plcs:rdl:std',
    property=^property)/
%^prop_val_rep = $process_property_numeric.representation%
Characterizations
No common characterizations of the template activity_property 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