MARTE 1.0b2 FTF Avatar
  1. OMG Issue

MARTE — Giving an attribute a variable name and an expression value

  • Key: MARTE-75
  • Legacy Issue Number: 11822
  • Status: closed  
  • Source: Carleton University ( Murray Woodside)
  • Summary:

    I am not clear of the status of this, but it seems that to use the profile flexibly one needs to be able to assign a variable name to an NFP, and also a value. Then the variable name can be used to change the value in studies, in a traceable way. The value can be an expression too.

    A possible resolution would be to allow expressions to read as variable = expression.

  • Reported: MARTE 1.0b1 — Wed, 19 Dec 2007 05:00 GMT
  • Disposition: Resolved — MARTE 1.0b2
  • Disposition Summary:

    Resolution:

    This is already supported by VSL: A 'variable declaration' expression can have assigned an "initialExpression". Concretely, the following syntax has been adopted in VSL (page 402):

    <variable-declaration> ::= <variable-direction> '$' <variable-name> [<type-name>] ['=' <init-expression>]

    This means that you can have NFP values such as (extended notation):

    myLatency = (value= 5.0, expr= $var1=var2+var3/3, unit=ms) or the short notation:
    myLatency = (5.0, $var1=var2+var3/3, ms)

    Hence, this issue is close with no change.

    Revised Text:
    Disposition: Closed, no change

  • Updated: Fri, 6 Mar 2015 20:58 GMT