Template:— representing_planned_activity (rep_plan_act) Date: 2010/01/14 16:56:09
Revision: 1.20

This section specifies the template representing_planned_activity.

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 specific activity that is planned to take place some time in the future but is not authorized by a work order i.e. directed.

NOTE    This template is primarily intended to represent planned product usage in operational stages, but may also be used to represent activities planned to be done to a product that are not formally authorised by a Work_order.

Where the activity is work planned to be done on a product and authorised by a Work_order, the template representing_work_order should be used.

Where the activity is work that has been done to a product in response to a planned activity (a Directed_activity) that has been authorized by a Work_order, the template representing_work_done should be used.

Where the activity is a record of a usage of a product that has taken place, e.g. a sortie flown by an aircraft , the template representing_product_usage should be used.

Where the activity is a record of an activity that has taken place that is neither an authorized activity i.e. not authorized by a Work_order such as part of a directed change or technical bulletin, nor an activity performed by a product the more generic template representing_activity_actual should be used.

NOTE    A planned activity may include reference to a specific product, but this is not included in the template.

Model diagrams
The EXPRESS-G diagram in Figure 1 shows the templates and EXPRESS entities that are required to represent the template "representing_planned_activity". The text highlighted in blue shows the template parameters.
Grey areas and templates with dashed lines are not included in the template, but may be used to further characterize the template.


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

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

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

Figure 2 —  The graphical representation of the representing_planned_activity template

Input parameters
The following input parameters are defined for this template:
id (Type='STRING')
The identifier of the planned activity.
id_class_name (Default=Activity_identification_code,Type='CLASS')
The name of the class being used to classify the identification (Identification_assignment) of the planned activity. This provides the role or reason for the identification.
The following classes and their sub-classes can be used:
classifications: "Activity_identification_code" (urn:plcs:rdl:std:Activity_identification_code)
id_ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library storing the definition of the class referenced by the parameter @id_class_name class.
id_owner (Type='STRING')
The name or identifier of the organization owning the identifier.
id_owner_class_name (Default=Organization_name,Type='CLASS')
The name of the class being used to classify the identification of the organization. For example CAGE code, or organization name.
The following classes and their sub-classes can be used:
classifications: "Organization_identification_code" (urn:plcs:rdl:std:Organization_identification_code), "Organization_name" (urn:plcs:rdl:std:Organization_name)
id_owner_ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library storing the @id_owner_class_name class
typical_act (Type= 'ENTITY (Activity_method)' )
The typical activity of which this planned activity is an instance, or other regulating method.
date_class_name (Default=Date_planned_start,Type='CLASS')
The name of the class being used to classify the date or time. Must be either a planned start or end date or time.
The following classes and their sub-classes can be used:
classifications: "Date_planned_start" (urn:plcs:rdl:std:Date_planned_start), "Date_planned_end" (urn:plcs:rdl:std:Date_planned_end)
date_ecl_id (Default=urn:plcs:rdl:std,Type='URN')
The identifier of the External_class_library storing the @date_class_name class
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
hour (Type= 'TYPE (hour_in_day)' )
Local_time year_component of the date and time.
minute (Type= 'TYPE (minute_in_hour)' , Optional)
Local_time month_component of the date and time. This parameter is optional. If not given, it will remain unset.
second (Type= 'TYPE (second_in_minute)' , Optional)
Local_time day_component of the date and time. This parameter is optional. If not given, it will remain unset.
sense (Default=exact,Type= 'ENUMERATION (offset_orientation)' )
The direction of the offset. Enumeration values: 'ahead', 'exact' or 'behind'.
hour_offset (Type='INTEGER')
The number of hours by which a time is offset from Coordinated Universal Time.
minute_offset (Type='INTEGER', Optional)
The number of minutes by which a time is offset from Coordinated Universal Time. The value of this attribute need not be specified. This parameter is optional. If not given, it will remain unset.
Reference parameters
The following reference parameters are defined for this template:
plan_act(Type='ENTITY (Activity)')
Allow the Activity entity instantiated in this path to be referenced when this template is used.
Note: The Activity entity can be referenced in a template path by:
%^target = $representing_planned_activity.plan_act%
where target is the parameter to which the Activity is bound.
Allows referencing of entity Activity from outside the template, e.g. in order to characterize the Activity further.
Uniqueness constraints

The following parameter combinations specify a uniqueness constraint:
Unique constraint: Unique planned activity
Each instance of the entity (Activity) within the data set shall be uniquely identified by a combination of the following parameters on this template (representing_planned_activity) namely: id, id_class_name, id_ecl_id, id_owner, id_owner_class_name, id_owner_ecl_id.
The instance is referenced by the following template parameter: plan_act.
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.
-- instantiate planned Activity
Activity
%^plan_act = Activity%
^plan_act.id = '/IGNORE'
^plan_act.name = '/IGNORE'
^plan_act.description = '/IGNORE'
^plan_act.chosen_method -> @typical_act

-- assign ID to planned activity
/assigning_identification(
    id=@id,
    id_class_name=@id_class_name,
    id_ecl_id=@id_ecl_id,
    org_id=@id_owner,
    org_id_class_name=@id_owner_class_name,
    org_id_ecl_id=@id_owner_ecl_id,
    items=^plan_act)/

-- classify the Activity as planned
/assigning_reference_data(
    class_name='Planned_Activity',
    ecl_id='urn:plcs:rdl:std',
    items=^plan_act)/

-- assigning a planned date of the planned activity
/assigning_time(
    date_class_name=@date_class_name,
    date_ecl_id=@date_ecl_id,
    year=@year,
    month=@month,
    day=@day,
    hour=@hour,
    minute=@minute,
    second=@second,
    sense=@sense,
    hour_offset=@hour_offset,
    minute_offset=@minute_offset,
    items= ^plan_act)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity.id '/IGNORE'
Activity.name '/IGNORE'
Activity.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_planned_activity(id='M142345242-P', id_class_name='Activity_identification_code', id_ecl_id='urn:plcs:rdl:std', id_owner='ExpressDeliveryInc', id_owner_class_name='Organization_name', id_owner_ecl_id='urn:plcs:rdl:std', items='#65', method='#40', date_class_name='Date_planned_start', date_ecl_id='urn:plcs:rdl:std', year='2007', month='1', day='7', hour='', minute='10', second='0', sense='.EXACT.', hour_offset='0', minute_offset='0')/
(an illustration of the consolidated representing_planned_activity template is shown in Figure 4 below.)


Figure 3 —  Entities instantiated by representing_planned_activity template

Figure 3 —  Entities instantiated by representing_planned_activity 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_planned_activity(id='M142345242-P', id_class_name='Activity_identification_code', id_ecl_id='urn:plcs:rdl:std', id_owner='ExpressDeliveryInc', id_owner_class_name='Organization_name', id_owner_ecl_id='urn:plcs:rdl:std', items='#65', method='#40', date_class_name='Date_planned_start', date_ecl_id='urn:plcs:rdl:std', year='2007', month='1', day='7', hour='', minute='10', second='0', sense='.EXACT.', hour_offset='0', minute_offset='0')/


Figure 4 —  Instantiation of representing_planned_activity template

Figure 4 —  Instantiation of representing_planned_activity template

Characterizations
The following section details how the representing_planned_activity template can be optionally characterized by assigning other constructs to it. These are characterizations commonly applied to the template. The ISO 10303-239 EXPRESS model may enable other assignments to the entities instantiated by the template.
The following characterizations may apply:
Characterization Assigning product

NOTE   this characterization is optional.

A planned activity may relate to a product that is going to be used in the activity, or on which the activity will be performed.

A product is assigned to an activity using template assigning_activity assigned to Activity. See Figure 1 for an Express-G overview.

Characterization Assigning classification or code

NOTE   this characterization is optional.

Classifications and codes may be assigned to a planned activity through external reference data. See Figure 1 for an Express-G overview.

A class of an Activity is represented using the template assigning_reference_data assigned to Activity.

A code of an Activity is represented by using the template assigning_code assigned to Activity.

Characterization Assigning additional time

NOTE   this characterization is optional.

This template mandates the assignment of a start time for the actual activity. If the duration or end time of the Activity needs to be recorded, additional time may be assigned as well.

Additional time can be assigned to an Activity by using the template assigning_time. See Figure 1 for an Express-G overview.

A planned end date is commonly assigned to the template representing_planned_activity. The date and time assignment is classified as: "Date planned end" (urn:plcs:rdl:std:Date planned end) to indicate that it is the date (and time) when the usage of the product ended.

Characterization Assigning organization

NOTE   this characterization is optional.

Either an organization or person within an organization should be associated in a specified role with a planned activity. Depending on if it is a person in an organization or just the organization that is assigned, different templates are used. See also Figure 1.

An organization is associated to an activity by using the template assigning_organization.

The assignment of the organization (Organization_or_person_in_organization_assignment) must be classified, e.g. as 'Maintaining_organization', or 'Operating_organization'.

A person in an organization is associated to an activity by using the template assigning_person_in_organization.

The assignment of the person (Organization_or_person_in_organization_assignment) must be classified.

Characterization Assigning work output

NOTE   this characterization is optional.

If waste or by products are anticipated, such may be associated to the planned activity by using the template assigning_work_output. See Figure 1 for an Express-G overview.

Characterization Assigning location

NOTE   this characterization is optional.

A location can be associated to the planned activity by using the template assigning_location.

The location may be expressed as a global location, an address-based location, an organization-based location, or as a location in a regional grid. See further Capability C049: assigning_location (NB Capabilities are not documented in this release of the PLCS standard) . See Figure 1 for an Express-G overview.

The assignment of the location (assigning_location) may be classified e.g. as 'Actual_start_location' or 'Actual_maintenance_location'.

Characterization Assigning approval and state

NOTE   this characterization is optional.

Approvals and states may be associated with a planned activity. See Figure 1 for an Express-G overview.

An approval is associated with the planned activity by using the template assigning_approval.

A state is associated with the planned activity by using the template assigning_asserted_state.

© OASIS 2010 — All rights reserved