Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jjweis

Pages: [1]
1
General Board / Re: Sequence Diagram - How to model C#-events?
« on: April 10, 2006, 08:23:57 am »
Hello Bruce, hello David,

thank you very much for your long and detailed answers.

I think I should have been more specific in my question.

ClassA implements a hardware-component which receives messages/signals from the "outer world".  ClassA translates these messages/signals to the event MyEvent. ClassB is a kind of "listener" and invokes HandleMyEvent when the event MyEvent is raised.

I want to describe for some specific scenarios how a message/signal from the "outer world" enters into the software-system and it "spreads" out.  I want to show which objects are activated at what time and how they pass the information invoking the methods of other objects.

I think the Sequence Diagram is just  the appropriate instrument to accomplish that. In order to show the the connection  between the event ClassA.MyEvent and ClassB.HandleMyEvent I draw an arrow from an instance of ClassA to an instance of ClassB like ClassA would do a "normal" invocation of ClassB.HandleMyEvent. (When this arrow crosses a thread-boundary I mark it as asynchronous.) But this arrow gives me only part of what it's happening: The arrow tells me that ClassB.HandleMyEvent is invoked, but it doesn't tell me that the cause of the invocation was the firing of ClassA.MyEvent.

Do you think that there are more appropriate means in UML than the Sequence Diagram to represent what I want?

Juergen









2
General Board / Sequence Diagram - How to model C#-events?
« on: April 09, 2006, 03:25:13 am »
Hello.

Could anybody give me a hint how to model C#-events in a sequence diagram?

I have a Class ClassA that publishes an event MyEvent. Furthermore there is a class ClassB that subscribes to ClassA.MyEvent and handles it in the method HandleMyEvent.

I want to model in a sequence diagram the fact that an instance of ClassA raises MyEvent and an instance of ClassB handles this event in HandleMyEvent.

Up to now I achieve to express the "calling" of ClassB.HandleMyEvent, but this doesn't give me any information about the subscription of HandleMyEvent to ClassA.MyEvent.

Thank you.

Juergen Weis

3
General Board / Re: State Machine - How to defer an event?
« on: March 29, 2006, 11:48:08 pm »
Hello Jaime.

Yes, it helps. Thank you very much.

Juergen

4
General Board / State Machine - How to defer an event?
« on: March 29, 2006, 06:10:22 am »
Hello.

How can I declare an event as "deferred" in a state of a state machine? (EA 4.51)

Thank you.

Juergen

5
General Board / Suppress display of concurrent substates
« on: July 12, 2005, 04:45:51 am »
Hello.

I have a state-machine (lets say on diagram A) with a submachine in it. The sub-machine contains entry- and exit-points.

Then I go to the diagram (diagram B) of the sub-machine. There I put the symbol of the submachine on it and make the entry and exit points visible. I define concurrent sub-states on that sub-machine.

When I return to diagram A then the symbol of the submachine has changed its size and furthermore it displays the sections of the sub-states.

That is an undesired side-effect. How can I avoid it?

Thanks.

Pages: [1]