Skip to content

Parameter "units" are underspecified #44

@rakhimov

Description

@rakhimov

The "unit" attribute and values of parameters (and mission time)
are underspecified, raising many questions, such as:

  1. Is it just for informational purposes?
  2. Is it meant to give types for expressions (related to Typing of Expression #39)?
  3. Does the standard imply proper unit conversions in expressions?
  4. What happens if units don't match?
  5. What is the default unit for parameter and mission time?

Let's say, we have parameter lambda in inverse years
and assume that mission-time is in hours:

    <define-parameter name="lambda" unit="years-1">
        <float value="1e-7"/>
    </define-parameter>

Should there be implicit unit conversion (from years-1 to hours-1)
upon the parameter use?
Or mixing these parameters is an error?

    <exponential>
        <parameter name="lambda"/>
        <system-mission-time/>
    </exponential>

What happens if at the reference site, the parameter unit is different?

    <exponential>
        <parameter name="lambda" unit="hours-1"/>
        <system-mission-time/>
    </exponential>

Should units be checked for all expressions?
Probability should have no units, so should the following fail?

    <define-basic-event name="pump">
        <parameter name="lambda"/>
    </define-basic-event>

Moreover, for some reason (maybe for question 2),
the MEF "units" have bool, int, float,
which are not units of measurement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions