UML data flow diagram strategies for an example structure

What would be the best strategies to describe the following:

1) class A created instances of classes B and C 2) class B can communicate with class D using a pointer in class B to a specific member of class D

Thanks in advance for the suggestions as I do not know the correct term to describe them, to find more information on the internet.

0


a source to share


1 answer


There is a type of diagram called "data flow diagram", but this is not one of the UML diagrams.

By showing that A creates instances of B and C, one can show in a UML sequence diagram 'that shows the sequence in time in which things happen (for example, instance A exists at time T0, at time T1 it creates an instance of B, and at time T2 it instantiates C).



Showing that B has a member that points to D can be shown in a UML class diagram that illustrates the elements (methods and instance data) of a class or classes.

However, I don't think the UML has a notation for "pointer to member" ... and I'm not sure what you mean when you say that "B is associated with class D via a pointer to a specific member in D": can you did you provide an example (like in the source code) to illustrate this?

+1


a source







All Articles