implemented usecases [message #501172] |
Tue, 01 December 2009 12:13 |
|
Hi,
I am trying to define a query for implemented use case for sequence diagram.
context um::Model
def: findImplementedUseCases(): Set(UseCase) =
UseCase.allInstances()->select(u|UseCase.allInstances().subject = uml::Interaction)
inv: findImplementedUseCases().name -> asSet()
I think I am not in right direction, can any body help me to correct this.
Thanks,
Pkojo
[Updated on: Tue, 01 December 2009 12:14] Report message to a moderator
|
|
|
Re: implemented usecases [message #501295 is a reply to message #501172] |
Tue, 01 December 2009 18:49 |
|
--=-9LqDMFgacRxnwzUtoJyW
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi, Pkojo,
>From your attempt at an OCL formulation, I cannot guess what you mean by
"implemented use case." Uses cases typically are not "implemented" in
the sense that classifiers have run-time instances. Use cases and
actors can classify the parts of a Collaboration (which may then be
called a "use case realization"), use cases may reference one or more
Classifiers as "subjects" which realize the use cases in some way
through their behaviours, and use cases may own Behaviors that describe
the the exchange of control/data/etc. between the participants.
Are you looking for a way to
- find Use Cases that are specified by Interaction behaviors?
- find Use Cases that reference subject Classifiers (and hence are
realized by them)?
- find Use Cases that classify the parts of one or more
Collaborations?
Cheers,
Christian
On Tue, 2009-12-01 at 07:13 -0500, pkojo wrote:
> Hi,
>
> I am trying to define a query for implemented use case for sequence diagram.
>
> context um::Model
> def: findImplementedUseCases(): Set(UseCase) =
> UseCase.allInstances()->select(u|UseCase.allInstances().subject = uml::Interaction)
> inv: findImplementedUseCases().name = asSet()
>
> I think I am not in right direction, can any body help me to correct this.
>
> Thanks,
> Pkojo
--=-9LqDMFgacRxnwzUtoJyW
Content-Type: text/html; charset="utf-8"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Pkojo,<BR>
<BR>
>From your attempt at an OCL formulation, I cannot guess what you mean by "implemented use case." Uses cases typically are not "implemented" in the sense that classifiers have run-time instances. Use cases and actors can classify the parts of a Collaboration (which may then be called a "use case realization"), use cases may reference one or more Classifiers as "subjects" which realize the use cases in some way through their behaviours, and use cases may own Behaviors that describe the the exchange of control/data/etc. between the participants.<BR>
<BR>
Are you looking for a way to<BR>
<BR>
- find Use Cases that are specified by Interaction behaviors?<BR>
- find Use Cases that reference subject Classifiers (and hence are realized by them)?<BR>
- find Use Cases that classify the parts of one or more Collaborations?<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Tue, 2009-12-01 at 07:13 -0500, pkojo wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi,
I am trying to define a query for implemented use case for sequence diagram.
context um::Model
def: findImplementedUseCases(): Set(UseCase) =
UseCase.allInstances()->select(u|UseCase.allInstances ().subject = uml::Interaction)
inv: findImplementedUseCases().name = asSet()
I think I am not in right direction, can any body help me to correct this.
Thanks,
Pkojo
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-9LqDMFgacRxnwzUtoJyW--
|
|
|
|
Re: implemented usecases [message #501479 is a reply to message #501348] |
Wed, 02 December 2009 14:04 |
|
--=-UEB+LJodWDfbXvSkZ6qi
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi, pkojo,
Try this:
UseCase.allInstances()->select(ownedBehaviour->exists(oclIsKindOf(Interaction)))
HTH,
Christian
On Tue, 2009-12-01 at 17:15 -0500, pkojo wrote:
> Hi Chirstan
>
> I am trying to implement this:
>
>
> find Use Cases that are specified by Interaction behaviors?
>
>
> regards,
> pkojo
--=-UEB+LJodWDfbXvSkZ6qi
Content-Type: text/html; charset="utf-8"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, pkojo,<BR>
<BR>
Try this:<BR>
<BR>
UseCase.allInstances()->select(ownedBehaviour-> ;exists(oclIsKindOf(Interaction))) <BR>
<BR>
<BR>
HTH,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Tue, 2009-12-01 at 17:15 -0500, pkojo wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi Chirstan
I am trying to implement this:
find Use Cases that are specified by Interaction behaviors?
regards,
pkojo
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-UEB+LJodWDfbXvSkZ6qi--
|
|
|
Powered by
FUDForum. Page generated in 0.03028 seconds