Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL query to find sequence diagram methods
OCL query to find sequence diagram methods [message #537762] Thu, 03 June 2010 15:02 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: November 2009
Junior Member
Hi,

I need to find the relationship of sequence diagram methods to a class diagam operation.
for this I want to find how many operations are covered of a particular class in a sequence diagram as a methods.

can anyone provide me any example or suggestion how can I proceed. as I am using OCL Interpreter console to run OCL queries.

Thanks in advance,
albert


Re: OCL query to find sequence diagram methods [message #537807 is a reply to message #537762] Thu, 03 June 2010 16:59 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4187
Registered: July 2009
Senior Member
Hi

OCL is very powrrful; you can possibly solve you problem in just one
line, but it will be very difficult to debug when yiou have a trivail error.

Proceed step by step.

Perhaps you start by identifying

an expression to compute all sequence diagram methods
an expression to compute all class operations
an expression to compute the intersection of the above

Regards

Ed Willink


On 03/06/2010 16:02, albertlala96@yahoo.com wrote:
> Hi,
>
> I need to find the relationship of sequence diagram methods to a class
> diagam operation.
> for this I want to find how many operations are covered of a particular
> class in a sequence diagram as a methods.
>
> can anyone provide me any example or suggestion how can I proceed. as I
> am using OCL Interpreter console to run OCL queries.
>
> Thanks in advance,
> albert
>
>
>
Re: OCL query to find sequence diagram methods [message #538039 is a reply to message #537807] Fri, 04 June 2010 15:42 Go to previous message
No real name is currently offline No real nameFriend
Messages: 4
Registered: November 2009
Junior Member
Hi Ed,

I followed your way to but I dont understand how can I use intersection method as I have executed query on two different context I mean Class and Interaction.

//1.  an expression to compute all sequence diagram methods
context Interaction
inv: self.message.signature->select(Operation)
//2. an expression to compute all class operations
context Class
inv: self.ownedOperation
// 3. an expression to compute the intersection of the above
?? how this expression should be formed


regards,
albert
Previous Topic:how to attach ocl constraint to uml class
Next Topic:How to provide ocl constraint for Enum attributes
Goto Forum:
  


Current Time: Sat Dec 20 05:20:25 GMT 2014

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

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