Can UML state machine diagram be used to show the screen navigation?

落爺英雄遲暮 提交于 2019-11-27 22:53:12

问题


Can UML state machine diagram be used to show the screen navigation?


回答1:


Sure you can create a UML model of the UI as a state machine, for example:

  • Screens are states

  • State transitions i.e. screen changes occur on specific inputs or other triggers

Did you actually have some more specific question?




回答2:


You can use state machines but it is also possible to use sequence diagrams for that. If you don't need to stick to the pure UML, there are plenty of approaches devoted to the specification of web systems that include the concept of web navigation models (with elements as pages, links,...). These approaches either use UML profiles or a completely different modeling language (as WebML)




回答3:


UML is for modeling processes for an Object Oriented paradigm. State Machine actually deals with an object's state and has got nothing to do with UI navigation.

Your best bet here might be to represent that in Use-Case diagram.



来源:https://stackoverflow.com/questions/1611881/can-uml-state-machine-diagram-be-used-to-show-the-screen-navigation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!