Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Best way to model arguments of a message?
Best way to model arguments of a message? [message #477574] Mon, 07 July 2008 12:26 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

i've modeled a Sequence Diagram in which i want to add a string value for
the called operation. IMHO, there are 2 ways to handle this:

1. Add a LiteralString element with the specified value, or
2. Add an InstanceValue, that points to an InstanceSpecification, that is
the instance of a String data type-element or a primitve type-element.

It seems to me, as that these methods are equivalent. But which way should
be prefered? I think the Literal-one, because it is less complex?

Are there other opinions?

Thanks
Timothy
Re: Best way to model arguments of a message? [message #477603 is a reply to message #477574] Mon, 14 July 2008 19:03 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

I would tend to agree with you that LiteralString would be the way to go. A
LiteralString is a specification of a literal string value.


Cheers,
- James.

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g4t20u$vfg$1@build.eclipse.org...
> Hey all,
>
> i've modeled a Sequence Diagram in which i want to add a string value for
> the called operation. IMHO, there are 2 ways to handle this:
>
> 1. Add a LiteralString element with the specified value, or
> 2. Add an InstanceValue, that points to an InstanceSpecification, that is
> the instance of a String data type-element or a primitve type-element.
>
> It seems to me, as that these methods are equivalent. But which way should
> be prefered? I think the Literal-one, because it is less complex?
>
> Are there other opinions?
>
> Thanks
> Timothy
>
Re: Best way to model arguments of a message? [message #626793 is a reply to message #477574] Mon, 14 July 2008 19:03 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

I would tend to agree with you that LiteralString would be the way to go. A
LiteralString is a specification of a literal string value.


Cheers,
- James.

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g4t20u$vfg$1@build.eclipse.org...
> Hey all,
>
> i've modeled a Sequence Diagram in which i want to add a string value for
> the called operation. IMHO, there are 2 ways to handle this:
>
> 1. Add a LiteralString element with the specified value, or
> 2. Add an InstanceValue, that points to an InstanceSpecification, that is
> the instance of a String data type-element or a primitve type-element.
>
> It seems to me, as that these methods are equivalent. But which way should
> be prefered? I think the Literal-one, because it is less complex?
>
> Are there other opinions?
>
> Thanks
> Timothy
>
Previous Topic:Create a class diagram using ArgoUML API
Next Topic:UML2 examples
Goto Forum:
  


Current Time: Thu Oct 06 20:19:19 GMT 2022

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

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

Back to the top