tags:

views:

155

answers:

3

I have a fairly basic C# event based system but I'm not sure how I model it in UML. I obviosuly want to show the event publisher, subscriber, handlers and EventArgs classes .. I think you use 'signals' but I can't find any examples. Can anyone point me to an example or shed any light?

Thanks

Edit: I am creating a static model, I don't need to represent state or paths through the process. Sorry If i didn't make that clear in the initial question..

A: 

Use a state diagram or an activity diagram.

John Saunders
+1  A: 

look here for examples of state diagram and here for activity diagram, then choose what fits your needs!

lexu
A: 

As indicated by lexu and John, you can use statecharts and activity diagrams to model some of the dynamic aspects of your system.

For your static model, you can model the events a class can handle as operations. You can use a stereotype (<<event>>) to differentiate these operations from others (e.g. synchronously called methods).

Brandon E Taylor