I use UML sequence diagrams all the time and I am familiar with UML2 notation.
But I use them only to understand the essence of what I intend to do. In other words, a diagram always exists at the level of abstraction over the actual code. Every time I use them to try to describe exactly what I intend to do, I end up using so much horizontal space and so many alt / loop frames that it’s not worth the effort.
So this is possible in theory, but has anyone really used a chart at this level of detail? If so, can you give an example?
I have the same problem, but when I understand that I am going at a low level, I re-read this:
You should use sequence diagrams when you want to look at the behavior of several objects within the same use case. Sequence diagrams are good at demonstrating collaboration between objects; they are not so good at pinpointing behavior.If you want to look at the behavior of a single object in many use cases, use the state diagram . If you want to look at behavior in many ways, cases or many threads, consider the action diagram ., CRC-, . CRC- , .[ UML Distilled book]
You should use sequence diagrams when you want to look at the behavior of several objects within the same use case. Sequence diagrams are good at demonstrating collaboration between objects; they are not so good at pinpointing behavior.
If you want to look at the behavior of a single object in many use cases, use the state diagram . If you want to look at behavior in many ways, cases or many threads, consider the action diagram .
, CRC-, . CRC- , .
[ UML Distilled book]
. . , (objectA B foo ). . , , . , -.
, .
, (, ).
, , , , .
(.. ), . x , if loop.
, " ", , .
A4/Letter, - . , , 6-10 10-25.
, , , ( , , , , , , ..), , ( )/p >
, , . - , , . (.. ), .
, , . "variable", "current" "previous", , current = current.next = , .
, .. " ". , ...
, - "" , , .
- - , ! , . .
- , , - . - - . . .
"" . UML, UML .. . , , / . , . , , , , .. .
, - . , . , . (, , . ). , , .
Observer. , , . . " " , .
- - , / / .. UML , . usecase Usecase. , .
U.M.L. , .
, , , .
, , , - , .
.
P.D. - - ?
Source: https://habr.com/ru/post/1697686/More articles:Как сохранить переменную ByRef в форме диалогового окна .net winforms? - referenceThe introduction of rulers in the form of C # - c #Finding unrelated methods in a C ++ application - c ++Лучший способ динамически создавать RDLC xml в качестве входа в VS2005 Report Viewer? - visual-studioWhat can I use for ChangeKey in EWS UpdateItem? - exchange-serverInstallation Profile Slicehost - unixRestlet - serving static content - configurationSide effects of calling RegisterWindow multiple times with the same window class? - c ++What IDEs and tools are available for developing the C language? - cComputer science textbook to make text / xml / any parsing - computer-scienceAll Articles