Author Topic: method argument modeling in UML  (Read 490 times)

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
method argument modeling in UML
« on: December 01, 2005, 12:02:08 pm »
I had a question, which started to discuss with Paolo: how to model such situation (it was partly discussed in the injector thread ;) ):

class MyClass
{
   int SomeMethod( DataAdapter adapter );
}

class DataAdapter
{
 ....
}

how to model DataAdapter use in MyClass - Paolo's view is to use dependency with the <<methodAttribute>> stereotype
Another possible way - directed association with no roles between MyClass and DataAdapter

Awaiting your thoughts

P.S. SF_lt is not a robotic device, it's a guy from Lithuania (MagicDraw motherland ;) ) - lt stands for Lithuania

P.S. I propose to add a sticked thread (with the administrator's help in this forum), which would contain links to great discussed topics - for example as lozenge, bakery model, containment/ownership question & etc.
« Last Edit: December 01, 2005, 12:03:28 pm by SF_lt »
registertm everything to SparX