Inputs to StructuredActivityNode [message #470962] |
Wed, 21 February 2007 09:16  |
Eclipse User |
|
|
|
Originally posted by: magnus.rundlof.NOSPAM.saabgroup.com.NOSPAM
Hello!
Why is it that I can't extract the input pins owned by a
StructuredActivityNode (or subclasses thereof), by looking at the derived
input attribute? When I add input pins to a CallBehaviorAction, they turn up
as derived in the input attribute of the action. The input association is
defined on the Action class, and both StructuredActivityNode and
CallBehaviorAction are actions. What is it that I am missing? Anyone?
Regards
Magnus Rundl
|
|
|
|
|
Re: Inputs to StructuredActivityNode [message #477132 is a reply to message #477115] |
Wed, 26 March 2008 08:55  |
Eclipse User |
|
|
|
xiaoqiang,
Input pins can be added via the InvocationAction#createArgument(*) methods
or by adding them directly to the collection returned by the
InvocationAction#getArguments() methods. Output pins can be added via the
CallAction#createResult(*) methods or by adding them directly to the
collection returned by the CallAction#getResults() methods.
Kenn
"xiaoqiang" <jqzhao1985@gmail.com> wrote in message
news:fs7pqo$gnm$1@build.eclipse.org...
> Magnus Rundl
|
|
|
Re: Inputs to StructuredActivityNode [message #589055 is a reply to message #470962] |
Wed, 21 February 2007 21:21  |
Eclipse User |
|
|
|
Hi Magnus,
This is a shortcoming in the spec., the implementation follows the spec.
The problem is that no property of StructuredActivityNode subsets
Action::input or Action::output so as to contribute to those unions. An
issue has been raised with OMG on this and it should be addressed in the
next version. In the meantime, you can find your pins by calling
getContainedNodes() and separating those ActivityNodes that are InputPins.
Regards,
- James.
"Magnus Rundl
|
|
|
|
Re: Inputs to StructuredActivityNode [message #626268 is a reply to message #477115] |
Wed, 26 March 2008 08:55  |
Eclipse User |
|
|
|
xiaoqiang,
Input pins can be added via the InvocationAction#createArgument(*) methods
or by adding them directly to the collection returned by the
InvocationAction#getArguments() methods. Output pins can be added via the
CallAction#createResult(*) methods or by adding them directly to the
collection returned by the CallAction#getResults() methods.
Kenn
"xiaoqiang" <jqzhao1985@gmail.com> wrote in message
news:fs7pqo$gnm$1@build.eclipse.org...
> Magnus Rundl
|
|
|
Powered by
FUDForum. Page generated in 0.03614 seconds