Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Helper Problem _ I don't know how to solve?
Helper Problem _ I don't know how to solve? [message #547988] Tue, 20 July 2010 10:56 Go to next message
Roger80  is currently offline Roger80 Friend
Messages: 79
Registered: May 2010
Member
1) My problem is that I first need the target from the event where the id is like the target. That is working (first part of OCL statement).

2) Then I need attribute source where the f.target is like the values I get from the sequence in the first statement. This is were I am actually on and you try to help me.

3) I need to check if the source is included in the XOR element. This is I think also not a problem. I try it like that...

My code so far, but I have problems after the "asSequence()":

EPK!ControlFlow.allInstances() -> collect(i | i.target)-> asSet() -> intersection(self.id -> asSet()) -> asSequence() -> select (f | f.target=Sequence {'2'})->collect(f | f.source).debug() -> includes(EPK!XOR.allInstances() -> collect(d | d.id));

Thanks and cheers

Roger

[Updated on: Tue, 20 July 2010 10:59]

Report message to a moderator

Re: Helper Problem _ I don't know how to solve? [message #548138 is a reply to message #547988] Tue, 20 July 2010 18:27 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi Roger

Normally it would be worth specifying your problem, but I think with 1.5
weeks to go go before you submit YOUR thesis, YOU should start doing
some work rather than searching for people who can guess what you want
done for you.

Regards

Ed Willink

On 20/07/2010 11:56, Roger80 wrote:
> 1) My problem is that I first need the target from the event where the
> id is like the target. That is working (first part of OCL statement).
>
> 2) Then I need attribute source where the f.target is like the values I
> get from the sequence in the first statement. This is were I am actually
> on and you try to help me.
>
> 3) I need to check if the source is included in the XOR element. This is
> I think also not a problem. I try it like that...
>
>
Previous Topic:OCL with UML
Next Topic:[QVTO/OCL] Usage of non-standard "closure" operator
Goto Forum:
  


Current Time: Wed Nov 26 05:56:09 GMT 2014

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

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