Welcome, Guest
Username Password: Remember me

Pins[solved]
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Pins[solved]

Pins[solved] 8 months, 2 weeks ago #1157

  • _Iwa
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
Hello there,

I'm pretty new in modelio and I'm working on specific things that include Pins.

And here is my problem. When I created a inputPin, I'm not able anymore to export my project in xmi.

The second problem is when I matched the pins with a class of my project. It also block my export.

I'm using modelio 2.1. In modelio 2.2 I can use inputPin but not matched them to a specific class of my project.

Does anybody is aware of this? I don't know if it's a bug or it's because I missed somthing.

Thanks for reading me
Last Edit: 8 months, 2 weeks ago by _Iwa.

Re: Pins 8 months, 2 weeks ago #1158

  • ebr
  • OFFLINE
  • Moderator
  • Posts: 177
Hi _Iwa,

I tried to export a simple Activity composed of one unique Action having an InputPin with the following version of Modelio Build Id: 2.1.1.201203140000 and it works...

What I did not understand it is how did you matched your pins with classes (I mean select your pin and for its property named matched specified an existing class, right!?).
It is not UML2 and it should be forbidden under Modelio because I did not see what you try to express with this.

Hoping it helps,

EBR

Re: Pins 8 months, 2 weeks ago #1159

  • _Iwa
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
Hello ebr,

first of all thank you for your answer.

For the matched thing, actually, yes I was giving to the property "matched" an existing parameter. If my pin was an inputPin I was matching the pin with the parameter of the operation that owned my inputPin. (With my example here, my inputPin was matched with the parameter "Parameter" of the operation g)

What I want to do is create a simple output/input pin test to see how modelio is exporting these data in an xmi file.

For example I have two callOperationAction like this :



The F CallOperationAction is calling the f function. f has one return parameter.
The G CallOperationAction is calling the g function. g has one parameter "Parameter".

Both f and g parameters have the same type : integer

How do I need to parameter my input and output pin? For the moment I have only given the integer type to the both input and output pin (like this).



When I try to export this simple structure, I've got this error :



I don't know where I'm wrong. Do you have any idea?

Thans for trying to help me

EDIT : my version of modelio is Build Id: 2.1.0.201201241610 (could it changes something?)
Last Edit: 8 months, 2 weeks ago by _Iwa.

Re: Pins 8 months, 2 weeks ago #1160

  • ebr
  • OFFLINE
  • Moderator
  • Posts: 177
Hello _Iwa,

The model seems good for me the error might be a bug of the XMI export...
I reproduced your model under Modelio Build Id: 2.2.0.201206151710 and the export/import works fine.

Concerning how the 'matched' information is exported, in fact the pin set of the CallOperation and the parameter set of the referenced Operation should match i.e. same type , same direction and same order. That's how the matched information is exported.

Hoping it helps.

EBR
The following user(s) said Thank You: _Iwa

Re: Pins 8 months, 2 weeks ago #1161

  • _Iwa
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
Hello ebr,

I've tried to export in modelio 2.2 and it works fine with my previous example. So I guess the best solution for me is to use the 2.2 modelio version.

Concerning the 'matched' information I though it was a little bit more specific. I thought it was the way to say "my pin is connected to this specific Object/Parameter".

How could I say : this pin is connected to this specific attribute in a class of my model? Am I allowed to do this, or an outputPin have to be a value of a return parameter (if so, it would be strange, because the documentation of uml don't precise this)

Re: Pins 8 months, 2 weeks ago #1162

  • ebr
  • OFFLINE
  • Moderator
  • Posts: 177
Hi _Iwa,

If we imagine an Operation op with two integers p1 and p2 as input i.e. two Parameters, an associate CallOperation must have two InputPins ip1 and ip2 in order to match the two Parameters.

Now in order to specify that, for example, ip1 is matched to p1 and ip2 is matched to p2.

Under Modelio you have to fulfil the matched relation and that's all.

But in pure UML, the matching is done thanks to the order of the Parameter and the order of the InputPin. I mean that the first InputPin of the CallOperation will match with the first Parameter of the Operation and respectively the second InputPin of the CallOperation will match with the second Parameter of the Operation.
So in your example if p1 is the first Parameter ip1 must be the first InputPin otherwise ip1 will be matched to p2.

Hoping it is clear or it helps.

Best regards,

Etienne
The following user(s) said Thank You: _Iwa
  • Page:
  • 1
  • 2
Moderators: tma, aab, cde, ebr
Time to create page: 0.22 seconds