Skip to main content


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: 7655
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: Fri Apr 19 02:57:16 GMT 2024

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

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

Back to the top