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.

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
>
>
>

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