How do I make a UML class a thread stereotype?

N

Norman Hines

I'm trying to document my Visual C++ project in UML on Visio. My project has
a main thread for the GUI, and three worker threads for serial I/O (two
receiver threads and a transmitter thread). Visual C++ makes thread
controller functions global functions instead of members of object-oriented
classes or objects. I should not use a Class icon to document these threads
(or their controlling functions), but I cannot make a <<thread>> stereotype
object appear on my class diagram. The stereotype exists, but it isn't
available to the UML Class icon.
 
J

John Saunders

Norman Hines said:
I'm trying to document my Visual C++ project in UML on Visio. My project
has
a main thread for the GUI, and three worker threads for serial I/O (two
receiver threads and a transmitter thread). Visual C++ makes thread
controller functions global functions instead of members of
object-oriented
classes or objects. I should not use a Class icon to document these
threads
(or their controlling functions), but I cannot make a <<thread>>
stereotype
object appear on my class diagram. The stereotype exists, but it isn't
available to the UML Class icon.

In the UML menu, choose Stereotypes. Add a Thread stereotype for the Class
class.

John Saunders

P.S. When you say "global functions", do you mean that they are not inside
of any class?
 
N

Norman Hines

Yes, it is not inside any class or object, not even the CWinThread object it
controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top