Book a Demo

Author Topic: Display Function Parameters in Model  (Read 4345 times)

peace2008

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Display Function Parameters in Model
« on: July 12, 2008, 05:49:26 pm »
Hi,

When I add function to a class which has some input parameters, it only displays parameter type in model. How can I make it parameter name as well?

Thanks,

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Display Function Parameters in Model
« Reply #1 on: July 13, 2008, 05:58:07 am »
1. double-click the background of the target diagram
2. select the 'Features' tab
3. change the 'Show Parameter Detail' dropdown list

Hope this helps,

--
t-kouno
--
t-kouno

peace2008

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Display Function Parameters in Model
« Reply #2 on: July 13, 2008, 01:39:18 pm »
Thanks a lot t-kouno :)
 That worked great

LastDragon

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Display Function Parameters in Model
« Reply #3 on: August 07, 2008, 06:00:38 pm »
How to show parameter default value?
eg: +myFunction( str:string='myString' ):string

Thanks

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Display Function Parameters in Model
« Reply #4 on: August 08, 2008, 05:28:12 pm »
As far as I know, EA has no option to show default values.

And as far as I know, UML specification does not define the operation notataion to show the default value. I think EA seems correct.

--
t-kouno
--
t-kouno

LastDragon

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Display Function Parameters in Model
« Reply #5 on: August 08, 2008, 07:55:27 pm »
Quote
As far as I know, EA has no option to show default values.

:(

Quote
And as far as I know, UML specification does not define the operation notataion to show the default value. I think EA seems correct.

Really?

Please see: "UML Infrastructure Specification, v2.1.2", Chapter: "11.8.2 Operation" => Notation

Code: [Select]
<parameter-list> is a list of parameters of the operation in the following format:
    <parameter-list> ::= <parameter> [‘,’<parameter>]*
    <parameter> ::= [<direction>] <parameter-name> ‘:’ <type-expression>
                    [‘[‘<multiplicity>’]’] [‘=’ <default>] [‘{‘ <parm-property> [‘,’ <parm-property>]* ‘}’]

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Display Function Parameters in Model
« Reply #6 on: August 09, 2008, 10:30:03 pm »
You are right, I misread the specification document.
I'm sorry to bother you because of my mistake.

--
t-kouno
--
t-kouno