Zembower, Kevin | 7 Nov 17:37 2008

Newbie: Questions on Sequence Diagrams

I'm trying to replicate a hand-drawn Sequence Diagram from my OOAD instructor for my first Sequence
Diagram. I've come across these questions, and hope someone can offer some advice:

1. I'm creating the Sequence Diagram initially, without creating a corresponding Class Diagram
previously. I note that when I create and name a new classifier role, if I give it the name "Mustang:Car"
with ObjectName:ClassName, it adds a final colon and doesn't underline it as an object name. How can I add
both of these aspects? How can I create anonymous objects of a Class, with an initial colon?

2. Is it possible to create a reflexive action, where an object calls a method within itself? How?

3. My instructor shows a 'create' action as '<create>' with guillemots, like a stereotype. Is this
possible? I couldn't even find the left and right guillemots characters in the GNOME Character Map
accessory. Any hints on how to type them with a USA-ASCII keyboard?

4. I need to use 'scripts,' like comments or notes, that appear to the left of the first lifeline and line up
vertically with the stimulus that it refers to, such as a note to "interate over all cars." Should I just use
a freeform text block and manually keep it aligned?

5. My instructor states that it's easiest to read the text over stimuli arrows if it's aligned left. Is it
possible to change this from centered?

6. My instructor drew an Actor stick-figure to represent the user of the system receiving prompts and
inputting responses. This has a lifeline like other classifiers. Is it possible to create this object?

Thanks so much for your advice and work on ArgoUML. I look forward to using it in my class and subsequently in
my work.

-Kevin

Kevin Zembower
(Continue reading)

Bob Tarling | 8 Nov 21:44 2008
Picon

Re: Newbie: Questions on Sequence Diagrams

Hi Kevin

You catch us while we are still in the process of improving out
sequence diagrams. Hopefully our new implementation will be included
in release 0.28. It won't address all of your points though and
doesn't help you for the moment.

> 1. I'm creating the Sequence Diagram initially, without creating a corresponding
> Class Diagram previously. I note that when I create and name a new classifier role,
> if I give it the name "Mustang:Car" with ObjectName:ClassName, it adds a final
> colon and doesn't underline it as an object name. How can I add both of these
> aspects? How can I create anonymous objects of a Class, with an initial colon?

In the current release you can only name a classifier role by typing
into the property panel name field. The name of the classifierrole you
discuss is Mustang.

You can associate a class to that classifier role by rightclick->Add
in the base field of the classifier role property panel.

In our forthcoming release you can simply edit the notation directly
onto the diagram by clicking on the classifierrole box and typing
"Mustang : Car".

> 2. Is it possible to create a reflexive action, where an object calls a method within
> itself? How?

The method used by argouml currently is not very intuitive and the
notation is not standard. So this may well not look good for
presenting college work.
(Continue reading)

Jon Schewe | 8 Nov 21:58 2008
Picon

Re: Newbie: Questions on Sequence Diagrams

Zembower, Kevin wrote:
> I'm trying to replicate a hand-drawn Sequence Diagram from my OOAD instructor for my first Sequence
Diagram. I've come across these questions, and hope someone can offer some advice:
>
>
> 3. My instructor shows a 'create' action as '<create>' with guillemots, like a stereotype. Is this
possible? I couldn't even find the left and right guillemots characters in the GNOME Character Map
accessory. Any hints on how to type them with a USA-ASCII keyboard?
>
>   
I've found that you can select an action and then add the "create"
stereotype to the method and that should give you want you want.

--

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39
Michiel van der Wulp | 8 Nov 23:06 2008
Picon

Re: Newbie: Questions on Sequence Diagrams

Zembower, Kevin wrote:
> 1. I'm creating the Sequence Diagram initially, without creating a corresponding Class Diagram
previously. I note that when I create and name a new classifier role, if I give it the name "Mustang:Car"
with ObjectName:ClassName, it adds a final colon and doesn't underline it as an object name. How can I add
both of these aspects? How can I create anonymous objects of a Class, with an initial colon?
>
>   

I think you forgot to type the "/" in front. The right syntax is: 
"/Mustang:Car".

> 2. Is it possible to create a reflexive action, where an object calls a method within itself? How?
>
> 3. My instructor shows a 'create' action as '<create>' with guillemots, like a stereotype. Is this
possible? I couldn't even find the left and right guillemots characters in the GNOME Character Map
accessory. Any hints on how to type them with a USA-ASCII keyboard?
>
>   
In the menu, select File -> Project Properties -> Notations -> Use 
guillemets.
You can then enter <<stereotype>> on the diagram and it shows as 
«stereotype».
My keyboard has them, but it is a extremely rare layout...
On Windows, as you can see in the System Tool "Character Map": key them 
in as Alt+0171 for « and Alt+0187 for ».

Regards,
Michiel
Tom Morris | 9 Nov 00:12 2008
Picon

Re: Newbie: Questions on Sequence Diagrams

>> 3. My instructor shows a 'create' action as '<create>' with guillemots,
>> like a stereotype. Is this possible? I couldn't even find the left and right
>> guillemots characters in the GNOME Character Map accessory. Any hints on how
>> to type them with a USA-ASCII keyboard?
>
> In the menu, select File -> Project Properties -> Notations -> Use
> guillemets.

Applying the <<create>> stereotype is the easy way to do this.  If for
some reason you still need to find them, note the correct spelling.
That could be one problem with finding them in your character map.
The other possibility is that they're using the Unicode names
"left-pointing double angle quotation mark" and "right-pointing double
angle quotation mark"  The code points are U+00AB and U+00BB if that
helps locate them.

Tom
Zembower, Kevin | 10 Nov 18:38 2008

RE: Newbie: Questions on Sequence Diagrams

Tom, thanks so much for your advice. I'm having trouble applying it, however. In my Sequence Diagram, with
the Stimulus arrow selected (small squares appear at each end), I can't get Stereotypes to show up in the
pop-up menu when I right-click on the Stimulus arrow. Also, with the Stimulus arrow selected, no
stereotypes at all show up in the Stereotypes tab in the lower window.

I found the existing <<create>> stereotype, when I expanded Profile Configuration->UML 1.4->UML 1.4
Standard Elements. In addition to its name, the only attributes seem to be Base Class:
BehavioralFeature, CallEvent and Usage. This stereotype doesn't show up in the pop-up menu or
Stereotypes tab.

On a tangential note, 'Use guillemots' is the spelling on File->Project Properties->Notation on my 0.26 version.

Thanks, again, for helping me to learn more about ArgoUML.

-Kevin

-----Original Message-----
From: Tom Morris [mailto:tfmorris <at> gmail.com]
Sent: Saturday, November 08, 2008 6:13 PM
To: users <at> argouml.tigris.org
Subject: Re: [argouml-users] Newbie: Questions on Sequence Diagrams

>> 3. My instructor shows a 'create' action as '<create>' with guillemots,
>> like a stereotype. Is this possible? I couldn't even find the left and right
>> guillemots characters in the GNOME Character Map accessory. Any hints on how
>> to type them with a USA-ASCII keyboard?
>
> In the menu, select File -> Project Properties -> Notations -> Use
> guillemets.

(Continue reading)

Zembower, Kevin | 10 Nov 18:44 2008

RE: Newbie: Questions on Sequence Diagrams

Michiel, thanks for your help. I'm not sure what's happening with the Classifier names, however. When I
type '/Mustang:Car', '/Mustang:Car:' appears in the rectangle at the top of the diagram. What I'm hoping
for is 'Mustang:Car', for 'ObjectName:ClassName'. This is using version 0.26, under Linux Ubuntu 8.04
and Javastart.

Thanks for the hint on the Windows Character Map. That's how I typed them in my email. Unfortunately, I'm
running ArgoUML under Linux, and the GNOME Character Map application seems to work differently than the
Windows one.

Thanks, again, for your help.

-Kevin

-----Original Message-----
From: Michiel van der Wulp [mailto:mvw <at> tigris.org]
Sent: Saturday, November 08, 2008 5:07 PM
To: users <at> argouml.tigris.org
Subject: Re: [argouml-users] Newbie: Questions on Sequence Diagrams

Zembower, Kevin wrote:
> 1. I'm creating the Sequence Diagram initially, without creating a corresponding Class Diagram
previously. I note that when I create and name a new classifier role, if I give it the name "Mustang:Car"
with ObjectName:ClassName, it adds a final colon and doesn't underline it as an object name. How can I add
both of these aspects? How can I create anonymous objects of a Class, with an initial colon?
>
>

I think you forgot to type the "/" in front. The right syntax is:
"/Mustang:Car".

(Continue reading)

Thomas N. | 10 Nov 18:50 2008
Picon
Picon

Re: RE: Newbie: Questions on Sequence Diagrams

Hi Kevin,

typing '/Mustang:Car' is not correct, you should write '/Mustang' and then add Car to the base class box in
the property panel of the classifier role. There you add the base class Car by right-clicking into the box.

Regards,
Thomas

-------- Original-Nachricht --------
> Datum: Mon, 10 Nov 2008 12:44:49 -0500
> Von: "Zembower, Kevin" <kzembowe <at> jhuccp.org>
> An: "\'users <at> argouml.tigris.org\'" <users <at> argouml.tigris.org>
> Betreff: RE: [argouml-users] Newbie: Questions on Sequence Diagrams

> Michiel, thanks for your help. I'm not sure what's happening with the
> Classifier names, however. When I type '/Mustang:Car', '/Mustang:Car:' appears
> in the rectangle at the top of the diagram. What I'm hoping for is
> 'Mustang:Car', for 'ObjectName:ClassName'. This is using version 0.26, under Linux
> Ubuntu 8.04 and Javastart.
> 
> Thanks for the hint on the Windows Character Map. That's how I typed them
> in my email. Unfortunately, I'm running ArgoUML under Linux, and the GNOME
> Character Map application seems to work differently than the Windows one.
> 
> Thanks, again, for your help.
> 
> -Kevin
> 
> -----Original Message-----
> From: Michiel van der Wulp [mailto:mvw <at> tigris.org]
(Continue reading)

Zembower, Kevin | 10 Nov 19:17 2008

RE: Newbie: Questions on Sequence Diagrams

Bob, thanks so much for your help. I'm aware that Sequence Diagrams are under development and may not be
complete. I'm grateful for whatever functionality they currently provide. Also, I'm hopeful that some
of my questions and requests can be used to further the development of this part.

I was able to successfully add the ClassName to the ObjectName:ClassName title of classifier roles
following your directions. Thanks. I never would have found this on my own. I'm also guessing that I'm
stuck with "(anon ClassifierRole):CarLot" if I try to create an anonymous object of the Class 'CarLot' by
just leaving the name blank and Adding a Base Class. I think my instructor can live with this.

When I follow your directions for the reflexive call message, I get a two-segment arrow that forms a
triangle with the lifeline. I think that my instructor can probably live with this, too.

Thanks, again, for all your help and advice.

-Kevin

-----Original Message-----
From: Bob Tarling [mailto:bob.tarling <at> gmail.com]
Sent: Saturday, November 08, 2008 3:45 PM
To: users <at> argouml.tigris.org
Subject: Re: [argouml-users] Newbie: Questions on Sequence Diagrams

Hi Kevin

You catch us while we are still in the process of improving out
sequence diagrams. Hopefully our new implementation will be included
in release 0.28. It won't address all of your points though and
doesn't help you for the moment.

> 1. I'm creating the Sequence Diagram initially, without creating a corresponding
(Continue reading)

Zembower, Kevin | 10 Nov 19:28 2008

RE: RE: Newbie: Questions on Sequence Diagrams

Thanks, Thomas, but when I do that, "/Mustang:Car" appears  in the box in the diagram. It appears correctly
when I just type "Mustang" in Name, and add Car in Base.

However, neither of the presentations shows up as underlined, which my instructor says indicates
objects. Should they appear underlined?

Thanks, again.

-Kevin

-----Original Message-----
From: Thomas N. [mailto:thn-d <at> gmx.de]
Sent: Monday, November 10, 2008 12:50 PM
To: users <at> argouml.tigris.org
Subject: Re: RE: [argouml-users] Newbie: Questions on Sequence Diagrams

Hi Kevin,

typing '/Mustang:Car' is not correct, you should write '/Mustang' and then add Car to the base class box in
the property panel of the classifier role. There you add the base class Car by right-clicking into the box.

Regards,
Thomas

-------- Original-Nachricht --------
> Datum: Mon, 10 Nov 2008 12:44:49 -0500
> Von: "Zembower, Kevin" <kzembowe <at> jhuccp.org>
> An: "\'users <at> argouml.tigris.org\'" <users <at> argouml.tigris.org>
> Betreff: RE: [argouml-users] Newbie: Questions on Sequence Diagrams

(Continue reading)


Gmane