UML - Okay design gurus, can you help me?
-
If an method would instantiate a local object that will do an asynchronous operation, how would that look in UML? A code snippet of what I want in UML is:
// C#
class MyClass
{
public DoOperation()
{
MyAsyncObject obj = new MyAsyncObj();
obj.StartSomethingAsynchronously();
}
}If
obj
was a member varible the diagram would look something like this:----------- 0..* -----------------
| MyCLass |<>--------->| MyAsyncObject |
Hope I'm clear enough... :~ Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
-
If an method would instantiate a local object that will do an asynchronous operation, how would that look in UML? A code snippet of what I want in UML is:
// C#
class MyClass
{
public DoOperation()
{
MyAsyncObject obj = new MyAsyncObj();
obj.StartSomethingAsynchronously();
}
}If
obj
was a member varible the diagram would look something like this:----------- 0..* -----------------
| MyCLass |<>--------->| MyAsyncObject |
Hope I'm clear enough... :~ Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318
Something like this I guess, my UML is a little rusty.
:MyClass :MyAsyncObj
* |
* DoSomeThingAsynchronously |
*--------------------------\*
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
\/ \/The \ on the end of the dosomethingasynchronously message arrow is meant to be a half arrowhead, showing that its an asynch message. Look up 'Interaction diagams' for a better explination than I could give. Ryan