Вопрос

I wasn't able to find this info in the official specs. Do they not prescribe a difference between a static method call and any other kind of message? In other words, simply put an arrow when the call occurs just like any other message? In that case there is no instantiated class participant available to point to, unless it is legal to just put the static classname without the ":" in front of it.

Это было полезно?

Решение

You can represent static call by targeting class rather than object in the sequence diagram (both classes and objects can coexist in sequence diagram).

Другие советы

your question was already discussed on stackoverflow: How to present static class or function call in Sequence Diagram?

So you might want to use a stereotype as indicated there. Hope it helps!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top