Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Inputs to StructuredActivityNode
Inputs to StructuredActivityNode [message #470962] Wed, 21 February 2007 14:16 Go to next message
Eclipse UserFriend
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 #470965 is a reply to message #470962] Thu, 22 February 2007 02:21 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 #477115 is a reply to message #470962] Mon, 24 March 2008 08:47 Go to previous messageGo to next message
xiaoqiang is currently offline xiaoqiangFriend
Messages: 20
Registered: July 2009
Junior Member
Magnus Rundl
Re: Inputs to StructuredActivityNode [message #477132 is a reply to message #477115] Wed, 26 March 2008 12:55 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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] Thu, 22 February 2007 02:21 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 #626250 is a reply to message #470962] Mon, 24 March 2008 08:47 Go to previous message
xiaoqiang is currently offline xiaoqiangFriend
Messages: 20
Registered: July 2009
Junior Member
Magnus Rundl
Re: Inputs to StructuredActivityNode [message #626268 is a reply to message #477115] Wed, 26 March 2008 12:55 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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
Previous Topic:UML templates
Next Topic:How to add input pins or output pins to a CallOperationAction or CallBehaviorAction?
Goto Forum:
  


Current Time: Thu Apr 18 06:36:52 GMT 2024

Powered by FUDForum. Page generated in 0.02282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top